FLUX.2 API
flux-2-pro-text-to-imageFLUX.2 — fast, high-fidelity AI image generation & editing.
by Black Forest Labs
Pricing: Pro Text To Image — 1K: 2.84 credits (≈ $0.0284), 2K: 4.12 credits (≈ $0.0412). Flex Text To Image: 1K 9.75 credits (≈ $0.0975), 2K 15.42 credits (≈ $0.1542) · Flex Image To Image: 1K 9.75 credits (≈ $0.0975), 2K 15.42 credits (≈ $0.1542).
Save up to 17%with the $1,250 top-up pack (+10% bonus) — 8% lower than direct rates even without itTop up24H Status Monitor
OperationalAffordable FLUX.2 API on you.bot
Black Forest Labs Flux.2 — the next-gen Flux with sharper detail and better prompt following.
FLUX.2 API pricing & guide (2026)
FLUX.2 — fast, high-fidelity AI image generation & editing. Through you.bot you call the FLUX.2 API by Black Forest Labs on the same unified endpoint as every other model — one key, one integration.
On you.bot, the FLUX.2 API costs about $0.028 per image — roughly 5% cheaper than the official Black Forest Labs price of $0.03. You only pay for successful generations; failed tasks are never charged.
Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So FLUX.2 API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.
Core capabilities of the FLUX.2 API
High detail
Crisp, coherent images with improved fidelity.
Strong prompt adherence
Follows complex prompts more faithfully than Flux.1.
Reference support
Guide output with an input image.
Where the FLUX.2 API fits in production
Every image below was generated on you.bot with the FLUX.2 API itself — no stock photography.

Textures and backgrounds
Tileable grounds and materials for the rest of your design system.

Concept art and moodboards
Explore a direction in minutes before committing a shoot budget.

Product detail imagery
Keep the product, the surface and the lighting under separate control, so one selling point can be reworked without disturbing the rest of the frame.

Data-driven visuals
Dense information comes out as a composition with a hierarchy rather than stacked labels.

Changing one thing in a finished image
Replace a single object or recolour one area while the rest of the composition stays where it was.

Catalogue runs at scale
Hundreds of SKUs from one prompt template, fired in parallel on a single key.
How to access and deploy the FLUX.2 API on you.bot
Get your API key
Create a key in the dashboard — one key works across every model on the platform.
Call the FLUX.2 endpoint
POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.
Poll for your result
Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer sk-live-..." \
-H "Content-Type: application/json" \
-d '{
"modelId": "flux-2-pro-text-to-image",
"input": { "prompt": "..." }
}'FLUX.2 API on you.bot vs going direct
| Feature | you.bot | Going direct |
|---|---|---|
| Price per image | $0.028 | $0.03 |
| Failed-task billing | Free (auto-refund) | Charged |
| Integration | One unified API | Per-vendor SDKs |
| Credit expiry | Never | Varies |
4.9
Based on 1,200+ developer reviews
Why choose you.bot for the FLUX.2 API
5% cheaper
Lower rates than going direct to Black Forest Labs — and you only pay for successful runs.
Production-grade reliability
Monitored availability with automatic credit refunds on failed jobs.
One API for everything
Swap models freely without touching your integration or juggling vendors.
FAQs about the FLUX.2 API
FLUX.2 is billed per image at about $0.028 on you.bot — and you only pay for successful generations.
Yes — output can be used in commercial projects, subject to the upstream provider's usage policy.
Create a task to receive a taskId, then poll the task endpoint or register a webhook to fetch the result.
Yes — it's the same Black Forest Labs model, accessed through you.bot's unified API at better rates.
Set `aspect_ratio` to one of: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3. The default is 1:1.
Choose `resolution` from: 1K, 2K. Higher settings cost more per run — the price for each setting is shown in the playground before you run. The default is 1K.
Black Forest Labs
FLUX.2 API code example
/api/v1/generateFLUX.2 — fast, high-fidelity AI image generation & editing.
Overview
FLUX.2 runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.
Key features
- Flexible aspect ratios: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3
Authentication
All requests require a Bearer Token in the header:
Authorization: Bearer YOUR_API_KEYRequest parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| modelId | string | Yes | Model id: `flux-2-pro-text-to-image` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings |
input object parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Must be between 3 and 5000 characters. · default: Hyperrealistic studio photo of a glass terrarium shaped like a vintage camera, a tiny forest growing inside, product lighting. |
| aspect_ratio | string | Yes | Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image). (options: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3) · default: 1:1 |
| resolution | string | Yes | Output image resolution. (options: 1K, 2K) · default: 1K |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) · default: true |
Query task status
/api/v1/task/{taskId}?model=flux-2-pro-text-to-imageWhen state is success, the output is in resultUrls:
{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }Error codes
| Code | Description |
|---|---|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed — check API Key |
| 402 | Insufficient account balance |
| 403 | IP not allowed for this key, or the key is restricted to other models |
| 404 | Task not found, or it has expired |
| 409 | Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe |
| 413 | Payload too large — see the character and file-size limits for this model |
| 429 | Rate limit exceeded — retry after the Retry-After header |
| 500 | Internal server error |
| 504 | Upstream timed out — nothing was delivered; retry is safe |
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelId": "flux-2-pro-text-to-image",
"input": {
"prompt": "Hyperrealistic studio photo of a glass terrarium shaped like a vintage camera, a tiny forest growing inside, product lighting.",
"aspect_ratio": "1:1",
"resolution": "1K",
"nsfw_checker": true
},
"callbackUrl": "https://your-domain.com/api/callback"
}'{
"taskId": "281e5b0…f39b9",
"creditsCharged": 2.84
}




