# flux-klein-2 API — WanAPIs

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

Black Forest Labs FLUX.2 [klein] (Jan 2026), the fastest tier of the FLUX family, generating and editing images in under a second. It comes in 4B and 9B sizes, with the 4B released under Apache 2.0 and the 9B under a non-commercial licence.

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

## Live Pricing & Specs

- **Per call**: $0.120 (¥0.12/call (~$0.017 USD/call))

## 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-klein-2",
  "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-klein-2 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-klein-2".

### How much does flux-klein-2 cost on WanAPIs?

Current live rate: $0.120 / call. 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-klein-2.md.

## Related Links

- Web Landing Page: https://wanapi.ai/model/flux-klein-2
- 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
