FLUX 3 Image bounding box coordinates: pixels to the 0–1000 grid
FLUX 3 Image does not take [x, y, width, height]. Each box is [top, left, bottom, right] as integers from 0 to 1000, measured from the top-left of the frame. This page shows the conversion, a worked 1920×1080 example, and the mistakes that make boxes look “ignored.”
What the API expects
On POST /v1/flux-3-image, layout boxes live in the JSON element table at the end of prompt. There is no separate boundingBoxes field on the published Flux3ImageInputs schema. The official bounding-box guide (checked 3 October 2026) uses a 0–1000 grid for both axes, order [top, left, bottom, right]. [0, 0, 500, 500] is the top-left quarter at any aspect ratio.
This site is an independent layout guide. It is not Black Forest Labs. Start from the FLUX 3 Image bounding box API guide for the full request shape.
Pixel rectangle → grid
Given image width W, height H, and a rectangle with top-left (x, y) and size w × h in pixels:
top = round(y / H * 1000)
left = round(x / W * 1000)
bottom = round((y + h) / H * 1000)
right = round((x + w) / W * 1000)
bbox = [top, left, bottom, right]
The same formulas appear in the main guide’s “edit” section: round(top / height * 1000) and the matching left, bottom, and right lines. Clamp results into 0…1000 if your UI can draw past the canvas edge. Design the numbers for the aspect_ratio you will send; a 16:9 map is wrong on a 9:16 canvas because the grid stretches with the frame.
Worked example: 1920×1080
Rectangle: x=300, y=200, width=500, height=400 on a 1920×1080 image.
- Pixel edges: left 300, top 200, right 800, bottom 600.
top = round(200/1080*1000) = 185left = round(300/1920*1000) = 156bottom = round(600/1080*1000) = 556right = round(800/1920*1000) = 417
Result: [185, 156, 556, 417]. That is [top, left, bottom, right], not [x, y, w, h] and not [left, top, right, bottom].
def pixels_to_flux3_bbox(x, y, w, h, W, H):
return [
round(y / H * 1000),
round(x / W * 1000),
round((y + h) / H * 1000),
round((x + w) / W * 1000),
]
print(pixels_to_flux3_bbox(300, 200, 500, 400, 1920, 1080))
# [185, 156, 556, 417]
Common mistakes when boxes look wrong
- Wrong order. Sending
[x, y, width, height]or CSS-style[left, top, right, bottom]places the element somewhere else on the 0–1000 grid. - Aspect-ratio mismatch. Boxes drawn for one ratio, then sent with another
aspect_ratio, stretch off the intended layout. - Tiny new elements. The official guide notes that new elements in roughly 40×25-pixel boxes often did not appear in BFL’s own tests. Give new content room.
- Treating boxes as hard masks. Boxes guide placement and scale; spillover, shadows, and nearby lighting can change. For bit-locked outside pixels, composite after generation.
- Extra API fields. Reseller wrappers may expose
settings.boundingBoxes. Onapi.bfl.ai, extra properties fail validation becauseadditionalPropertiesis false.
Where this sits in a real request
Put the JSON array after the caption in prompt, with one space between them. Generation rows use id, bbox, and desc. Edit rows use from, src_bbox, and tgt_bbox instead of bbox. Full curl shape and pricing tables stay on the main guide; product choice versus FLUX.2 is on the comparison page.
Official references (verify on the live pages before you ship): bounding boxes, FLUX 3 Image overview, generate-an-image.