Skip to main content
FLUX 3 Image is Black Forest Labs’ newest image model: it generates from text, edits from instructions, and combines up to 10 reference images into one. FLUX 3 Image Klein is the smaller, faster, cheaper variant. The model name sets the resolution, and prices start at $0.009 per image.

Models and prices

The resolution is part of the model name, and FLUX 3 Image and Klein produce the same pixel count at each tier:
  • Prices are per image in USD and match the 1K, 1.5K, 2K, and 4K prices on BFL’s pricing page (checked December 3, 2026).
  • An edit costs the same as a generation on the same model, whether you send one reference image or ten.
  • The 1K model names also accept "resolution": "768sq" for a smaller image, billed at the 1K price.
  • Call logs show what each request was charged; the model and pricing catalog lists current prices.
Typical output sizes:
  • 1K at 16:9: 1360×768
  • 1.5K at 16:9: 2048×1152
  • 2K at 1:1: 2048×2048
  • 4K at 16:9: 5456×3072

Choose a model and tier

  • FLUX 3 Image puts image quality and prompt following first. Use it for final assets, complex scenes, and multi-image composites. A 1K image takes about 25–32 seconds, and an edit 40–90 seconds.
  • FLUX 3 Image Klein is the compact model whose weights BFL has released openly. It is built for speed and low cost, so it suits batch jobs, previews, and quick iteration: about 10 seconds at 1K and 13 seconds per edit.
  • Tier: 1K covers web and social images; 1.5K or 2K suits product shots and images people zoom into; 4K is for large prints and images you plan to crop. A 4K image takes about 80–100 seconds.
Both families take exactly the same request fields, so switching only changes model.

Before you start

1

Create an API key

In Token management, create a key in the default group (or edit an existing one) and set Billing mode (计费模式) to Usage first (按量优先, recommended) or Per-call (按次计费). A Usage first key can call both per-call and usage-based models; a Per-call key calls only per-call models.Keep the key in a server-side environment variable.In Token management, create a token with Billing mode set to Per-call (按次计费), then select Create.
2

Set up your environment

Export the key and install requests, which the Python examples use:
The cURL examples write the response to a JSON file and then download the image with save_images.py, the save script from the Images API reference. The Python examples download the URL directly.

Generate an image

A request with only model and prompt is text-to-image. Set the framing with aspect_ratio; if you leave it out, it is auto and the model picks a ratio from the prompt, usually 16:9 for text-to-image.

cURL

The request returns a 1360×768 image. The script downloads data[0].url right away and names the file by its actual format. For 2K or 4K, change only model to flux-3-image-2k or flux-3-image-4k.

Python

This example generates a 2048×2048 square with flux-3-image-2k:

Response fields

  • data[0].url: the image URL, valid for about an hour. With "response_format": "b64_json" you get data[0].b64_json instead.
  • data[0].revised_prompt: the prompt the model actually used.
  • cost: BFL credits used by the request, where 1 credit is $0.01, so it matches the charge (4.8 for flux-3-image).
  • output_mp (FLUX 3 Image only): output size in megapixels.
  • created and usage: creation time and usage details.

Edit images and combine references

Edits use the same POST /v1/images/generations request with reference images added:
  • images: an array of up to 10 images, for combining several references
  • input_image: a single image, when you edit just one
Each image is a public URL or a data:image/png;base64,... data URL. This example turns two local files into data URLs and places a mug into a table scene:

cURL

If your images are already online, put their URLs in the array instead. Edits with FLUX 3 Image usually take 40–90 seconds, so give the client at least 300 seconds.

Python

Klein finishes an edit in about 13 seconds, which suits batch edits. This example replaces the background of a local image:
To send several references, replace input_image with "images": [to_data_url("a.png"), to_data_url("b.png")].

Parameters

aspect_ratio values:
  • Landscape: 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4
  • Square: 1:1
  • Portrait: 4:5, 3:4, 5:7, 2:3, 9:16, 1:2, 9:21
  • auto: the model chooses from the prompt
size only sets the ratio; the resolution still comes from the model name:
  • 1024x1024: 1:1
  • 1536x1024: 3:2, for example 1248×832 on flux-3-image
  • 1024x1536: 2:3
Any other size, and any width or height, returns a 400.

Errors and billing

These errors return HTTP 400 and are not charged:
A client timeout is not a failed request.
  • A 4K image takes about 80–100 seconds and a FLUX 3 Image edit up to 90 seconds, so set timeouts of about 300 seconds on your client, reverse proxy, and serverless function.
  • If the client disconnects early, the server may still finish and charge the request. Check call logs before you resend.

FAQ

How much does the FLUX 3 API cost per image?

From $0.009 to $0.607 per image, depending on the tier in the model name: Klein at 1K is the cheapest and FLUX 3 Image at 4K the most expensive. See Models and prices for the full list. Edits cost the same as generations, and reference images are free.

What’s the difference between FLUX 3 and FLUX.2?

FLUX.2 (flux-2-pro, flux-2-flex, flux-2-max) was retired on LaoZhang API on December 3, 2026; calls return a 404 and aren’t billed. Both use the same endpoint, but the request format differs: To move from FLUX.2, drop width and height, and use aspect_ratio with a tiered model name instead:
  • flux-2-pro → flux-3-image (1K, $0.048)
  • flux-2-flex → flux-3-image or flux-3-image-2k ($0.10)
  • flux-2-max → flux-3-image-2k or flux-3-image-4k ($0.607)
The FLUX.2 retirement announcement has a before-and-after request. The legacy Kontext models were also retired on December 3, 2026. Move them to FLUX 3 the same way:
  • flux-kontext-pro and flux-kontext-max → flux-3-image (1K, $0.048)
  • For higher resolution use flux-3-image-2k ($0.10); for fast, low-cost edits use flux-3-image-klein ($0.009)
  • Send the source image as input_image or in images, with the edit instruction as prompt

How do I generate 2K or 4K images with FLUX 3?

Change model to a tiered name such as flux-3-image-4k or flux-3-image-klein-4k; you don’t need resolution. Sending "resolution": "4k" to flux-3-image returns a 400.

Can I generate several images in one request?

No. n is ignored, so each request returns one image and is billed once. For more images, send parallel requests with different seed values.

How long does the image URL last?

About an hour. Download each image as soon as its request returns and store it yourself, or send "response_format": "b64_json" to get the image data in the response.

Is FLUX 3 video available?

No. LaoZhang API offers the FLUX 3 Image and FLUX 3 Image Klein image models only.