# flux-2-flex API — WanAPIs

> **Model ID**: `flux-2-flex` · **Provider**: Black Forest Labs · **Category**: image · **Endpoint**: `POST /v1/images/tasks`
> **Live Price**: $75.00 / 1M tokens (RMB-anchored quota: `¥1 = $1 quota`, ~86% off USD list rates at `$1 ≈ ¥7`).
> **Web Page**: https://wanapi.ai/model/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.

**Also known as**: Black Forest Labs flux-2-flex

## Live Pricing & Specs

- **Input (per 1M tokens)**: $75.00 quota (¥75 ≈ $10.71 USD)
- **Output (per 1M tokens)**: $75.00 quota (¥75 ≈ $10.71 USD)

## Quickstart (cURL)

```bash
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 shot on clean background",
  "size": "1:1",
  "n": 1
}'

# Poll until data.status is SUCCESS or FAILURE:
curl https://api.wanapis.com/v1/images/tasks/<task_id> \
  -H "Authorization: Bearer $WANAPIS_API_KEY"
```

## 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.

## Related Links

- Web Landing Page: https://wanapi.ai/model/flux-2-flex
- Agent Skill Router: https://wanapi.ai/SKILL.md
- Complete Live Pricing (Markdown): https://wanapi.ai/pricing.md
- OpenAPI 3.1 Spec: https://wanapi.ai/openapi.json
- MCP Server Card: https://wanapi.ai/.well-known/mcp.json
