GET
/v1/schemas/fal/image/blackforestlabs/flux-3/edit-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace30d8b64c9bd9ca45f32f0d675b5ce1d8e490c42fc942bdb2470ce3725d492ef9{
"fetchedAt": 1795755600,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
10 properties · 2 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| image_urls* | string[] | Reference image URLs or data URIs, in image 1 through image 10 order. Each must be at least 256 pixels per dimension. Oversized images are automatically downscaled to at most 4 megapixels while preserving aspect ratio. The first controls auto aspect ratio. | items ≥ 1 · items ≤ 10 |
| 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" |
| safety_tolerance | integer | Safety tolerance, from 0 (strictest) to 4. | 0 ≤ n ≤ 4 · default: 2 |
| bounding_boxes | EditBoundingBox[] | Optional layout, with (0, 0) at the top-left of each image: keep, move, resize or remove objects from the references, or place new ones. Name boxes in the prompt by label, e.g. `<dragon>`. | items ≤ 32 · nullable |
| 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 $defsBoxobject
| 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 |
EditBoundingBoxobject
| box | Box | Where the object goes in the output image, as on text-to-image. Use instead of `source_box`/`target_box`. | nullable |
| target_box | Box | Where the object goes in the output image. Leave unset to remove a referenced object; set both boxes to move or resize it. | nullable |
| source_image_index | integer | 0-based index into `image_urls` of the reference the object comes from. Leave unset for a new object. | n ≥ 0 · nullable |
| source_box | Box | Where the object is in the reference image. Requires `source_image_index`. | nullable |
| label | string | Short name for the object in this box, e.g. `dragon`. Write `<dragon>` 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 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"blackforestlabs/flux-3/edit-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}