GET

/v1/schemas/openai/image/images%2Fgenerations

kind inputactivity imagehash a17d8188extracted Jul 6, 2026version currentsource upstream spec ↗

Request body

14 properties · 1 required · 1 $defs
propertytypedescriptionconstraints
prompt*stringA text description of the desired image(s). The maximum length is 32000 characters for the GPT image models, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.
modelstring | enumThe model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`). Defaults to `dall-e-2` unless a parameter specific to the GPT image models is used.default: "dall-e-2"
nintegerThe number of images to generate. Must be between 1 and 10. For `dall-e-3`, only `n=1` is supported.1 ≤ n ≤ 10 · default: 1
qualityenumThe quality of the image that will be generated.standard | hd | low | medium | high | auto · default: "auto"
response_formatenumThe format in which generated images with `dall-e-2` and `dall-e-3` are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated. This parameter isn't supported for the GPT image models, which always r…url | b64_json · default: "url"
output_formatenumThe format in which the generated images are returned. This parameter is only supported for the GPT image models. Must be one of `png`, `jpeg`, or `webp`.png | jpeg | webp · default: "png"
output_compressionintegerThe compression level (0-100%) for the generated images. This parameter is only supported for the GPT image models with the `webp` or `jpeg` output formats, and defaults to 100.default: 100
streambooleanGenerate the image in streaming mode. Defaults to `false`. See the [Image generation guide](/docs/guides/image-generation) for more information. This parameter is only supported for the GPT image models.default: false
partial_imagesintegerThe number of partial images to generate. This parameter is used for streaming responses that return partial images. Value must be between 0 and 3. When set to 0, the response will be a single image sent in one streaming event.0 ≤ n ≤ 3 · default: 0 · nullable
sizestring | enumThe size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be betwee…default: "auto"
moderationenumControl the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value).low | auto · default: "auto"
backgroundenumAllows to set transparency for the background of the generated image(s). This parameter is only supported for the GPT image models. Must be one of `transparent`, `opaque` or `auto` (default value). When `auto` is used, the model will automatically determine th…transparent | opaque | auto · default: "auto"
styleenumThe style of the generated images. This parameter is only supported for `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hy…vivid | natural · default: "vivid"
userstringA unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).

Validate a payload

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