CheaperGen
Black Forest LabsimageFast

FLUX.2 [klein] 4B API

The fastest FLUX.2 — open weights, sub-second, a fraction of a cent

Try FLUX.2 [klein] 4B

Runs on your balance at the price shown on the button. Results are saved to your account.

Open full-screen Studio
0

Output image shape.

1K ≈ 1 MP; 2K ≈ 4 MP (long side up to 2048 px).

Always on here. Set enable_safety_checker to false over the API to turn it off.Always on here. Set enable_safety_checker to false over the API to turn it off.

If set to true, the safety checker will be enabled. Our Acceptable Use Policy applies either way.

Estimated cost…

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.

Sub-second
4-step distilled
Fraction of a cent
Per 1 MP image
4 references
Image editing
Open weights
Apache-2.0

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.

TierOfficial priceCheaperGen
1K
≈1 MP
$0.014/img$0.001/img
With a monthly plan: Max $0.0009
2K
≈4 MP
$0.0172/img$0.0038/img
With a monthly plan: Pro $0.0037Max $0.0036

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.

Full API reference
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.

  • Flat-lay of breakfast on a marble table, top-down, bright daylight

    Try it
  • Image Edit

    Make the jacket in image 1 bright yellow, keep everything else

    Try it

FLUX.2 [klein] 4B FAQ

Per image by output size (megapixels) — a fraction of a cent at 1K. Failed generations are not charged.

Yes. FLUX.2 [klein] 4B is BFL's open-weights (Apache-2.0) model, served on optimized GPU inference for open-source models.

Yes — the 4B weights are Apache-2.0 — subject to our Terms of Service.

FLUX.2 [klein] 4B costs $0.001–$0.0038 per image, 78–93% below the official price. 1,000 1K images cost $0.95. You pay per image, with no subscription needed, and failed generations are refunded. Real projects priced end to end: [FLUX.2 [klein] 4B API cost](/models/bfl/flux-2-klein-4b/cost).

1K: $0.001/image (official $0.014); 2K: $0.0038/image (official $0.0172). The price per image page breaks it down further; every tier is on [FLUX.2 [klein] 4B API pricing](/models/bfl/flux-2-klein-4b/pricing).

Use 1K ($0.001 an image), then render finals at the size you need. Every tier here is already 78–93% below the official price. More: [Cheapest FLUX.2 [klein] 4B](/models/bfl/flux-2-klein-4b/cheapest).

Sign up at CheaperGen, add credits and create a key in Dashboard → API keys, then send it as a bearer token. The same key works for FLUX.2 [klein] 4B and every other model in the catalog; you don't need a Black Forest Labs account. Step by step: [FLUX.2 [klein] 4B API key](/models/bfl/flux-2-klein-4b/api-key).

The [FLUX.2 [klein] 4B API documentation](/models/bfl/flux-2-klein-4b/api) covers its 2 endpoints (bfl/flux-2-klein-4b/text-to-image, bfl/flux-2-klein-4b/edit): every parameter with its allowed values and default, request and response examples in cURL, Python and Node.js, polling, webhooks and errors. An OpenAPI file is available too.

Besides FLUX.2 [klein] 4B, the FLUX API covers FLUX 3 Image Klein (from $0.0011/image), FLUX 3 (from $0.0404/image), FLUX 3 Video (from $0.1425/s), FLUX.2 [max] (from $0.0644/image), FLUX.2 [pro] (from $0.0276/image), FLUX.2 [flex] (from $0.046/image), FLUX.1 Kontext [pro] (from $0.0348/image) and FLUX.1 Kontext [max] (from $0.0695/image). All run on the same API key; the FLUX API page compares them side by side, and FLUX Latest shows which is newest.

There is no free tier, but no subscription is needed either: credits are prepaid and only successful generations are charged. Failed generations are refunded automatically, and the quote endpoint (POST /v1/quote/{endpoint}) prices any request for free. No code needed: [how to use FLUX.2 [klein] 4B](/models/bfl/flux-2-klein-4b/how-to-use) in the Studio.

Popular Black Forest Labs models, on the same API key.

All Black Forest Labs models

Popular text-to-image models from other developers.

Text to image API

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