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.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
Media Object
Themedia object is the unified way to pass images, videos, and audio into video generation requests.
Media Compatibility by Model
Not allmedia fields are supported on every model. Unsupported fields are rejected.
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:
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