GET

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

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

Request body

15 properties · 2 required · 2 $defs
propertytypedescriptionconstraints
images*ImageRefParam[]Input image references to edit. For GPT image models, you can provide up to 16 images.items ≥ 1 · items ≤ 16
prompt*stringA text description of the desired image edit.length ≥ 1 · length ≤ 32000
modelstring | enumThe model to use for image editing.nullable · default: "gpt-image-1.5"
maskany | anyReference an input image by either URL or uploaded file ID. Provide exactly one of `image_url` or `file_id`.
nintegerThe number of edited images to generate.1 ≤ n ≤ 10 · nullable
qualityenumOutput quality for GPT image models. low | medium | high | auto · nullable
input_fidelityenumControls fidelity to the original input image(s).high | low · nullable
sizeenumRequested output image size.auto | 1024x1024 | 1536x1024 | 1024x1536 · nullable
userstringA unique identifier representing your end-user, which can help OpenAI monitor and detect abuse.
output_formatenumOutput image format. Supported for GPT image models.png | jpeg | webp · nullable
output_compressionintegerCompression level for `jpeg` or `webp` output.0 ≤ n ≤ 100 · nullable
moderationenumModeration level for GPT image models.low | auto · nullable
backgroundenumBackground behavior for generated image output.transparent | opaque | auto · nullable
streambooleanStream partial image results as events.nullable
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

Validate a payload

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