GET
/v1/schemas/fal/image/fal-ai/flux-2-flex
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace30bb0072aaa6054153ac367520e8bb7145f67457ce78649f95e2eff94aa47d36{
"fetchedAt": 1786165357,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
9 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt to generate an image from. | |
| num_inference_steps | integer | The number of inference steps to perform. | 2 ≤ n ≤ 50 · default: 28 |
| image_size | ImageSize | enum | The size of the generated image. | default: "landscape_4_3" |
| output_format | enum | The format of the generated image. | jpeg | png · default: "jpeg" |
| guidance_scale | number | The guidance scale to use for the generation. | 1.5 ≤ n ≤ 10 · default: 3.5 |
| safety_tolerance | enum | The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. | 1 | 2 | 3 | 4 | 5 · default: "2" |
| 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 |
| seed | integer | The seed to use for the generation. | nullable |
| enable_safety_checker | boolean | Whether to enable the safety checker. Disabling it requires account authorization; unauthorized requests are always checked. | default: true |
Types
1 $defsImageSizeobject
| height | integer | The height of the generated image. | 0 < n ≤ 14142 · default: 512 |
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/flux-2-flex","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}