GET

/v1/schemas/llmgateway/image/v1/images/edits

kind inputactivity imagehash ec718bca…extracted Nov 13, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
7f27a5bd597600ebe9680565011c8e83aea98292032571349f1013bb12029cba
{
  "fetchedAt": 1794546640,
  "extractorVersion": "2",
  "verifiedAt": null
}

Request body

18 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
images*object[]Input image references to edit. Provide image_url as HTTPS URL or data URL.items ≥ 1 · items ≤ 16
prompt*stringA text description of the desired image edit.length ≥ 1
backgroundenumBackground behavior for generated image output. OpenAI and Azure GPT Image models apply it natively and reject it when unsupported; `transparent` requires `png` or `webp` output. Other providers only receive it as a prompt hint.transparent | opaque | auto
input_fidelityenumControls fidelity to the original input image(s).high | low
modelstringThe model to use for image editing.
nintegerThe number of edited images to generate.1 ≤ n ≤ 10
frame_countinteger2 ≤ n ≤ 16
frame_duration_msinteger20 ≤ n ≤ 2000
markupobject
output_compressionintegerCompression level for jpeg or webp output.0 ≤ n ≤ 100
output_formatenumOutput image format. `svg` returns a base64-encoded SVG document in `b64_json`; it requires a model with SVG output (GPT Image 2.6) and `n` of 1, and does not accept `output_compression`.png | jpeg | webp | svg | gif
svgobjectSVG author model and reasoning settings. Required when the OpenAI account has SVG model selection enabled; otherwise omit it.
qualityenumOutput quality for image models.low | medium | high | xhigh | max | auto
sizestringRequested output image size. Supported values depend on the model and provider.
aspect_ratiostringThe aspect ratio of the edited images (e.g. '1:1', '16:9', '4:3', '5:4'). Takes precedence over size-derived defaults.
complexityenumImage complexity for supported models. When omitted, the provider default applies.low | medium | high
moderationenumContent moderation strictness for models that support it (GPT Image). 'auto' applies the default filtering, 'low' is less restrictive. Ignored by models without a moderation control.auto | low
service_tierenumProcessing tier for the request, forwarded to the underlying chat completion. `flex` and `priority` are only accepted for provider/model mappings that support the tier; an unsupported tier returns a 400 `unsupported_service_tier` error.auto | default | flex | priority

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"llmgateway","endpointId":"v1/images/edits","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}