Wan 2.7 Reference to Video API

alibaba/wan-2.7/reference-to-video

Wan 2.7 Reference to Video transforms up to 9 reference images or reference videos into 2–10 second cinematic clips, supporting 9-grid storyboards, multi-shot pacing, and prompt-guided camera direction. It maintains consistent character identity and environmental style across complex narrative transitions without visual drift.

Input
531/5,000
Reference Image Urls

Drag and drop files, paste from clipboard, or provide a URL.

2/9 files added

Reference Video Urls

Drag and drop files, paste from clipboard, or provide a URL.

Output
Ready
720p · 5 s × 12 credits/s = 60 credits ($0.300)
Continue using

Examples

Use Reference Image 1 for the same explorer, face, helmet and ochre clothing. Use Reference Image 2 for the same brass lantern. Two shots in a limestone cave: first three seconds, a medium-wide shot of her holding the lantern and taking one careful step; last two seconds, cut to a waist-up view as she raises the lantern to illuminate mineral textures. Preserve her identity, outfit and lantern across the cut. Restrained natural movement. No text, lettering, captions, logos, watermarks, brands, advertising or product packaging.

Use the reference video for the dancer identity, rust skirt, cream blouse and graceful turning movement. Show the same dancer making one gentle quarter turn on a stone terrace overlooking calm blue hills at dawn. Full-body fixed camera view, both feet remain grounded, preserve clothing and natural anatomy. Continuous shot. No text, lettering, captions, logos, watermarks, brands, advertising or product packaging.

Use Reference Image 1 for the exact small green clay dragon with cream horns and amber eyes. Use Reference Image 2 for the miniature greenhouse setting. The dragon sits on the terracotta floor, then slowly lifts its head to inspect a broad leaf overhead. Preserve handmade clay texture and proportions. A gentle camera push, tactile stop-motion aesthetic, single shot. No text, lettering, captions, logos, watermarks, brands, advertising or product packaging.

Wan 2.7 Reference to Video

Wan 2.7 Reference to Video is designed for complex narrative filmmaking and visual continuity tasks. By ingesting up to 9 reference images (including 9-grid storyboard frames) or reference videos alongside descriptive text prompts, the model locks character faces, costumes, and props across multiple scene changes. It supports 2 to 10-second durations, 5 native aspect ratios, and multi-shot generation to power seamless storytelling.

Why Choose Wan 2.7 Reference to Video?

  • Ingest up to 9 reference imagesProvide multiple angles, lighting setups, or character poses to guide consistent subject rendering across new scenes.

  • Support 9-grid storyboard workflowsTranslate panel sequences and visual boards into animated cinematic shots with coherent narrative pacing.

  • Maintain cross-scene character identityAdvanced feature matching prevents identity drift across multi-angle camera shots, costume variations, and action sequences.

  • Accept reference video assetsPass reference video clips in reference_video_urls to establish realistic motion rhythms and scene dynamics directly.

  • Switch across five native aspect ratiosDeliver clips in 16:9, 9:16, 1:1, 4:3, or 3:4 formats tailored for theatrical pre-visualization or social feeds.

Parameters

ParameterRequirementDescription
promptYes

Prompt, trimmed; maximum 5,000 Unicode characters. Optional for image-to-video.

Default—
reference_image_urlsNo

Up to nine ordered reference images; HTTP(S), Data URI or Base64. Provide reference images or videos.

Default—
reference_video_urlsNo

Public HTTP(S) reference video URLs. Provide reference images or videos.

Default—
aspect_ratioNo

16:9, 9:16, 1:1, 4:3 or 3:4. Default: 16:9.

Default16:9
resolutionNo

720p or 1080p. Default: 720p.

Default720p
durationNo

2–10 whole seconds; default 5.

Default5
multi_shotsNo

Optional multi-shot control. Omitted by default.

Default—
seedNo

Optional integer from 0 to 2147483647.

Default—
enable_safety_checkerNo

Optional safety checker setting; omitted by default.

Default—

How to Use Wan 2.7 Reference to Video

  1. Assemble your reference assetsPrepare up to 9 reference images (characters, environments, or 9-grid frames) or reference videos as public URLs.

  2. Write prompt with narrative referencesOutline the scene action, camera movements, and subject interactions, linking descriptive elements to your references.

  3. Configure duration and submitSelect duration (2–10 seconds), resolution, and aspect ratio, then execute the task via API or Playground to fetch the final MP4.

Pricing

Credits = output seconds × resolution rate. Failed tasks are refunded automatically.

UsageRateDetails
720p12 credits/s ($0.06/s)All four workflows use the same rate.
1080p18 credits/s ($0.09/s)All four workflows use the same rate.

Best Use Cases

  • 9-grid storyboard sequence animationAnimate full 9-panel comic strips and narrative storyboard drawings into flowing cinematic video sequences.

  • Multi-character drama continuityMaintain facial identities and distinct costumes across complex multi-actor dialogue and confrontation scenes.

  • Product commercial stylingProvide reference photos of real-world merchandise to place products into dynamic live-action marketing clips.

  • Reference video style & motion transferSupply choreography or camera movement references via video URLs to inspire new animated sequences.

Pro Tips for Wan 2.7 Reference to Video

  • Upload multi-angle shots of the main character:Supplying front, three-quarter, and profile reference images establishes comprehensive spatial memory for 360-degree camera turns.
  • Organize 9-grid storyboards chronologically:When feeding a 9-grid storyboard, describe the narrative sequence from opening beat to climax in the prompt to match visual flow.
  • Combine multi_shots with distinct scene directions:Enable multi_shots: true when scripting dialogue or shot-reverse-shot setups to let the model generate natural camera cuts.
  • Keep reference lighting consistent:While the model adapts characters to new environments, providing references with uniform lighting enhances edge cleanliness.

Notes

  • Reference asset requirements:Provide at least one reference input via reference_image_urls (up to 9 images) or reference_video_urls.
  • Duration range:Reference to Video supports whole second durations from 2 to 10 seconds. Values outside this range will fail validation.
  • Automatic credit refund:If a task fails during generation or media processing, all deducted credits are refunded immediately to your account.

Wan 2.7 Reference to Video API frequently asked questions

What is the Wan 2.7 Reference to Video API?

Wan 2.7 Reference to Video is an Alibaba Tongyi Lab model for reference-driven video creation. It generates 2 to 10-second high-definition videos at 720p or 1080p by incorporating up to 9 reference images or reference videos with text prompts, supporting 9-grid storyboards, multi-shot pacing, and character consistency. Powered by a Diffusion Transformer backbone and Wan-VAE 3D temporal compression, it locks subject identity and environmental style across dynamic camera transitions without visual drift. You can call it programmatically or try it from the playground above.

How many reference images can Wan 2.7 Reference to Video accept?

Wan 2.7 Reference to Video accepts up to 9 reference images via the reference_image_urls array. You can submit images showcasing characters from multiple perspectives, specific props, or sequential storyboard panels.

How does Wan 2.7 Reference to Video use 9-grid storyboards?

You can provide a 9-grid storyboard image as reference. The model extracts individual panel arrangements and narrative progressions, transforming static panel layouts into dynamic, continuous video takes guided by your text prompt.

Can Wan 2.7 Reference to Video take reference videos as input?

Yes, the reference_video_urls parameter accepts public video URLs. The model analyzes motion rhythms, camera gestures, and stylistic transitions from the reference videos to inform the generated animation.

What is the maximum duration for Wan 2.7 Reference to Video?

Wan 2.7 Reference to Video supports whole second durations from 2 seconds up to 10 seconds. The default duration is 5 seconds, allowing creators to balance multi-character staging with generation speed.

How does Wan 2.7 Reference to Video bind characters in the prompt?

You can reference specific attributes or ordinal indices in your prompt corresponding to the uploaded reference images. The attention layers correlate prompt descriptors directly with the visual embeddings of the respective reference inputs.

How does multi_shots work in Wan 2.7 Reference to Video?

Setting multi_shots to true enables multi-shot storytelling within a single generation. It instructs the model to create cinematic transitions or angle variations across the timeline while keeping the referenced subjects consistent.