Wan2.2 Text to Video
API Endpoint
Create an asynchronous video generation task, returns task_id for subsequent queries.
Model Selection:
- Text-to-Video (T2V): Use
wan2.2-t2v-plusorwan2.5-t2v-preview, noimg_urlrequired - Image-to-Video (I2V): Use
wan2.2-i2v-flash,wan2.2-i2v-plus, orwan2.5-i2v-preview,img_urlrequired
Authorizations
AuthorizationstringRequired
Authenticate using Bearer Token.
Get API Key: Visit ViralAPI Console
Body
modelstring · enumRequiredPossible values:
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)
task_typestring · enumRequiredPossible values:
Task type, must be set to video
Responses
200
Task created successfully
application/json
400
Invalid request parameters
application/json
401
Authentication failed
application/json
402
Insufficient account balance
application/json
500
Internal server error
application/json
post
/v1/task/createUsage Examples
Basic Text-to-Video
With Negative Prompt
Important Notes
Last updated