Wan2.7
Wan2.7 is Alibaba's next-generation multimodal video model supporting text-to-video, image-to-video, reference-to-video, and video editing. It features multi-shot storytelling, subject-consistent multi-character generation, first-and-last-frame interpolation, video continuation, style transfer, instruction-based editing, and audio-conditioned generation with auto-dubbing. Output at 720p or 1080p, 30 FPS in multiple aspect ratios.
API Reference
INTEGRATE
Complete technical specification for integration
Request Response
Examples 5
CODE
Ready-to-use code snippets for common workflows
Frosted Railway Balloon Ascent
{
"taskType": "videoInference",
"taskUUID": "0d84f171-2e54-4c07-836e-05788795736d",
"model": "alibaba:wan@2.7",
"positivePrompt": "Using the reference image as the main visual anchor, animate a gentle departure scene: steam rolls across the platform, the balloon ropes tighten and flutter, the child in the cobalt coat steps forward and looks up, porters adjust luggage, the locomotive releases a soft burst of vapor, then the balloon lifts slowly into the air as the camera rises with it, revealing snowy pine ridges and a glowing dawn horizon. Preserve the character design, wardrobe, and overall composition from the reference. Realistic motion, cinematic depth, crisp cold atmosphere, delicate fabric movement, drifting snow powder, warm brass details against icy surroundings, elegant and emotional travel mood.",
"negativePrompt": "low detail, distorted anatomy, extra limbs, duplicate people, flicker, jitter, warped face, text, watermark, oversaturated, chaotic motion, blurry subject",
"width": 1280,
"height": 720,
"duration": 8,
"seed": 9669,
"settings": {
"audio": true
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/41851527-3df1-41c9-a39b-a0d358186d9f.jpg"
]
}
}{
"taskType": "videoInference",
"taskUUID": "0d84f171-2e54-4c07-836e-05788795736d",
"videoUUID": "9b2d1445-99ad-40ca-9adc-2dc6786df569",
"videoURL": "https://vm.runware.ai/video/os/a07d11/ws/5/vi/9b2d1445-99ad-40ca-9adc-2dc6786df569.mp4",
"seed": 9669,
"cost": 0.8034
}Volcanic Violinist Arrival Sequence
{
"taskType": "videoInference",
"taskUUID": "6365139d-4dd0-4170-8ed3-846c47078f07",
"model": "alibaba:wan@2.7",
"positivePrompt": "Create a smooth cinematic transition between the two keyed frames. Begin with a quiet wide shot of the lone violinist on the black-sand volcanic coast, sea mist curling around basalt rocks. The camera slowly advances as the character walks forward with calm determination, coat moving in the wind. Steam rises from fissures, ash drifts lightly, the sky warms from pale dawn to fiery evening. Midway, the terrain becomes more active with glowing cracks and airborne embers. End beside a vivid lava river as the same violinist opens into an expressive performance, with dynamic bow movement, heat shimmer, rich reflections, and a grand natural crescendo. Strong continuity of face, clothing, and instrument, realistic cinematic lighting, epic atmosphere.",
"negativePrompt": "extra people, duplicated limbs, distorted violin, flicker, abrupt cuts, low detail, text, watermark, logo, cartoon, oversaturated face",
"width": 1280,
"height": 720,
"duration": 8,
"seed": 92921,
"settings": {
"audio": true
},
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/929011ca-1575-4796-b356-6fd1e40978b0.jpg",
"frame": "first"
},
{
"image": "https://assets.runware.ai/assets/inputs/c8567fec-2baa-4eec-9060-50f0d6bb3a5d.jpg",
"frame": "last"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "6365139d-4dd0-4170-8ed3-846c47078f07",
"videoUUID": "2c911a80-d64c-4060-84c0-fa0a4dd8b549",
"videoURL": "https://vm.runware.ai/video/os/a16d07/ws/5/vi/2c911a80-d64c-4060-84c0-fa0a4dd8b549.mp4",
"seed": 92921,
"cost": 0.808
}Glacial Caravan on Mirrorplain
{
"taskType": "videoInference",
"taskUUID": "7d0bd235-600c-4d6b-92e9-4dad8671de30",
"model": "alibaba:wan@2.7",
"positivePrompt": "Using the reference image as the primary visual anchor, create a sweeping cinematic video of a caravan traversing an immense frozen mirrorplain at dawn. Keep the travelers, pack beasts, costume palette, and cargo design consistent with the reference. Begin with a low wide establishing view showing crisp reflections across the ice, then gently drift sideways as the lead beast exhales visible vapor and cloth streamers flutter in the wind. Subtle cracks of frost skate beneath hooves without danger, tiny snow grains slide across the surface, and far ice ridges shimmer in the early light. Transition into a closer pass alongside the caravan, revealing braided ropes, carved bone ornaments, and painted reed bundles swaying with motion. Finish with the group moving toward a bright horizon while the sky warms from pale peach to silver-gold, emphasizing scale, texture, realism, and calm wonder.",
"negativePrompt": "low detail, jittery motion, duplicated subjects, deformed anatomy, extra limbs, blurry faces, cartoon style, oversaturated colors, heavy fog obscuring subjects, chaotic camera moves, text, watermark",
"width": 1920,
"height": 1080,
"duration": 8,
"seed": 60086,
"settings": {
"audio": true
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/c6c6a1ad-2e2c-48e2-82d4-9b1842bd9f1e.jpg"
]
}
}{
"taskType": "videoInference",
"taskUUID": "7d0bd235-600c-4d6b-92e9-4dad8671de30",
"videoUUID": "0063a249-61c3-4505-a621-232fe210c3f5",
"videoURL": "https://vm.runware.ai/video/os/a23d05/ws/5/vi/0063a249-61c3-4505-a621-232fe210c3f5.mp4",
"seed": 60086,
"cost": 1.2051
}Wind-Carved Cliffside Glass Conservatory
{
"taskType": "videoInference",
"taskUUID": "08a7bd31-232a-45a4-947f-cd12da384c13",
"model": "alibaba:wan@2.7",
"positivePrompt": "A vast glass conservatory built into a rugged seaside cliff at golden afternoon, filled with towering citrus trees, hanging orchids, brass irrigation pipes, and narrow stone walkways over koi pools. The video begins outside with waves striking dark rocks far below, then glides through broken archways into the warm greenhouse air where gardeners in slate-blue coats move carefully among giant leaves. Sunbeams refract through curved glass panels, casting shifting prismatic light across wet stone. A flock of white swifts circles through the upper rafters. Midway, the camera passes a child releasing a small mechanical glider that catches an updraft and sails through the central atrium. End on a wide view of the entire cliffside structure against the sea, with drifting mist, believable scale, natural motion, atmospheric depth, highly detailed textures, elegant cinematic realism.",
"negativePrompt": "low detail, blurry, distorted anatomy, extra limbs, jittery motion, flicker, text, watermark, logo, oversaturated colors, chaotic composition",
"width": 1920,
"height": 1080,
"duration": 8,
"seed": 55802,
"settings": {
"audio": true
}
}{
"taskType": "videoInference",
"taskUUID": "08a7bd31-232a-45a4-947f-cd12da384c13",
"videoUUID": "2eb904c2-9f91-43b4-a1f0-8442299b9bd7",
"videoURL": "https://vm.runware.ai/video/os/a21d05/ws/5/vi/2eb904c2-9f91-43b4-a1f0-8442299b9bd7.mp4",
"seed": 55802,
"cost": 1.2051
}Tidal Basilica of Kites
{
"taskType": "videoInference",
"taskUUID": "d05668ad-7e73-4e56-8810-e45e0f60e946",
"model": "alibaba:wan@2.7",
"positivePrompt": "Animate from the provided first frame into an epic coastal fantasy scene. The camera begins low near slick rocks and slowly rises forward toward the towering basilica while giant tethered kites strain and ripple overhead. Long fabric tails snap in powerful gusts, seabirds wheel across the frame, waves crash against the dark stone foundation and leave drifting mist, puddles shimmer with reflections, small robed figures climb the steps, and distant spray catches warm sunlight. Preserve the architecture and color design of the input image while adding natural motion, cinematic depth, and realistic environmental dynamics. Emphasize sweeping wind, moving clouds, foam, fluttering banners, and immersive ocean ambience.",
"negativePrompt": "text, watermark, logo, blurry subjects, low detail, warped architecture, extra limbs, duplicate people, broken kite strings, flicker, jitter, heavy distortion, oversaturation",
"width": 1280,
"height": 720,
"duration": 8,
"seed": 73685,
"settings": {
"audio": true
},
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/c6ef74fa-764a-4d61-9227-bcf60b041f93.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "d05668ad-7e73-4e56-8810-e45e0f60e946",
"videoUUID": "a136180f-118e-4528-bf66-9c8d7e5f1a89",
"videoURL": "https://vm.runware.ai/video/os/a08d21/ws/5/vi/a136180f-118e-4528-bf66-9c8d7e5f1a89.mp4",
"seed": 73685,
"cost": 0.8034
}