Diperbarui
What is the Wan 2.7 API?
The Wan 2.7 API is live on UnificAlly as alibaba/wan-2.7-video, from $0.09 per second of video. Wan 2.7 is Alibaba's March 2026 upgrade to the Wan video line. Three modes share one model ID. Text-to-video accepts a prompt and an optional audio_url for driving timing, with multi-shot controllable through natural language and timestamps in the prompt. Image-to-video covers first-frame, first-and-last-frame, video continuation (extending an existing video), and lip-synced motion when an audio track is supplied. Reference-to-video accepts up to 5 reference images and up to 5 reference videos with "Image 1" and "Video 1" identifiers in the prompt. Output runs at 720P or 1080P in 2 to 15 second videos, with negative prompts, prompt extend, watermark, and seed available across all three modes.
Wan 2.7 API specs
| Model ID | alibaba/wan-2.7-video |
| Endpoint | POST https://api.unifically.com/v1/tasks |
| Request types | Text-to-video (t2v), image-to-video (i2v), reference-to-video (r2v) |
| Duration | 2 to 15 seconds, default 5 |
| Resolution | 720P or 1080P, default 1080P |
| Aspect ratio | 16:9, 9:16, 1:1, 4:3, 3:4 in text-to-video and reference-to-video |
| Frame inputs | First frame, first and last frame, or a 2 to 10 second video to continue |
| Audio input | WAV or MP3, 2 to 30 seconds, as a driving track in text-to-video and image-to-video |
| References | Reference images and reference videos in r2v, plus an optional voice reference |
| Rate at 720p | $0.09/sec |
| Rate at 1080p | $0.135/sec |
Billing is per second of output, with no subscription. Each second of reference video you add is billed at the same per-second rate. The pricing page shows the live rate table.
How to use the Wan 2.7 API
- Create an API key on the API keys page.
- Send a POST request to
/v1/taskswith the model ID and aninputobject that sets themode. - Read the
task_idfrom the response, then check the task until it is finished, or pass a callback URL and wait for the result.
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.7-video",
"input": {
"mode": "t2v",
"prompt": "A kitten running in the moonlight",
"resolution": "720P",
"ratio": "16:9"
}
}'
The response returns the task ID straight away:
{
"code": 200,
"success": true,
"data": {
"task_id": "abc123def456",
"status": "processing"
}
}
The finished task carries the video URL.
curl https://api.unifically.com/v1/tasks/{task_id} \
-H "Authorization: Bearer YOUR_API_KEY"
Wan 2.7 API parameters
These parameters are shared by the three modes.
| Parameter | Type | Default | What it does |
|---|---|---|---|
mode | string | "t2v" | "t2v", "i2v", or "r2v" |
prompt | string | "" | Text prompt, up to 5000 characters. Required for text-to-video and reference-to-video |
negative_prompt | string | "" | What to avoid, up to 500 characters |
resolution | string | "1080P" | "720P" or "1080P" |
duration | integer | 5 | Output duration in seconds, 2 to 15 |
prompt_extend | boolean | true | LLM-based prompt rewriting. Improves short prompts but adds latency |
watermark | boolean | false | Adds an "AI Generated" watermark in the lower-right corner |
seed | integer | null | Random seed, 0 to 2147483647 |
Each mode adds its own inputs.
| Parameter | Type | Default | What it does |
|---|---|---|---|
ratio | string | "16:9" | t2v and r2v. "16:9", "9:16", "1:1", "4:3", or "3:4". Ignored in r2v when first_frame_url is set |
audio_url | string | null | t2v and i2v. WAV or MP3, 2 to 30 seconds, max 15MB. Drives lip-sync and action timing in i2v |
first_frame_url | string | null | i2v: first frame image (JPEG, JPG, PNG, BMP, WEBP, max 20MB). r2v: optional first frame for scene control |
last_frame_url | string | null | i2v. Last frame image. Requires first_frame_url |
video_url | string | null | i2v. Video to continue (MP4 or MOV, 2 to 10 seconds, max 100MB). Cannot be combined with the frame inputs |
reference_image_urls | string[] | null | r2v. Reference images, one subject each, max 20MB each |
reference_video_urls | string[] | null | r2v. Reference videos, one subject each (MP4 or MOV, 1 to 30 seconds, max 100MB each) |
reference_voice_url | string | null | r2v. Audio for voice timbre (WAV or MP3, 1 to 10 seconds, max 15MB) |
nsfw_check | boolean | false | Checks the prompt and input images for NSFW content before generating |
The Wan 2.7 API documentation has the full reference, with input limits and more examples for each mode.
Image-to-video request
Send a first frame, and optionally a last frame, with mode set to i2v.
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.7-video",
"input": {
"mode": "i2v",
"prompt": "A small black cat looks up at the sky curiously",
"first_frame_url": "https://example.com/first.png",
"last_frame_url": "https://example.com/last.png",
"duration": 10,
"prompt_extend": false
}
}'
Reference-to-video request
The Wan 2.7 API numbers images and videos separately, in array order. Name them in the prompt as "Image 1" or "Video 1".
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.7-video",
"input": {
"mode": "r2v",
"prompt": "The reference image character walks through a sunlit garden",
"reference_image_urls": ["https://example.com/person.png"],
"resolution": "1080P",
"ratio": "16:9",
"duration": 5
}
}'
Key features of Wan 2.7
Five features cover the surface area you'll actually use day to day.
First-and-last-frame in image-to-video
Supply a start frame and an optional end frame. The model interpolates the camera move between them while keeping aspect ratio from the input. Useful for storyboard-driven animation.
Video continuation
Pass a 2–10 second source video via video_url. The model generates new content up to the requested duration. Useful for stretching a hero video past the per-call cap without restarting the look.
Lip-sync via driving audio
In image-to-video, pass an audio_url (wav/mp3, 2–30 seconds). The model times mouth movements and motion to the audio. No separate lip-sync pipeline needed.
Reference-to-video up to 5 inputs each
Mix up to 5 reference images and up to 5 reference videos. Reference each one in the prompt with "Image 1" or "Video 1". Useful for ads with multiple recurring characters or props.
Multi-shot from natural language
Control shot structure in the prompt itself, with timestamped beats like "Shot 1 [0-3s] wide shot…" The model interprets and chains shots without a separate multi_prompt array.
What Wan 2.7 is best for
Last-frame interpolation
Supply start and end frames in image-to-video and the model lands on the target.
Video continuation
Stretch a finished video past the per-call cap by feeding it back in as
video_url.Lip-synced character videos
Pass an audio track in image-to-video for mouth movements timed to the recording.
Multi-character reference-to-video
Up to 5 reference images and up to 5 reference videos for scenes with recurring characters and props.
Multi-shot narratives
Control shot boundaries with timestamps in the prompt, no separate multi-shot field.
Brand-restyled video
Pair text-to-video or image-to-video with prompt extend and seeds for repeatable brand-aligned output.
Wan 2.7 limitations
last_frame_url requires first_frame_url. Video continuation (video_url) is mutually exclusive with the frame inputs. Audio inputs are capped at 30 seconds and 15MB. Reference videos are capped at 30 seconds and 100MB. Reference-to-video does not accept a seed. Aspect ratio in reference-to-video is ignored when first_frame_url is set.
FAQ
Pertanyaan yang sering diajukan tentang Wan 2.7
Wan 2.7 is Alibaba's March 2026 upgrade to the Wan video line. It exposes three modes (text-to-video, image-to-video, reference-to-video) with new features including first-and-last-frame interpolation, video continuation, lip-sync from a driving audio track, and reference-to-video with up to 5 reference images and up to 5 reference videos.
Wan 2.7 uses one model ID, alibaba/wan-2.7-video, for all three modes, so a key from the API keys page in the Authorization: Bearer header covers text, image and reference requests. Output is billed per second, and each second of reference video is billed at the same rate.
Set mode to t2v, i2v or r2v and add that mode's inputs: a prompt and optional audio_url for text-to-video, first_frame_url, last_frame_url or a video_url to continue for image-to-video, and reference_image_urls or reference_video_urls for reference-to-video. resolution takes 720P or 1080P and duration 2 to 15 seconds; the finished Wan 2.7 API task carries the video URL.
Wan 2.7 adds last-frame control in image-to-video, video continuation that extends an existing video, lip-sync via a driving audio_url in image-to-video, and a unified reference-to-video mode with up to 5 reference images and up to 5 reference videos, using "Image 1" / "Video 1" identifiers in the prompt. Multi-shot can be controlled by natural language with timestamps in the prompt.
Three. text-to-video (t2v) with optional audio, image-to-video (i2v) with first-frame, last-frame, video continuation, and lip-sync, and reference-to-video (r2v) with up to 5 reference images and up to 5 reference videos, using "Image 1" / "Video 1" identifiers in the prompt.
In image-to-video mode, pass a video_url instead of a first frame. The model extends the input video up to the requested duration. If your input is 3 seconds and you ask for 15, the model generates 12 new seconds and the final output is 15.
Pass an audio_url (wav or mp3, 2–30 seconds, max 15MB) in image-to-video mode. The model times mouth movements and motion to the audio.
16:9, 9:16, 1:1, 4:3, and 3:4. The default is 16:9.
Yes. Wan 2.7 Video Edit is a separate model (alibaba/wan-2.7-video-edit) for editing or style-transferring an existing video with optional reference images.
Model yang mirip dengan Wan 2.7
Jelajahi semua model
API Wan 2.7 Video Edit
Edit 2–10s videos with up to 4 reference images at 720P or 1080P, plus audio passthrough.
- Edit Video

API Wan 2.7 Image
T2I or editing up to 2K, thinking mode for better quality, up to 9 reference images.
- Teks ke Gambar
- Gambar ke Gambar

API Wan 2.6
T2V, I2V, or R2V up to 5 references, 720p or 1080p, 2–15s, with auto audio and multi-shot.
- Teks ke Video
- Gambar ke Video
- Referensi ke Video

API Wan 3.0
2–30s videos with audio, T2V/I2V/R2V, document and webpage inputs, up to 20 references, 480P–1080P.
- Teks ke Video
- Gambar ke Video
- Referensi ke Video