Note: Wispvue (flux3klein.org) is an unofficial site and is not affiliated with Black Forest Labs. Bounding-box layout control is not supported in our browser UI; to use layout boxes, use the BFL API, ComfyUI, or local code.
How the 0–1000 coordinate grid works
Instead of pixel dimensions, FLUX 3 Image Klein uses a normalized 0 to 1000 grid across both axes:
- Box format:
[top, left, bottom, right] topandbottom: Vertical coordinates from0(top edge) to1000(bottom edge).leftandright: Horizontal coordinates from0(left edge) to1000(right edge).- In-text tags: Each JSON row has an
"id"string (such as"silhouette_1"). You link that box to your prose caption by writing<silhouette_1>right after the element’s mention in the prompt text.
Row formats for text-to-image vs. image editing
The JSON structure appended to the end of your prompt depends on whether you are generating a new image from scratch or editing existing reference images.
Text-to-image generation rows
Each item in the JSON array uses three keys:
id: The unique identifier referenced as<id>in the caption.bbox: Target coordinates[top, left, bottom, right]on the 0–1000 grid.desc: A concise description of the element and its visual texture or material.
Image editing and multi-reference rows
When passing one or more images in the images array, each row uses five keys: id, from, src_bbox, tgt_bbox, and desc. The table below shows how to set from, src_bbox, and tgt_bbox for every editing action:
| Action | from value |
src_bbox |
tgt_bbox |
Purpose |
|---|---|---|---|---|
| Keep in place | "ref_image_0" |
[top, left, bottom, right] |
Same as src_bbox |
Preserves an existing object from the primary image in its current location. |
| Move | "ref_image_0" |
Original [top, left, bottom, right] |
New [top, left, bottom, right] |
Relocates an object from its original spot in the primary image to a new position. |
| New / replace / recolor | null |
null |
Target [top, left, bottom, right] |
Generates a new element, replaces an existing region, or recolors an area at the target box. |
| Remove | "ref_image_0" |
Original [top, left, bottom, right] |
null |
Deletes the object inside src_bbox from the primary image. |
| Take from another reference | "ref_image_1" (or 2..9) |
Box in that reference image | Box in the output image | Extracts an element from a secondary reference image and places it into the output canvas. |
Official examples and API field guide
Official text-to-image layout example
Below is an API payload using the official BFL generation example (POST https://api.bfl.ai/v1/flux-3-image-klein with header x-key):
{
"prompt": "Minimalist graphic illustration featuring a black silhouette of a person <silhouette_1> centered against a solid, vibrant chartreuse background <background_1>. [{\"id\": \"background_1\", \"bbox\": [0, 0, 1000, 1000], \"desc\": \"A flat field of neon yellow-green with a subtle paper texture and fine, organic grain.\"}, {\"id\": \"silhouette_1\", \"bbox\": [150, 150, 850, 850], \"desc\": \"A black silhouette of a person in motion, made of dense stippled ink.\"}]",
"aspect_ratio": "1:1",
"resolution": "1k",
"output_format": "png"
}
Official multi-reference editing layout example
Below is an editing payload using the official illustrative coordinates for keeping an oak sideboard in ref_image_0 while importing a ceramic lamp from ref_image_1:
{
"prompt": "Modify <ref_image_0> by adding a ceramic table lamp <lamp_1> from image 2 next to the oak sideboard <sideboard_1>. Keep the rest of the image exactly unchanged. [{\"id\": \"lamp_1\", \"from\": \"ref_image_1\", \"src_bbox\": [80, 250, 950, 750], \"tgt_bbox\": [300, 120, 560, 280], \"desc\": \"a ceramic table lamp with a linen shade\"}, {\"id\": \"sideboard_1\", \"from\": \"ref_image_0\", \"src_bbox\": [540, 60, 880, 940], \"tgt_bbox\": [540, 60, 880, 940], \"desc\": \"an oak sideboard\"}]",
"images": [
"https://example.com/living-room.jpg",
"https://example.com/lamp-product.jpg"
],
"aspect_ratio": "4:3",
"resolution": "2k",
"output_format": "jpeg"
}
How to fill every API field used
prompt(required): The caption containing<id>tags followed by the serialized JSON array of bounding-box rows.images(optional): Omit for text-to-image generation. For editing, pass an array of 1 to 10http(s)URLs or base64 strings (each 256×256 to 16 MP).aspect_ratio(optional): Set this explicitly to match the canvas shape you used when planning your 0–1000 coordinates. Options:21:9,2:1,16:9,3:2,7:5,4:3,5:4,1:1,4:5,3:4,5:7,2:3,9:16,1:2,9:21(default isauto).resolution(optional): Choose768sq,1k(default for text-to-image),1.5k,2k, or4k.output_format(optional):jpeg(default) orpng.
Aspect ratio tip and layout limits
- Match
aspect_ratioto your box layout: Because the 0–1000 grid stretches to fill whatever output shape is generated, a box of[150, 150, 850, 850]is a square on a1:1image but becomes a wide rectangle on a16:9image. Always setaspect_ratioto the exact shape you drew your boxes for. - Boxes are guides, not hard pixel masks: Bounding boxes guide placement and scale, but they do not act as a strict cutout mask.
- Small elements may not appear: Very small bounding boxes may be ignored by the model during generation.
- Outside areas can shift during edits: Even when you mark regions to keep or edit via
tgt_bbox, edits can still change content outside the specified region. - No extra control fields in API: Do not send
seed,negative_prompt,guidance, orprompt_upsamplingin the request JSON, or the API will reject the call with a422error.