Skip to main content

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 using media.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 via media.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 using media.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 via media.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 using media.source_video. Optionally pass media.reference_images to guide the edit with a visual reference.

Parameters

Media Object

The media object is the unified way to pass images, videos, and audio into video generation requests.

Media Compatibility by Model

Not all media fields are supported on every model. Unsupported fields are rejected.

Prompting Tips

Wan 2.7 supports both Chinese and English prompts. Detailed, descriptive prompts produce the best results — include subject, action, style, camera movement, and atmosphere.
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:
Control aspect ratio and resolution: Use resolution and ratio to set output dimensions:

Next Steps