GET

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

kind inputactivity imagehash 8afc2b65…extracted Nov 24, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
9bcc3d26fff698f688829efc5b6c90e6319f203ccaec064536493246125d9401
{
  "fetchedAt": 1795497067,
  "extractorVersion": "2",
  "verifiedAt": null
}

Request body

19 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
backgroundenumBackground behavior for models with a native background control: GPT Image (OpenAI and Azure) and Seedream 5.5. `transparent` requires `png` output (or `webp` on GPT Image). Ignored by other models.transparent | opaque | auto
output_formatenumThe file format of the generated image for GPT Image models and Seedream 5.5 (`png` or `jpeg`). `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
safety_identifierstringOpaque end-user identifier stored in log params.safety_identifier. Never forwarded upstream and never replaces LLM Gateway's provider-facing identifier.length ≤ 128
userstringLegacy end-user identifier, recorded as params.safety_identifier when safety_identifier is absent and it is at most 128 characters. Never forwarded upstream.

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", …}]}