Model
alibaba/wan-2.6-video
Modes
Setmode explicitly to select generation type:
t2v(default) — text-to-videoi2v— image-to-video (requiresstart_image_url)r2v— reference-to-video (requiresvideo_urls)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text description of the video. For R2V, use character1, character2, etc. matching video_urls order |
mode | string | No | t2v, i2v, or r2v (default: t2v) |
start_image_url | string | No | First-frame image URL for I2V mode (JPEG, PNG, BMP, WEBP) |
video_urls | array | No | Reference image/video URLs for R2V mode. Up to 5 (max 3 videos). Each = one character |
audio_url | string | No | Custom audio URL for audio-video sync (wav/mp3, max 15MB, 3-30s) |
multi_prompt | array | No | Multi-shot segments [{prompt, duration}]. Auto-sets shot type and calculates total duration |
negative_prompt | string | No | What to avoid in the video (max 500 chars). Ignored for R2V |
resolution | string | No | 720p or 1080p (default: 720p) |
duration | integer | No | Video length in seconds, 2-15s (R2V: 2-10s). Overridden by multi_prompt if set (default: 5) |
prompt_extend | boolean | No | Intelligent prompt rewriting (default: true) |
watermark | boolean | No | Add watermark (default: false) |
audio | boolean | No | Auto-generate audio. Set false for silent video (default: true) |
seed | integer | No | Seed for reproducibility. Not supported for R2V |
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.6-video",
"input": {
"prompt": "A cinematic shot of a red fox walking through a misty forest at dawn",
"mode": "t2v",
"resolution": "720p",
"duration": 5
}
}'
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.6-video",
"input": {
"prompt": "The camera slowly pans up from below the sea turtle",
"mode": "i2v",
"start_image_url": "https://example.com/turtle.jpg",
"resolution": "720p",
"duration": 10
}
}'
Example - Reference-to-Video (Single Character)
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.6-video",
"input": {
"prompt": "character1 gives an enthusiastic product introduction to camera",
"mode": "r2v",
"video_urls": ["https://example.com/presenter.mp4"],
"duration": 5
}
}'
Example - Reference-to-Video (Multi-Character)
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.6-video",
"input": {
"prompt": "character1 says to character2: I will rely on you tomorrow! character2 replies: You can count on me!",
"mode": "r2v",
"video_urls": ["https://example.com/person-a.mp4", "https://example.com/person-b.mp4"],
"duration": 10
}
}'
Example - Multi-Shot
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.6-video",
"input": {
"prompt": "Cinematic detective story",
"multi_prompt": [
{"prompt": "Wide shot of rainy New York streets, neon lights", "duration": 5},
{"prompt": "Close-up of detective walking into an old building", "duration": 5}
],
"resolution": "1080p"
}
}'
Example - Image-to-Video with Custom Audio
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.6-video",
"input": {
"prompt": "A graffiti character raps energetically under a bridge",
"mode": "i2v",
"start_image_url": "https://example.com/graffiti.png",
"audio_url": "https://example.com/rap.mp3",
"duration": 10
}
}'
Example - Silent 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.6-video",
"input": {
"prompt": "A cat running on the grass",
"audio": false,
"duration": 5
}
}'
Response
{
"code": 200,
"success": true,
"data": {
"task_id": "abc123def456",
"status": "processing"
}
}
