FLUX 3 Image
FLUX 3 Image Editing
Edit an image with a written instruction, combine up to ten references, and add bounding boxes to place elements or target an edit.
Quickstart
Send an image inimages and say what to change. This request recolors an owl
and keeps the rest of the photo as it was. Drag the handle to compare:Set BFL_API_KEY to a key from the BFL dashboard, then submit:aspect_ratio defaults to auto, so the edit keeps the shape of the image
you send. Poll the returned polling_url until status is Ready, then
download the image from result.sample within 1 hour.
FLUX 3 Text to Image has complete
clients that submit, poll, and save.Edit with an instruction
These examples callgenerate() from the
complete clients, which submits a
request, polls until it is ready, and saves the image.Send the image in images and write the change as an instruction. Name the
element precisely enough that only one thing in the image matches. This
request changes the color of one bird in a flock:aspect_ratio left at auto, the output keeps the aspect ratio of the
image you send.You don’t have to draw a box for a single edit. Before it generates, FLUX 3
Image expands your instruction into a detailed prompt, and for many edits it
also finds the element you named and adds a box for it. The expanded prompt,
including any boxes it added, comes back in result.prompt. To control exactly
which elements change, use bounding boxes.Multi reference
Refer to each image by its position or by what it shows. “Image 1” is the first entry inimages, “image 2” the second, and so on up to ten. Here,
image 1 is the scene and image 2 supplies the object to place in it:aspect_ratio at auto, the output uses the aspect ratio of the first
image in images. The turntable is first, so the result is landscape. For a
different shape, put a different image first or set aspect_ratio.For product shots, try-ons, and group compositions, say how the images relate:
“the person from image 1 wears the jacket from image 2 and stands in the
kitchen from image 3”.Examples
Each example shows the inputs, the result, and the prompt that produced it.Single Image Reference
Send one image and write the change as an instruction. Drag the handle to compare:Multi Image Reference
Refer to each image by its position inimages. The output keeps the
aspect ratio of image 1.Replace an object with a new designAdd elements from several imagesFurnish a roomEdit with Bboxes
Each edit changes one boxed element and anchors the rest. Select an example, then switch between before and after.Send a request
Copy a request body from the bounding box examples and paste it where indicated below, including its outer braces. To adapt an edit to your image, update the image URL, element descriptions, and source and target boxes.generate() is defined in the complete clients.
It submits the request, polls until the image is ready, and saves it. With
cURL, poll the returned polling_url until status is Ready, then download
result.sample.Coordinate conversion and editing tips
Coordinate conversion and editing tips
Use the aspect ratio you designed the layout for, because the grid
stretches with the frame. For edits, To move or resize an element, use different source and target boxes.
Use matching boxes to ask for it to stay in place. State additions and
removals in the written instruction as well as the rows.Very small boxes can fail. In our tests, a new element in a box about
40 × 25 pixels often did not appear, so give new elements a larger box.Give text its own box and quote the words in
auto
follows the first reference; without a reference, it produces a square.desc.
See Layout prompts for more examples.Try drawing a box
Try drawing a box
Draw over a marked region, or choose one below the image, then select
an object. This demo uses saved edits and makes no API requests.
Pixel-perfect edits
Pixel-perfect edits
Pixels outside the boxes usually stay the same. Shadows, reflections,
or nearby lighting may still change.Compare each input with its edit. Switch to Changed pixels to see which
areas the edit touched.
Keep exploring
FLUX 3 Text to Image
Complete clients that submit, poll, and save, plus edits and
multi-reference requests.
API reference
The full request schema, limits, and response codes.
Layout prompts
How to write the caption and element table for a layout.

