View as Markdown (.md)
Black Forest LabsImageflux-2-flex

flux-2-flex API

Black Forest Labs FLUX.2 image generation/editing models with a latent flow-matching architecture, up to ~4-megapixel output, excellent text rendering, exact color matching and character consistency, and up to 10 reference images for editing.

Give this to your agent·Claude Code·Codex·Cursor·OpenClaw / Hermes

Read https://wanapi.ai/SKILL.md and https://wanapi.ai/model/flux-2-flex.md, then configure WanAPIs for flux-2-flex

Token Pricing (1M)
$75.00 / $75.00
≈ $10.71 / $10.71 USD
Provider
Black Forest Labs
Unified billing
API Endpoint
/v1/images/tasks
Async polling
Billing Rate
¥1 = $1 quota
~86% off USD parity

Live Cost Estimator

¥1 = $1 quota

Adjust parameters to preview live WanAPIs quota, RMB real cost, and approx. USD (~86% off USD parity).

1
10K
2K
10K input + 2K output tokens
¥0.9
≈ $0.129 USD
($0.9 quota)
1,000 similar requests ≈ ¥900 (~$128.57 USD)
curl https://api.wanapis.com/v1/images/tasks \
  -H "Authorization: Bearer $WANAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-2-flex",
  "prompt": "Minimalist studio product photography on a soft neutral backdrop, 85mm lens",
  "size": "1:1",
  "n": 1
}'

# Poll data.task_id every 3s until SUCCESS
curl https://api.wanapis.com/v1/images/tasks/<task_id> \
  -H "Authorization: Bearer $WANAPIS_API_KEY"
Async image endpoint · save temporary URLs on SUCCESShttps://api.wanapis.com/v1

About flux-2-flex

Black Forest Labs FLUX.2 image generation/editing models with a latent flow-matching architecture, up to ~4-megapixel output, excellent text rendering, exact color matching and character consistency, and up to 10 reference images for editing.

Capabilities

  • Text-to-image
  • Reference image

Compare Related Models (Live Pricing)

Synced live from /api/pricing · ¥1 = $1 quota (~86% off USD parity at $1 ≈ ¥7).

ModelLive Price (Quota)Est. Real Cost (¥ / ~USD)Action
$75.00 / 1M tokens¥75 / ¥75 (~$10.71 / $10.71 USD)—
$0.120 / call¥0.12/call (~$0.017 USD/call)View
$0.207 / call¥0.207/call (~$0.03 USD/call)View
$0.291 / call¥0.291/call (~$0.042 USD/call)View

flux-2-flex FAQ

How do I call flux-2-flex via WanAPIs?

Send an authenticated request with Authorization: Bearer <WANAPIS_API_KEY> to https://api.wanapis.com using POST /v1/images/tasks and model "flux-2-flex".

How much does flux-2-flex cost on WanAPIs?

Current live rate: $75.00 / 1M tokens. WanAPIs uses RMB-anchored quota (¥1 = $1 quota, roughly 1/7 or ~86% off USD-denominated list pricing) with zero monthly subscription.

Can AI coding agents (Claude Code, Codex, Cursor) discover and use this model?

Yes. Point your agent to https://wanapi.ai/SKILL.md or install npx -y @wanapis/mcp. A machine-readable Markdown spec is also available at /model/flux-2-flex.md.

More Black Forest Labs models

Integrate flux-2-flex in minutes

Sign up for starter credit — change one base_url line or hand SKILL.md to your AI agent.