CheaperGen
Black Forest Labsimage

FLUX.2 [flex] API

FLUX.2 with adjustable steps and guidance — best for text and fine detail

Try FLUX.2 [flex]

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.

Output size in megapixels (1 MP ≈ 1024×1024). FLUX.2 is billed per megapixel.

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 [flex]?

FLUX.2 [flex] lets you tune sampling steps and guidance for the best typography and fine detail, up to 4 megapixels.

Steps & guidance
Tune quality vs speed
Typography
Strong text rendering
Up to 4 MP
1–4 megapixel output
Per-MP pricing
Pay for the size you need

You control the trade-off

Raise steps for the finest detail and crisp typography, or lower them for quick drafts; adjust guidance to follow the prompt more or less strictly.

FLUX.2 [flex] pricing

Pay per image as you go, with no subscription required. Failed generations are refunded automatically.

TierOfficial priceCheaperGen
1 MP
≈1024×1024
$0.05/img$0.046/img
2 MP
$0.10/img$0.0861/img
With a monthly plan: Pro $0.0841Max $0.0821
3 MP
$0.15/img$0.115/img
With a monthly plan: Pro $0.1101Max $0.1052
4 MP
≈2048×2048
$0.20/img$0.1364/img
With a monthly plan: Pro $0.1294Max $0.1223

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 [flex] ($0.05 per megapixel of output and of input images). Prices verified October 18, 2026.
  • Text-to-image only — use FLUX.2 [pro], FLUX 3 or Kontext for editing.

Specifications

Resolutions
1 · 2 · 3 · 4 MP
Steps
1–50
Guidance
1.5–10
Released
Nov 25, 2025

Use FLUX.2 [flex] 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-flex/text-to-image`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "Editorial photo of a ceramic vase with dried flowers on a linen-covered table, soft north light, film grain",
    "aspect_ratio": "1:1",
    "resolution": "1MP"
  }),
}).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.

  • Vintage travel poster for “KYOTO”, Mt. Fuji at dawn, bold serif lettering, screen-print texture

    Try it
  • Packaging mockup of a tea tin labeled “MORNING MIST — Green Tea”, studio photo

    Try it

FLUX.2 [flex] FAQ

FLUX.2 [flex] is billed per image by output megapixels, like Black Forest Labs' own API: a price for the first megapixel and a price for each additional one. Failed generations are not charged.

Yes. Requests run on Black Forest Labs' FLUX.2 [flex] model at a lower price than the BFL list price.

Yes, outputs of the FLUX API models can be used commercially, subject to Black Forest Labs' terms and our Terms of Service.

FLUX.2 [flex] costs $0.046–$0.1364 per image, 8–32% below the official price. 1,000 1 MP images cost $46.00. You pay per image, with no subscription needed, and failed generations are refunded. Real projects priced end to end: [FLUX.2 [flex] API cost](/models/bfl/flux-2-flex/cost).

1 MP: $0.046/image (official $0.05); 2 MP: $0.0861/image (official $0.10); 3 MP: $0.115/image (official $0.15); 4 MP: $0.1364/image (official $0.20). The price per image page breaks it down further; every tier is on [FLUX.2 [flex] API pricing](/models/bfl/flux-2-flex/pricing).

Use 1 MP ($0.046 an image), then render finals at the size you need. Every tier here is already 8–32% below the official price. In the same family, FLUX 3 Image Klein starts at $0.0011/image. More: [Cheapest FLUX.2 [flex]](/models/bfl/flux-2-flex/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 [flex] and every other model in the catalog; you don't need a Black Forest Labs account. Step by step: [FLUX.2 [flex] API key](/models/bfl/flux-2-flex/api-key).

The [FLUX.2 [flex] API documentation](/models/bfl/flux-2-flex/api) covers its endpoint (bfl/flux-2-flex/text-to-image): 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 [flex], 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 [klein] 4B (from $0.001/image), FLUX.2 [max] (from $0.0644/image), FLUX.2 [pro] (from $0.0276/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 [flex]](/models/bfl/flux-2-flex/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 [flex] is developed by Black Forest Labs. CheaperGen provides API access and does not own the model. Trademarks belong to their respective owners. · Markdown · OpenAPI