Back to Models

Wan 2.2 T2I Flash

wanwan/wan2.2-t2i-flash

Wan 2.2 text-to-image β€” fast tier, async via /v1/jobs.

wan2.2-t2i-flash is the fast tier of Alibaba's Wan 2.2 text-to-image model. It generates images from text prompts at $0.04 per image β€” the right default for high-volume creative work, thumbnails, social-post variants, and exploratory iteration.

Image generation runs asynchronously: submit a job to `/v1/jobs` and receive an `img_`-prefixed job ID, then poll until the job completes and fetch the resulting URL. This pattern follows OpenAI's async job convention β€” your existing SDK helpers should work with a model-ID swap.

$0.04 per image
Fast tier of Wan 2.2. Designed to absorb bulk and exploratory generation runs.
Async via /v1/jobs
Submit β†’ poll β†’ fetch URL. Job IDs are prefixed with `img_`. Same flow as other TheRouter async jobs.
Text-to-image
Pure text-prompt β†’ image generation. No image-conditioning input on this tier.
Dual-region routing
Selector picks bailian-cn or bailian-sg per request based on cost.
When to use
Bulk image generation, social-post variants, thumbnail generation, exploratory prompt iteration, and any workload where you trade some fidelity for throughput and cost.
When not to use
Hero imagery, marketing keyframes, or final-delivery creative β€” step up to wan2.2-t2i-plus for higher fidelity.
Pricing: $0.04 per generated image. Billed per successful image, not per prompt token. TheRouter routes to the cheaper of bailian-cn / bailian-sg per request.
Context Length
--
Max Output
--
Image Price
$0.048/ image
Per image Price
$0.048/ image

Modalities

text→image

Pricing Breakdown

TypeRate
Image$0.048 / image
Per image$0.048 / image

Per-image flat fee on Aliyun Bailian Wan 2.2 Flash

Supported Parameters

promptsizenseed

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

Recommended: use the async API

Image generation typically takes 30–180s, beyond the edge sync timeout. The examples below use the ?async=true submit + poll pattern. Read the full async image generation & edit guide β†’

cURL
# 1) Submit job (returns 202 immediately with a polling URL).
# Image generation takes 30-180s β€” always use the async path in production.
JOB=$(curl -s -X POST "https://api.therouter.ai/v1/images/generations?async=true"   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "wan/wan2.2-t2i-flash",
    "prompt": "A cinematic product render with soft studio lighting"
  }' | python3 -c "import sys,json;print(json.load(sys.stdin)['id'])")
echo "submitted: $JOB"

# 2) Poll until terminal (succeeded / failed / cancelled / expired).
while :; do
  R=$(curl -s "https://api.therouter.ai/v1/jobs/$JOB"     -H "Authorization: Bearer $THE_ROUTER_API_KEY")
  S=$(echo "$R" | python3 -c "import sys,json;print(json.load(sys.stdin)['status'])")
  echo "status: $S"
  case "$S" in
    succeeded) echo "$R" | python3 -c "import sys,json;print(json.load(sys.stdin)['unsigned_urls'][0])"; break ;;
    failed|cancelled|expired) echo "$R"; exit 1 ;;
  esac
  sleep 5
done
Customer Support