Wan2.5 Text to Video

Generate high-quality videos from text descriptions using the wan2.5-t2v-preview model.

API Endpoint

Create Video Generation Task

post

Create an asynchronous video generation task, returns task_id for subsequent queries.

Model Selection:

  • Text-to-Video (T2V): Use wan2.2-t2v-plus or wan2.5-t2v-preview, no img_url required
  • Image-to-Video (I2V): Use wan2.2-i2v-flash, wan2.2-i2v-plus, or wan2.5-i2v-preview, img_url required
Authorizations
AuthorizationstringRequired

Authenticate using Bearer Token.

Get API Key: Visit ViralAPI Console

Body
modelstring · enumRequired

Model name, supported options:

  • wan2.2-t2v-plus: Text-to-Video v2.2 (fixed 5s, no audio)
  • wan2.2-i2v-flash: Image-to-Video v2.2 Flash (480P/720P, fixed 5s)
  • wan2.2-i2v-plus: Image-to-Video v2.2 Plus (480P/1080P, fixed 5s)
  • wan2.5-t2v-preview: Text-to-Video v2.5 (prompt enhancement, 5/10s, audio)
  • wan2.5-i2v-preview: Image-to-Video v2.5 (higher quality, 5/10s, audio)
Possible values:
task_typestring · enumRequired

Task type, must be set to video

Possible values:
Responses
post
/v1/task/create

Usage Examples

Basic Text-to-Video

With Prompt Enhancement

Important Notes

Prompt Enhancement: Enable prompt_extend: true to automatically optimize your prompt for better results Duration Options: Choose 5 or 10 seconds, defaults to 5 seconds Audio Support: Generates videos with audio by default (auto-dubbing), customize via audio_url Prompt Length: Maximum 1500 characters Processing Time: Typically 1-5 minutes Video Expiration: 24 hours, download promptly

Last updated