GET
/v1/schemas/fal/image/blackforestlabs/flux-3/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace2ac51fd750075e6e5fce1600c5e9e33c583b82068a3cda4f5c1703ad47f2ea8d{
"fetchedAt": 1795755600,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
9 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt to generate an image from. | |
| resolution | enum | Output resolution tier. 4k can take several minutes. | 768sq | 1k | 1.5k | 2k | 4k · default: "1k" |
| output_format | enum | The format of the generated image. | jpeg | png · default: "jpeg" |
| aspect_ratio | enum | Output aspect ratio. Auto uses the first reference image when editing. | auto | 21:9 | 2:1 | 16:9 | 3:2 | 7:5 · +9 more · default: "auto" |
| bounding_boxes | BoundingBox[] | Optional layout: draw each described object inside its box. Box edges are fractions of the image size, with (0, 0) at the top-left. Name boxes in the prompt by label, e.g. `A red fox <fox> sits under a red umbrella <umbrella>`. | items ≤ 32 · nullable |
| safety_tolerance | integer | Safety tolerance, from 0 (strictest) to 4. | 0 ≤ n ≤ 4 · default: 2 |
| version | const | The model version. | "latest" · default: "latest" |
| sync_mode | boolean | Return the image as a data URI instead of storing it in request history. | default: false |
| enable_prompt_expansion | boolean | Expand the prompt while preserving its intent and reference roles. | default: false |
Types
2 $defsBoundingBoxobject
| box* | Box | Where the object goes in the output image. | |
| label | string | Short name for the object in this box, e.g. `fox`. Write `<fox>` in the prompt to tie the box to those words; a box the prompt doesn't name is added to the scene. Defaults to `obj_<n>`. | length ≤ 64 · nullable |
| description* | string | What to draw in this box: the object and its look. | length ≤ 500 |
Boxobject
| x_max* | number | Right edge as a fraction of the image width (0-1). | 0 ≤ n ≤ 1 |
| x_min* | number | Left edge as a fraction of the image width (0-1). | 0 ≤ n ≤ 1 |
| y_min* | number | Top edge as a fraction of the image height (0-1). | 0 ≤ n ≤ 1 |
| y_max* | number | Bottom edge as a fraction of the image height (0-1). | 0 ≤ n ≤ 1 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"blackforestlabs/flux-3/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}