Images
Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`, `gpt-image-1-mini`, and `chatgpt-image-latest`) and `dall-e-2`.
You can call this endpoint with either:
- multipart/form-data: use binary uploads via image (and optional mask).
- application/json: use images (and optional mask) as references with either image_url or file_id.
Note that JSON requests use images (array) instead of the multipart image field.
post/images/edits
Request body
EditImageBodyJsonParam required— unresolved $ref
Response
OK