Skip to main content
Wan2.6 T2I is a text-to-image generation model available through AnyFast. The API is synchronous — it polls the upstream task automatically and returns the final image URL directly.

Key capabilities

  • Text-to-image — Generate images from text descriptions
  • Flexible size — Specify output dimensions with size
  • URL or Base64 — Choose response_format as url or b64_json

Quick example

curl https://www.anyfast.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.6-t2i",
    "prompt": "A cute cat in Studio Ghibli style",
    "size": "1024x1024",
    "response_format": "url"
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesMust be wan2.6-t2i
promptstringYesText description of the image
nintegerNoNumber of images. Default: 1
sizestringNoOutput size, e.g. 1024x1024
response_formatstringNourl (default) or b64_json

Response

FieldDescription
data[].urlGenerated image URL (valid ~24 hours)
data[].b64_jsonBase64 image (only when response_format=b64_json)
data[].revised_promptAI-expanded prompt used for generation
createdUnix timestamp

API Reference

View the interactive API playground for Wan2.6 T2I.