GET
/v1/schemas/fal/image/fal-ai/gpt-image-1/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace3729fba0e5fa4c1772f6031543ece96f58413d94bf9e897464c8376eaed9bcb1{
"fetchedAt": 1791522002,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
8 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt for image generation | length ≥ 2 |
| num_images | integer | Number of images to generate | 1 ≤ n ≤ 4 · default: 1 |
| image_size | enum | Aspect ratio for the generated image | auto | 1024x1024 | 1536x1024 | 1024x1536 · default: "auto" |
| output_format | enum | Output format for the images | jpeg | png | webp · default: "png" |
| 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/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}