GET

/v1/schemas/llmgateway/image/v1/images/generations

kind inputactivity imagehash 13911b1c…extracted Nov 7, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
477e8258752717545fa4114b499bcc484ac6b0a273b9c39832892143c7814be2
{
  "fetchedAt": 1794029444,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

16 properties · 1 required · 0 $defs
propertytypedescriptionconstraints
prompt*stringA text description of the desired image(s).length ≥ 1
modelstringThe model to use for image generation. Defaults to auto which selects an appropriate image generation model.default: "auto"
nintegerThe number of images to generate. Must be between 1 and 10.1 ≤ n ≤ 10 · default: 1
sizestringThe size of the generated images. Supported sizes depend on the model and provider.
qualityenumThe quality of the image that will be generated. Supported values depend on the model and provider.standard | hd | low | medium | high | xhigh · +2 more
response_formatenumThe format in which the generated images are returned. Only b64_json is supported since images are generated via chat completions models.b64_json · default: "b64_json"
styleenumThe style of the generated images.vivid | natural
aspect_ratiostringThe aspect ratio of the generated images (e.g. '1:1', '16:9', '4:3', '5:4'). Takes precedence over size if both are provided.
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
output_formatenumThe file format of the generated image for GPT Image models. `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.
frame_countinteger2 ≤ n ≤ 16
frame_duration_msinteger20 ≤ n ≤ 2000
output_compressionintegerCompression level (0-100) for `jpeg` and `webp` output on GPT Image models.0 ≤ n ≤ 100
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/generations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}