FLUX.2 [pro] Image Edit API
Image Edit with FLUX.2 [pro] by Black Forest Labs. Black Forest Labs' production image model — photoreal, fast, up to 4 MP.
per image · 1 MP
With Max: from $0.027/img →Operational99.96% uptime (30 days)Try FLUX.2 [pro] Image Edit
References are billed by processed megapixels: one image up to 4MP, multiple images each 1MP. Output plus inputs must fit 9MP; quote with accessible image_urls before submitting.
Output image shape.
Output size in megapixels (1 MP ≈ 1024×1024). FLUX.2 is billed per megapixel.
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.
Also available: FLUX.2 [pro] Text to Image
See the FLUX.2 [pro] examples and prompts
FLUX.2 [pro] Image Edit API
/api/v1/run/bfl/flux-2-pro/editSubmits an asynchronous job and returns 202 with a generation id. Poll GET /api/v1/generations/{id} or pass webhook_url. See job lifecycle.
Input parameters
| Name | Type | Description | Affects price |
|---|---|---|---|
promptrequired | string | Describe the shot: subject, action, camera movement, lighting and style. | No |
image_urlsrequired | string[] (URLs) | References are billed by processed megapixels: one image up to 4MP, multiple images each 1MP. Output plus inputs must fit 9MP; quote with accessible image_urls before submitting. Max items: 8 | Yes |
aspect_ratio | string (enum) | Output image shape. Values: auto · 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3 Default: auto | Yes |
resolution | string (enum) | Output size in megapixels (1 MP ≈ 1024×1024). FLUX.2 is billed per megapixel. Values: 1MP · 3MP Default: 1MP | Yes |
webhook_url | string (URL) | Optional. We POST the finished generation here, signed with your webhook secret. Webhooks | No |
Request
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-pro/edit`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "Place the sneaker from image 1 on the concrete plinth in image 2, matching the hard afternoon shadows",
"image_urls": [
"https://cdn.cheapergen.com/samples/portrait.jpg"
],
"aspect_ratio": "auto",
"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);Response
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "bfl/flux-2-pro",
"endpoint": "bfl/flux-2-pro/edit",
"mode": "edit",
"status": "queued",
"input": {
"prompt": "Place the sneaker from image 1 on the concrete plinth in image 2, matching the hard afternoon shadows",
"image_urls": [
"https://cdn.cheapergen.com/samples/portrait.jpg"
],
"aspect_ratio": "auto",
"resolution": "1MP"
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}FLUX.2 [pro] pricing
Pay per image as you go, with no subscription required. Failed generations are refunded automatically.
| Tier | Official price | CheaperGen | You save |
|---|---|---|---|
1 MP ≈1024×1024 | $0.0276/img With a monthly plan: Pro $0.0273Max $0.0269 | −8% | |
2 MP | $0.0396/img With a monthly plan: Pro $0.039Max $0.0383 | −12% | |
3 MP | $0.0493/img With a monthly plan: Pro $0.0477Max $0.0461 | −18% | |
4 MP ≈2048×2048 | $0.0575/img With a monthly plan: Pro $0.0551Max $0.0526 | −23% | |
Edit 1 MP from one 1MP reference; inputs billed separately | $0.0381/img With a monthly plan: Pro $0.0379Max $0.0376 | −15% | |
Edit 3 MP from one 1MP reference; inputs billed separately | $0.0604/img | −19% |
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 [pro] ($0.03 for the first output megapixel, $0.015 per additional MP; input images $0.015 / MP, so an Edit row's official price includes one 1 MP input image). Prices verified October 18, 2026.
- Edit prices start with one 1MP reference. A single reference is rounded up by 1024×1024 pixels, capped at 4MP; multiple references are each processed and billed as 1MP. Output plus billed inputs must fit 9MP. Quote with image_urls; unreadable images cannot be quoted. Edit output remains 1MP or 3MP.
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[klein] 4B
Text → Image · Image Edit
The fastest FLUX.2 — open weights, sub-second, a fraction of a cent

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
