GET
/v1/schemas/llmgateway/image/v1/images/generations
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace477e8258752717545fa4114b499bcc484ac6b0a273b9c39832892143c7814be2{
"fetchedAt": 1794029444,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
16 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | A text description of the desired image(s). | length ≥ 1 |
| model | string | The model to use for image generation. Defaults to auto which selects an appropriate image generation model. | default: "auto" |
| n | integer | The number of images to generate. Must be between 1 and 10. | 1 ≤ n ≤ 10 · default: 1 |
| size | string | The size of the generated images. Supported sizes depend on the model and provider. | |
| quality | enum | The 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_format | enum | The 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" |
| style | enum | The style of the generated images. | vivid | natural |
| aspect_ratio | string | The aspect ratio of the generated images (e.g. '1:1', '16:9', '4:3', '5:4'). Takes precedence over size if both are provided. | |
| complexity | enum | Image complexity for supported models. When omitted, the provider default applies. | low | medium | high |
| moderation | enum | Content 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_format | enum | The 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 |
| svg | object | SVG author model and reasoning settings. Required when the OpenAI account has SVG model selection enabled; otherwise omit it. | |
| frame_count | integer | 2 ≤ n ≤ 16 | |
| frame_duration_ms | integer | 20 ≤ n ≤ 2000 | |
| output_compression | integer | Compression level (0-100) for `jpeg` and `webp` output on GPT Image models. | 0 ≤ n ≤ 100 |
| service_tier | enum | Processing 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 tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"llmgateway","endpointId":"v1/images/generations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}