FLUX 3 Box Guide
Checked against BFL docs 3 Oct 2026; page added 12 Oct 2026

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.

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

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.