Skip to main content
Wan generates images from text in a range of artistic styles, including photorealistic images.

Model parameters

  • Model IDs: wan2.6-t2i/wan2.5-t2i-preview/wanx2.1-t2i-plus/wanx2.1-t2i-turbo/wan2.2-t2i-flash/wan2.2-t2i-plus
  • Pricing: Check the Model Hub for current prices.
  • Endpoint: https://geekai.co/api/v1/images/generations
  • Parameters: See the Image API reference.
  • Authentication: Get an API key.
The following Image API parameters are not supported:
  • image
  • strength
  • aspect_ratio
  • quality
  • style_preset
  • response_format
  • output_format
  • mask
  • background
See also: Official Wan text-to-image API documentation.
For Wan 2.6 and Wan 2.5, use size to set the output resolution as width × height: Common recommended resolutions and their aspect ratios: The total pixel count must be within [1280x1280, 1440x1440] and the aspect ratio within [1:4, 4:1]. For Wan 2.1 and Wan 2.2 text-to-image models, both dimensions must be within [512, 1440] pixels, up to a maximum resolution of 1440x1440. Use n to set the number of generated images (1–4).

Text-to-image generation

The response is a JSON object containing the URL of the generated image: