Note: Wispvue (flux3klein.org) is an unofficial site and is not affiliated with Black Forest Labs. Our browser tool supports text-to-image and single-image editing only; to use multi-reference inputs or bounding boxes, use the BFL API, ComfyUI, or local code.
How the images field and ordering work
In the Black Forest Labs (BFL) API (POST https://api.bfl.ai/v1/flux-3-image-klein), multi-reference inputs are passed through the optional images array.
- Capacity: 1 to 10 entries.
- Format: Each entry must be an
http(s)URL or a base64-encoded image string. - Size constraints: Each image must be at least 256×256 pixels and at most 16 MP.
- Ordering and primary image: The first entry in the
imagesarray is treated as the primary image being edited and sets the default output dimensions if you do not override them. - How to refer to images in text: In natural-language captions, refer to images using 1-based indexing by position—for example,
"image 1"refers to the first entry inimages, and"image 2"refers to the second entry. - How to refer to images in layout rows: Inside JSON bounding-box rows appended to the prompt, use 0-based indexing:
ref_image_0for the first entry,ref_image_1for the second entry, and so on.
Defining roles for each reference image
Reference images anchor content, but they do not lock structure. Your prompt must explicitly state what each reference image contributes to the final scene:
- Subject: Specify which image contains the object, character, or product to carry over.
- Material: Point to a reference image to transfer surface qualities (e.g., brushed aluminum, woven linen, glazed ceramic) onto an object in another image.
- Background: Designate one image as the scene or environment and another as the foreground item being placed into it.
- Style: When transferring style from a reference image, describe its visual attributes directly—such as color palette, stroke weight, and surface texture—rather than naming an artwork.
Using ref_image_n in bounding-box rows
When combining multiple reference images with bounding-box layout control, you can extract an element from a secondary reference image and place it into the primary image (ref_image_0). Each editing row is a JSON object with five keys: id, from, src_bbox, tgt_bbox, and desc. All coordinates use [top, left, bottom, right] on a 0–1000 grid.
Here is the official illustrative example combining an oak sideboard kept from the first image (ref_image_0) with a ceramic table lamp taken from a second reference image (ref_image_1):
[
{
"id": "lamp_1",
"from": "ref_image_1",
"src_bbox": [80, 250, 950, 750],
"tgt_bbox": [300, 120, 560, 280],
"desc": "a ceramic table lamp with a linen shade"
},
{
"id": "sideboard_1",
"from": "ref_image_0",
"src_bbox": [540, 60, 880, 940],
"tgt_bbox": [540, 60, 880, 940],
"desc": "an oak sideboard"
}
]
Example API request JSON and field reference
To call the endpoint, send a POST request to https://api.bfl.ai/v1/flux-3-image-klein with your API key in the x-key header, then poll the returned polling_url until the status is Ready.
{
"prompt": "Modify <ref_image_0> by placing the ceramic table lamp <lamp_1> from image 2 onto the left side of the oak sideboard <sideboard_1>. Keep the rest of the image exactly unchanged, preserving the wall color and floor lighting. [{\"id\": \"lamp_1\", \"from\": \"ref_image_1\", \"src_bbox\": [80, 250, 950, 750], \"tgt_bbox\": [300, 120, 560, 280], \"desc\": \"a ceramic table lamp with a linen shade\"}, {\"id\": \"sideboard_1\", \"from\": \"ref_image_0\", \"src_bbox\": [540, 60, 880, 940], \"tgt_bbox\": [540, 60, 880, 940], \"desc\": \"an oak sideboard\"}]",
"images": [
"https://example.com/room-with-sideboard.jpg",
"https://example.com/ceramic-lamp-reference.jpg"
],
"aspect_ratio": "16:9",
"resolution": "2k",
"output_format": "jpeg"
}
How to fill every API field used
prompt(required): A string containing your instruction or scene description. If using layout boxes, tag the elements in the caption as<id>and append the JSON array of box objects at the end of the string. The BFL API automatically runs prompt upsampling.images(optional): An array of 1 to 10 strings, where each string is anhttp(s)URL or base64-encoded image between 256×256 and 16 MP.aspect_ratio(optional): Defaults toauto(which follows the first image when editing). Allowed values:21:9,2:1,16:9,3:2,7:5,4:3,5:4,1:1,4:5,3:4,5:7,2:3,9:16,1:2,9:21.resolution(optional): Target output resolution tier. Allowed values:768sq($0.008),1k($0.009, default for text-to-image),1.5k($0.011),2k($0.014),4k($0.036). Text-to-image and editing cost the same. (You can also specifywidthandheight, orstepsif applicable.)output_format(optional): Output file format. Allowed values:jpeg(default) orpng.
Limits and common mistakes
- Sending unsupported API fields: The endpoint does not accept
negative_prompt,seed,prompt_upsampling, orguidance. Including any unknown field in your payload will return an HTTP422error. - Mixing up 1-based and 0-based indexing: Use
"image 1"and"image 2"in the written prose of your prompt, but useref_image_0andref_image_1inside JSON box definitions. - Putting the wrong image first: Because the first entry in
imagesis the base image being edited and sets the default output size, placing a small cropped object reference in position 0 instead of your main background scene will change your base canvas. - Expecting rigid pixel-for-pixel locks: Reference images anchor content rather than locking structure, and edits can change content outside the target region.
- Skipping the prompt upsampler locally: If you run the open-weights checkpoints locally instead of through the BFL API, BFL states that you should not use Klein without the prompt upsampler (
black-forest-labs/flux-3-image-klein-pup, which adds about 28 GB of GPU memory on an 80 GB GPU, per the model card). Short prompts sent as typed produce generic output, and a one-line edit like"make it blue"can reframe the entire shot.