Generate AI videos using Wan 2.2 with text-to-video and image-to-video capabilities. Produces silent video only at 480p or 1080p resolution.
Model
Parameters
| Parameter | Type | Required | Description |
|---|
prompt | string | Yes | Text description of the video |
mode | string | No | t2v or i2v (default: t2v) |
start_image_url | string | No | First-frame image URL (required for i2v) |
negative_prompt | string | No | What to avoid in the video |
resolution | string | No | 480p or 1080p (default: 480p) |
duration | integer | No | Fixed at 5 seconds |
prompt_extend | boolean | No | Intelligent prompt rewriting (default: true) |
watermark | boolean | No | Add watermark (default: false) |
seed | integer | No | Seed for reproducibility |
Wan 2.2 produces silent video only. audio, audio_url, video_urls, and multi_prompt are not supported.
Example - Text-to-Video
curl -X POST https://api.unifically.com/v1/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "alibaba/wan-2.2",
"input": {
"prompt": "A street musician plays guitar in a vintage subway station",
"mode": "t2v",
"resolution": "1080p"
}
}'
Example - Image-to-Video
curl -X POST https://api.unifically.com/v1/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "alibaba/wan-2.2",
"input": {
"prompt": "Gentle waves lapping against the shore",
"mode": "i2v",
"start_image_url": "https://example.com/beach.jpg",
"resolution": "480p"
}
}'
Response
{
"code": 200,
"success": true,
"data": {
"task_id": "abc123def456",
"status": "pending"
}
}