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

FLUX 3 Image: replace an object inside a bounding box

Upload a full photo, mark the chair (or product) with a box, and describe the replacement. FLUX 3 Image edit rows use from, src_bbox, and tgt_bbox—not a hard pixel mask. This page shows the request shape and what “preserve the rest” really means.

Direct answer

Send the source image in images. In the prompt’s JSON element table, use an edit row: set from / src_bbox to the region you want to change, put the new description on that row, and keep other rows as keep (same src_bbox and tgt_bbox) when you need explicit preservation. Boxes guide placement; they are not bit-locked masks. Shadows, contact edges, and nearby lighting can still change. For strict outside-pixel lock, composite after generation.

This site is an independent layout guide, not Black Forest Labs. Start from the FLUX 3 Image bounding box API guide. Pixel → 0–1000 conversion: coordinates. Runnable client: Python example.

Edit-row pattern (conceptual)

// Inside prompt JSON table (shape matches BFL bounding-box guide)
[
  {"id": "chair", "from": "ref_image_0", "src_bbox": [300, 420, 900, 780],
   "tgt_bbox": [300, 420, 900, 780], "desc": "blue upholstered armchair, same scale and orientation"},
  {"id": "wall", "from": "ref_image_0", "src_bbox": [0, 0, 1000, 1000],
   "tgt_bbox": [0, 0, 1000, 1000], "desc": "keep"}  // optional explicit keep of full frame context
]

Exact field names and keep/new/remove conventions follow the official bounding-box guide (checked 3 Oct 2026). New elements need enough box area; very small boxes often fail to appear in BFL’s own tests.

Practical tips that match real askers

Related pages

API guide · pixel → 0–1000 · Python client · FLUX 3 boxes vs FLUX.2

Official references to verify before you ship: bounding boxes, overview, generate-an-image.