GET
/v1/schemas/fal/image/fal-ai/gpt-image-1/edit-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracebbd885b6f4eee6539de571b459f3a783c19e9ac065ea9cdd6e9779c9ca7bf242{
"fetchedAt": 1791522002,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
10 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| image_urls* | string[] | The URLs of the images to use as a reference for the generation. | |
| prompt* | string | The prompt for image generation | length ≥ 2 |
| num_images | integer | Number of images to generate | 1 ≤ n ≤ 4 · default: 1 |
| output_format | enum | Output format for the images | jpeg | png | webp · default: "png" |
| image_size | enum | Aspect ratio for the generated image | auto | 1024x1024 | 1536x1024 | 1024x1536 · default: "auto" |
| input_fidelity | enum | Input fidelity for the generated image | low | high · default: "high" |
| background | enum | Background for the generated image | auto | transparent | opaque · default: "auto" |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| quality | enum | Quality for the generated image | auto | low | medium | high · default: "auto" |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | default: false |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/gpt-image-1/edit-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}