GET
/v1/schemas/openai/image/images%2Fgenerations?kind=output
Accept:
Response body
9 properties · 1 required · 6 $defs| property | type | description | constraints |
|---|---|---|---|
| created* | integer | The Unix timestamp (in seconds) of when the image was created. | format: unixtime |
| safety_identifier | any | The effective safety identifier used for safety monitoring and abuse detection. This is the non-empty `safety_identifier` from the request, or the deprecated `user` value when `safety_identifier` is omitted, null, or empty. | |
| data | Image[] | The list of generated images. | |
| background | enum | The background parameter used for the image generation. Either `transparent` or `opaque`. | transparent | opaque |
| output_format | enum | The output format of the generated or edited image. | png | webp | jpeg | gif | svg |
| size | string | enum | The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`. | |
| quality | enum | The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`. | low | medium | high | xhigh | max |
| usage | ImageGenUsage | Token usage information for image generation with GPT Image models. | |
| svg_usage | SvgUsage | Token usage for SVG authoring, separate from image rendering usage. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"images/generations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}