FLUX.2 [klein] 4B API
The fastest FLUX.2 — open weights, sub-second, a fraction of a cent
per image · 1K
With Max: from $0.0009/img →Operational99.98% uptime (30 days)median 3sTry FLUX.2 [klein] 4B
Runs on your balance at the price shown on the button. Results are saved to your account.
Output image shape.
1K ≈ 1 MP; 2K ≈ 4 MP (long side up to 2048 px).
If set to true, the safety checker will be enabled. Our Acceptable Use Policy applies either way.
Create a free account with Google or email — pay only for what you generate.
Your image will appear here
Write a prompt, pick your settings and hit Run. You only pay for successful generations.
What is FLUX.2 [klein] 4B?
FLUX.2 [klein] 4B is Black Forest Labs' small, open (Apache-2.0) FLUX.2 model: sub-second text-to-image and editing with up to 4 reference images, at a fraction of a cent per image.
Real-time FLUX
klein 4B distills FLUX.2 into 4 steps, so images come back in well under a second — for live previews, batch jobs and interactive apps.
Edits too
Give it up to 4 reference images and describe the change; the output follows the input image.
FLUX.2 [klein] 4B pricing
Pay per image as you go, with no subscription required. Failed generations are refunded automatically.
| Tier | Official price | CheaperGen | You save |
|---|---|---|---|
1K ≈1 MP | $0.001/img With a monthly plan: Max $0.0009 | −93% | |
2K ≈4 MP | $0.0038/img With a monthly plan: Pro $0.0037Max $0.0036 | −78% |
Monthly plans lower prices on most models (shown under each price); you can still pay as you go. Pro $499/month · Max $4,999/month.
- Official price: BFL API list price for FLUX.2 [klein] 4B ($0.014 for the first output megapixel, $0.001 per additional MP; input images at $0.001 / MP). Prices verified October 18, 2026.
Specifications
- Resolutions
- 1K (≈1 MP) · 2K (≈4 MP)
- Aspect ratios
- 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3
- Edit inputs
- Up to 4 images
- Weights
- Open (Apache-2.0)
- Enable Safety Checker
- Default true · can be set to false over the API
- Released
- Jan 15, 2026
Use FLUX.2 [klein] 4B via API
One request to start a job, one to fetch the result. Same shape for every model.
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/bfl/flux-2-klein-4b/text-to-image`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A cozy coffee shop interior with vintage furniture, morning light, photo",
"aspect_ratio": "1:1",
"resolution": "1K"
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.images[0].url : job.error);Example prompts
Hit “Try it” to load a prompt into the playground above.
FLUX.2 [klein] 4B FAQ
More from Black Forest Labs
Popular Black Forest Labs models, on the same API key.

FLUX 3Image Klein
Text → Image · Image Edit
The open-weights FLUX 3 — 16-step images in seconds, from a fraction of a cent

FLUX3
Text → Image · Image Edit
Black Forest Labs' newest image model — grounded, layout-aware, up to 4K

FLUX.2[pro]
Text → Image · Image Edit
Black Forest Labs' production image model — photoreal, fast, up to 4 MP

FLUX.2[flex]
Text → Image
FLUX.2 with adjustable steps and guidance — best for text and fine detail
Similar image models
Popular text-to-image models from other developers.

Seedream5.0 Pro
Text → Image · Image Edit
Production-grade image generation and precise editing

GPT Image2.5
Text → Image · Image Edit
OpenAI's top image model — precise edits, perfect text, up to 4K

Seedream5.0 Lite
Text → Image · Image Edit
High-quality Seedream images at a lower price

Nano Banana2.1
Text → Image · Image Edit
Google's newest Nano Banana — top-ranked quality at a quarter of Pro's price
FLUX.2 [klein] 4B is Black Forest Labs' open-weights model. CheaperGen provides API access to the open weights, run on GPU inference for open-source models, and does not own the model. Trademarks belong to their respective owners. · Markdown · OpenAPI
