Wan 3.0 API
Complete API reference for Wan 3.0 video generation models by Alibaba.
Model Variants
This API supports four model variants:
Quick Comparison
Shared Endpoint
All Wan 3.0 variants use the video task endpoint:
POST /api/v1/video/task
Shared Parameters
Required
Optional
Wan 3.0 Text to Video
Set model_name to "wan-3.0-text-to-video" and provide the shared required parameters.
Example Request
javascript
Wan 3.0 Image to Video
Required Image Inputs
Both images must use JPEG, JPG, PNG without an alpha channel, BMP, or WEBP. Each image side must be from 240 to 8000 pixels.
Example Request
javascript
Wan 3.0 Video Edit
Required Video Input
The source video duration plus the requested output duration must not exceed 30 seconds.
Example Request
javascript
Wan 3.0 Reference to Video
Reference inputs are optional and may be combined, except files and links, which cannot be submitted together.
Optional Reference Inputs
Example Request
javascript
To use a reference file instead of a webpage, omit links and pass a single URL in files.
Response Format
Initial Response
All models return a task_id for polling:
json
Polling Response
Poll GET /api/v1/video/{taskId} to check status:
json
Status Values
submitted: Task accepted and waiting to be processedprocessing: Video generation in progresssucceed: Video generation completedfailed: Video generation failed
Best Practices
- Prompt Direction: Describe subjects, actions, camera movement, pacing, environment, and sound intent clearly.
- Image Inputs: Use start, end, and reference images that match the requested aspect ratio. PNG images must not contain an alpha channel.
- Video Edit Timing: Check the source duration before choosing the requested output duration so their total remains within 30 seconds.
- Reference Limits: Validate the count, format, dimensions, and combined duration of every reference collection before submission.
- Files and Links: Submit either one reference file or one public webpage link, never both in the same request.