GET

/v1/schemas/fal/image/openai/gpt-image-2/edit

kind inputactivity imagehash 1209404c…extracted Oct 29, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
352ba45f23487d00747b323a4f1624c7e039fb7a8d5f2dce5cae0ecba7521e58
{
  "fetchedAt": 1793250001,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

11 properties · 2 required · 1 $defs
propertytypedescriptionconstraints
image_urls*string[]The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed.items ≤ 16
prompt*stringThe prompt for image generationlength ≥ 1 · length ≤ 32000
output_formatenumOutput format for the imagesjpeg | png | webp · default: "png"
backgroundenumBackground for the generated imageauto | transparent | opaque · default: "auto"
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.default: false
image_sizeImageSize | enumThe size of the generated image. Use 'auto' to infer from input images.default: "auto"
num_imagesintegerNumber of images to generate1 ≤ n ≤ 10 · default: 1
output_compressionintegerCompression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'.0 ≤ n ≤ 100 · nullable
mask_urlstringMask image URL. White marks regions to edit and black marks regions to keep.nullable
enable_safety_checkerbooleanAuthorized callers may set false to request relaxed screening.default: true
qualityenumQuality for the generated image. Use 'auto' to let the model pick the best quality for the prompt.auto | low | medium | high · default: "high"

Types

1 $defs

ImageSizeobject

heightintegerThe height of the generated image.0 < n ≤ 14142 · default: 512
widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512

Validate a payload

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