Skip to main content

Bounding Box Editor

Bounding Box Editor lets you draw rectangles over an image and describe what belongs in each region. It sends those regions as a Layout, which compatible generation Nodes can use to guide placement.

Connect an image to start drawing. With no boxes supplied or drawn, the output is an empty Layout.

Bounding Box Editor showing a box around an illustrative vase, with numbered markers beside its editing controls.

An illustrative vase used as a guide for drawing a region. The numbered markers identify the editor parts below.

Use the editor​

  1. Image surface. Drag over an empty area to draw a box. The image is a positioning guide; drawing does not change its pixels.
  2. Box and resize handles. Select a box, then drag its body to move it or an edge or corner to resize it.
  3. Box list. Select a row to work on that box. The numbers show its position and size as percentages of the image.
  4. Color. Cycle the box's outline color to make it easier to see. Color changes the display only.
  5. Edit details. Open the selected box's label, caption, and text fields.
  6. Delete. Remove the selected box. You can also press Delete or Backspace while working in the editor.
  7. Visibility. Hide or show a box's outline. Hidden boxes remain in the output; delete a box to remove it.
  8. Clear. Remove all boxes.

Describe a region​

  1. Draw or select a box.
  2. Select Edit box details beside its row.
  3. Enter a Label to describe the region, such as “A teal ceramic vase.”
  4. Add Text to render for words you want to appear in the generated image.
  5. Select Done.

Caption stores additional region details, but Flux 3 Image does not use it. Put generation instructions in Label. The receiving Node decides how to use these details. For example, Flux 3 appends Text to render to the region's description rather than treating it as a separate text-rendering field. Check the result; a box guides generation rather than guaranteeing exact placement or lettering.

Edit an existing Layout​

Connect a Layout output to the optional Boxes input, and connect an image to Image. The editor starts with the supplied regions so you can adjust their positions and descriptions.

Select Reset to input to replace your edits with the current incoming Layout. This control appears only when Boxes has an input. Regions without a destination box remain in the Layout but do not appear as editable boxes over the image.

If the source image or incoming Layout changes, the earlier edits can remain visible but are no longer ready for reuse. Review the new source and edit again, clear the boxes, or reset to the input before running connected Nodes. Changing an outline's color alone does not confirm the earlier boxes for a new source.

Guide a composition​

Add the Layout Model Extension to Flux 3 Image (on fal), then connect Boxes to its Layout input. Supply an overall prompt on Flux 3 as well. The image shown in Bounding Box Editor is not automatically sent to Flux 3 as a reference image; add an Image Reference extension and connect it separately when needed.

An Image Input connected to Bounding Box Editor, whose Boxes output supplies the Layout input of Flux 3 Image.

Bounding Box Editor used to plan the placement of a vase in an image; the source and generated result are illustrative.

Inputs, output, and limits​

PortTypeUse
Image inputImageThe image used to position the boxes.
Boxes inputLayoutOptional regions to start from.
Boxes outputLayoutThe current ordered regions and their descriptions.

Boxes stay inside the image and must have a positive width and height. Very small drag gestures are ignored; zoom in if you need to draw a small region. An empty Layout is valid, though a receiving Node can require useful regions or descriptions.

Box coordinates are relative to the image, so they describe a proportion of its width and height rather than fixed pixel dimensions. General image constraints are listed in Image; region constraints are listed in Layout.