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.
- 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.
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.
2
Set up your environment
Export the key and install
requests, which the Python examples use:save_images.py, the save script from the Images API reference. The Python examples download the URL directly.
Generate an image
A request with onlymodel 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
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 withflux-3-image-2k:
Response fields
data[0].url: the image URL, valid for about an hour. With"response_format": "b64_json"you getdata[0].b64_jsoninstead.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 forflux-3-image).output_mp(FLUX 3 Image only): output size in megapixels.createdandusage: creation time and usage details.
Edit images and combine references
Edits use the samePOST /v1/images/generations request with reference images added:
images: an array of up to 10 images, for combining several referencesinput_image: a single image, when you edit just one
data:image/png;base64,... data URL. This example turns two local files into data URLs and places a mug into a table scene:
cURL
Python
Klein finishes an edit in about 13 seconds, which suits batch edits. This example replaces the background of a local image: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:11536x1024: 3:2, for example 1248×832 onflux-3-image1024x1536: 2:3
width or height, returns a 400.
Errors and billing
These errors return HTTP 400 and are not charged: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-imageorflux-3-image-2k($0.10)flux-2-max→flux-3-image-2korflux-3-image-4k($0.607)
flux-kontext-proandflux-kontext-max→flux-3-image(1K, $0.048)- For higher resolution use
flux-3-image-2k($0.10); for fast, low-cost edits useflux-3-image-klein($0.009) - Send the source image as
input_imageor inimages, with the edit instruction asprompt
How do I generate 2K or 4K images with FLUX 3?
Changemodel 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.Related documentation
- FLUX.2 retirement announcement: which FLUX 3 model replaces
flux-2-pro,flux-2-flex, andflux-2-max - FLUX.2 image generation: the retired FLUX.2 and FLUX Kontext request formats, for reference while you migrate
- Choose an image generation API: compare FLUX with GPT Image, Nano Banana, and Seedream
- Images API reference: shared request format and the save script
- Model and pricing catalog: current prices
- FLUX 3 launch announcement
- Black Forest Labs pricing: per-image prices for each FLUX 3 Image and Klein tier (checked December 3, 2026)