Wan 2.7
Wan 2.7 is a family of video generation models supporting text-to-video, image-to-video with keyframe control, reference-based character/object consistency, and video editing. All models output 720P or 1080P video at 30fps in MP4 format.| Model | API String | Best For | Duration |
|---|---|---|---|
| Wan 2.7 T2V | Wan-AI/wan2.7-t2v | Text-to-video with audio | Up to 15s |
| Wan 2.7 I2V | Wan-AI/wan2.7-i2v | Image-to-video, keyframe control, video continuation | Up to 15s |
| Wan 2.7 R2V | Wan-AI/wan2.7-r2v | Character/object consistency from reference images or videos | Up to 10s |
| Wan 2.7 Video Edit | Wan-AI/wan2.7-videoedit | Instruction-based editing, style transfer | Up to 10s |
Text-to-Video
Generate a video from a text prompt. Video generation is asynchronous — you create a job, receive a job ID, and poll for the result.Text-to-Video with Audio
Drive video generation with an audio file usingmedia.audio_inputs. The model synchronizes the generated video to the audio — useful for lip sync, beat-matched motion, or narration-driven scenes. If no audio is provided, the model automatically generates matching background music or sound effects.
Audio constraints: WAV or MP3 format, 3-30 seconds, up to 15 MB. If the audio is longer than the video duration, it will be truncated. If shorter, the remaining portion of the video will be silent.
Image-to-Video
Animate a still image by using it as the first frame. Pass images viamedia.frame_images with frame set to "first" or "last".
First and Last Frame Control
Provide both a starting and ending frame to control the video’s transition. The model generates smooth motion between the two keyframes.Video Continuation
Continue from an existing video clip usingmedia.frame_videos. The model generates new content that seamlessly extends the input video.
Reference-to-Video
Generate video featuring a specific person or object by providing reference images or videos viamedia.reference_images or media.reference_videos. The model maintains the character’s appearance throughout the generated video. Multiple references can be passed for multi-character scenes.
Video Editing
Edit an existing video with text instructions usingmedia.source_video. Optionally pass media.reference_images to guide the edit with a visual reference.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
prompt | string | Text description of the video to generate (up to 5,000 characters) | Required |
model | string | Model identifier (see model table above) | Required |
resolution | string | Video resolution tier (720P, 1080P) | "1080P" |
ratio | string | Aspect ratio (16:9, 9:16, 1:1, 4:3, 3:4) | "16:9" |
seconds | string | Video duration in seconds. T2V and I2V: 2-15. R2V and Video Edit: 2-10. | "5" |
seed | integer | Random seed for reproducibility (0-2,147,483,647) | Random |
negative_prompt | string | Elements to exclude from generation (up to 500 characters) | - |
media | object | Media inputs for the request (see schema and compatibility below) | - |
Media Object
Themedia object is the unified way to pass images, videos, and audio into video generation requests.
| Field | Type | Description |
|---|---|---|
frame_images | array | Keyframe images for I2V. Each item: {input_image, frame} where frame is "first" or "last". |
frame_videos | array | Input video clips for video continuation (I2V). Each item: {video: "url"}. |
reference_images | array | Reference images for character/object consistency (R2V) or visual guidance (Video Edit). |
reference_videos | array | Reference videos for character/object consistency (R2V). Each item: {video: "url"}. |
source_video | string | Source video URL to edit (Video Edit). |
audio_inputs | array | Audio file URLs to drive generation — lip sync, beat-matched motion, etc. (T2V, I2V). Each item: "url". WAV or MP3, 3-30s, up to 15 MB. |
Media Compatibility by Model
Not allmedia fields are supported on every model. Unsupported fields are rejected.
media field | T2V | I2V | R2V | Video Edit |
|---|---|---|---|---|
frame_images | - | First and/or last frame | - | - |
frame_videos | - | Single video clip | - | - |
reference_images | - | - | Multiple | Single |
reference_videos | - | - | Multiple | - |
source_video | - | - | - | Single (required) |
audio_inputs | Single | Single | - | - |
Prompting Tips
Write descriptive prompts: Instead of “a cat walking,” try “A small black cat walks gracefully through a sunlit garden, soft bokeh background, gentle breeze rustling the flowers, cinematic slow motion.” Use negative prompts to avoid common artifacts:resolution and ratio to set output dimensions:
| Aspect Ratio | 720P Dimensions | 1080P Dimensions |
|---|---|---|
| 16:9 | 1280x720 | 1920x1080 |
| 9:16 | 720x1280 | 1080x1920 |
| 1:1 | 960x960 | 1440x1440 |
| 4:3 | 1104x832 | 1648x1248 |
| 3:4 | 832x1104 | 1248x1648 |
Next Steps
- Video Generation Overview — Full parameter reference and supported models
- API Reference: Create Video — REST API details
- API Reference: Get Video Status — Polling and status codes