Wan 2.7 Video
Alibaba video model supporting four workflows: text-to-video, frame animation, existing video editing, and reference composition.
| Property | Value |
|---|---|
modelSlug | wan-2-7-video |
| Kind | Video |
| Maker | Alibaba |
Copies per request (variations) | 1 to 5 |
| How the cost is counted | per second of output (from duration), at a rate that depends on mode and resolution; plus the length of the clips in reference_videos when filled |
| Over MCP | yes, with the generate tool |
Credit amounts are left out because they change. The lowest price is creditCost on GET /v1/models, and POST /v1/jobs answers with the exact creditCost of a request.
input fields
Send the fields below inside the input object. A field you leave out takes its Default. Unknown field names are dropped without an error, so check the spelling if a setting seems to have no effect.
| Field | Type | Required | Default | Rules |
|---|---|---|---|---|
prompt | string | – | – | Up to 5,000 characters |
mode | string (one of) | – | text | text, frames, edit, reference |
frames | string[] (image upload ids) | – | – | Start and end frames. Up to 2 files |
edit_video | string[] (video upload ids) | – | – | Video to edit. One file at most |
reference_images | string[] (image upload ids) | – | – | Reference images. Up to 5 files |
reference_videos | string[] (video upload ids) | – | – | Reference videos. Up to 5 files |
reference_audios | string[] (audio upload ids) | – | – | Reference voice. One file at most |
aspect_ratio | string (one of) | – | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 |
resolution | string (one of) | – | 720p | 720p, 1080p |
duration | integer | – | 5 | 2 to 15 |
audio_setting | string (one of) | – | auto | auto (Otomatis), origin (Suara asli) |
Rules by setting
This model runs a different version depending on what you send. The rules below are checked before any credits move; a request that breaks one is refused with 400 and a message naming the field.
mode = text
audio_settingis not used; any value sent is ignored.- Takes no files in
frames,edit_video,reference_images,reference_videosandreference_audios; a request that fills one is refused. promptat least 1 characters.
mode = frames
aspect_ratioandaudio_settingare not used; any value sent is ignored.- Takes no files in
edit_video,reference_images,reference_videosandreference_audios; a request that fills one is refused. frames: required; up to 2 files; in order: the first file is the start frame, the second the end frame.promptat least 1 characters.
mode = edit
aspect_ratiois not used; any value sent is ignored.- Takes no files in
frames,reference_videosandreference_audios; a request that fills one is refused. edit_video: required; one file; at most 100 MB per file; each clip 2 to 10 seconds long; sides 240 to 4,096 px; width to height ratio 0.125 to 8.reference_images: one file; sides 240 to 8,000 px; width to height ratio 0.125 to 8.durationat most 10.durationmay not be longer than the clip inedit_video.
mode = reference
audio_settingis not used; any value sent is ignored.- Takes no files in
framesandedit_video; a request that fills one is refused. reference_images: up to 5 files.reference_videos: up to 5 files.reference_audios: one file; at most 15 MB per file; each clip 1 to 10 seconds long.durationat most 10.promptat least 1 characters.- At least one of
reference_imagesorreference_videoshas to hold a file. - At most 5 files across
reference_imagesandreference_videos.
Example request
{
"modelSlug": "wan-2-7-video",
"input": {
"prompt": "The camera circles slowly around a steaming cup of coffee on a wooden table"
}
}Grok Imagine Video
xAI video model for 6 to 30-second clips from text or up to seven reference images, with output up to 1080p.
Wan 2.6 Video
Alibaba video model for 5 to 15-second clips from text, a single image, or the subject of reference videos, with a Standard tier that always has sound and a cheaper Flash tier.

