GET
/v1/schemas/openai/image/images%2Fedits?kind=output
Accept:
Response body
7 properties · 1 required · 4 $defs| property | type | description | constraints |
|---|---|---|---|
| created* | integer | The Unix timestamp (in seconds) of when the image was created. | format: unixtime |
| 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 image generation. Either `png`, `webp`, or `jpeg`. | png | webp | jpeg |
| size | enum | The size of the image generated. Either `1024x1024`, `1024x1536`, or `1536x1024`. | 1024x1024 | 1024x1536 | 1536x1024 |
| quality | enum | The quality of the image generated. Either `low`, `medium`, or `high`. | low | medium | high |
| usage | ImageGenUsage | For `gpt-image-1` only, the token usage information for the image generation. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"images/edits","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}