Seedance 2.0 15% OFF | Create in Video Generator →
Home/Explore/Alibaba/Wan 2.7/Reference To Video

Wan 2.7 Reference to Video

alibaba /

WAN 2.7 Reference-to-Video turns character, prop, or scene references from images or videos into new video shots with preserved identity, style, and layout plus smooth, coherent motion. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-video
Input

Drag & drop or click to upload

Drag & drop or click to upload

Drag & drop or click to upload

If set to true, the prompt optimizer will be enabled.

Idle

$0.5per run·~20 / $10

Next:

ExamplesView all

The characters in Video 1 and Video 2 are sitting in front of the TV and playing video games together.

Related Models

README

Wan 2.7 Reference-to-Video

Wan 2.7 Reference-to-Video generates new video scenes guided by reference videos and an optional reference image, maintaining consistent characters, styles, and visual identity. Upload one or more reference videos, describe the scene you want, and the model produces a coherent, character-consistent video that brings your references into a new context.

Why Choose This?

  • Multi-video reference support Upload multiple reference videos to combine characters or visual elements from different sources into a single new scene.

  • Character-consistent generation The model preserves the identity, appearance, and style of characters from your reference videos throughout the generated clip.

  • Optional reference image Provide an additional still image to further guide the visual composition or introduce a new element.

  • Negative prompt support Specify what you don't want in the output for more precise scene control.

  • Prompt expansion Enable enable_prompt_expansion to let the model automatically enrich and optimize your prompt before generation.

  • Resolution options Generate at 720p or 1080p to match your delivery requirements.

Parameters

ParameterRequiredDescription
reference_imagesNoReference image URLs (max 5). Combined with videos, total must be 1-5.
videosYesOne or more reference videos. Click Add Item to include additional videos.
promptYesText description of the desired scene and action. Reference characters as "Video 1", "Video 2" etc.
imageNoOptional reference image to supplement the video references.
negative_promptNoElements to exclude from the generated video.
resolutionNoOutput resolution: 720p (default) or 1080p.
aspect_ratioNoOutput aspect ratio. Default: 16:9.
durationNoClip length in seconds. Default: 5.
enable_prompt_expansionNoEnable automatic prompt optimization before generation. Default: off.
seedNoRandom seed for reproducible results. Use -1 for a random seed.

How to Use

  1. Upload your reference videos — provide one or more source videos via URL or drag-and-drop. Click Add Item to add more.
  2. Write your prompt — describe the new scene, referencing characters by position (e.g., "The characters in Video 1 and Video 2 are sitting in front of the TV and playing video games together.").
  3. Upload reference image (optional) — provide a still image to supplement the visual references.
  4. Add negative prompt (optional) — specify elements you want to exclude from the output.
  5. Select resolution — 720p for standard output, 1080p for higher-quality results.
  6. Select aspect ratio — choose the format that fits your target platform.
  7. Set duration — choose your desired clip length in seconds.
  8. Enable prompt expansion (optional) — let the model automatically enrich your prompt before generation.
  9. Set seed (optional) — fix the seed to reproduce a specific result in future runs.
  10. Submit — generate, preview, and download your video.

Prompt Indexing Rule

In the prompt, videos are numbered first (video 1, video 2, ...), then reference_images continue the numbering as image N. For example, if you provide 2 videos and 2 reference images:

  • video 1 = first video
  • video 2 = second video
  • image 3 = first reference image
  • image 4 = second reference image

Example prompt: "video 2 holds image 3 and plays a gentle folk song in a cafe, video 1 smiles while watching video 2"

Pricing

Duration720p1080p
5s$1.00$1.60
10s$1.50$2.40
15s$2.00$3.20

Billing Rules

  • 720p: base rate + fixed reference processing cost
  • 1080p: 1.6× the 720p cost
  • Pricing includes a fixed overhead for reference video processing in addition to the selected duration

Best Use Cases

  • Character-Driven Storytelling — Place characters from multiple reference videos into entirely new scenarios.
  • Fan Content & IP Crossovers — Combine characters from different sources into a single coherent scene.
  • Marketing & Brand Video — Generate new scenes featuring consistent brand characters or spokespeople from reference footage.
  • Creative Concepting — Rapidly prototype multi-character scenes for pitching and storyboarding.
  • Social Media Content — Create novel, character-consistent short-form video from existing footage.

Pro Tips

  • Use "Video 1", "Video 2" etc. in your prompt to refer to specific reference videos in order.
  • The more distinct and clear each reference video is, the better the character consistency in the output.
  • Use negative_prompt to prevent unintended blending of visual styles between reference videos.
  • Enable prompt expansion for shorter or less detailed prompts to get richer output automatically.
  • Start with 720p to test your scene composition before committing to a 1080p final render.

Notes

  • Both videos and prompt are required fields; all other parameters are optional.
  • Ensure video and image URLs are publicly accessible if using links rather than direct uploads.
  • Please ensure your content complies with usage policies.

Related Models

Accessibility:This website uses AI models provided by third parties.

Wan 2.7 Reference To Video API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/alibaba/wan-2.7/reference-to-video with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Wan 2.7 Reference To Video below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/alibaba/wan-2.7/reference-to-video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "image": "https://example.com/your-input.jpg",
    "negative_prompt": "blurry, low quality, distorted",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 5,
    "enable_prompt_expansion": false,
    "seed": -1
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("alibaba/wan-2.7/reference-to-video", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "image": "https://example.com/your-input.jpg",
        "negative_prompt": "blurry, low quality, distorted",
        "resolution": "720p",
        "aspect_ratio": "16:9",
        "duration": 5,
        "enable_prompt_expansion": false,
        "seed": -1
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "alibaba/wan-2.7/reference-to-video",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "image": "https://example.com/your-input.jpg",
    "negative_prompt": "blurry, low quality, distorted",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 5,
    "enable_prompt_expansion": false,
    "seed": -1
}
)

print(output["outputs"][0])  # → URL of the generated output

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 a Alibaba model for video generation from images, exposed as a REST API on WaveSpeedAI. WAN 2.7 Reference-to-Video turns character, prop, or scene references from images or videos into new video shots with preserved identity, style, and layout plus smooth, coherent motion. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Wan 2.7 Reference To Video API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/alibaba/alibaba-wan-2.7-reference-to-video.

How much does Wan 2.7 Reference To Video cost per run?

Wan 2.7 Reference To Video starts at $0.50 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Wan 2.7 Reference To Video accept?

Key inputs: `prompt`, `image`, `aspect_ratio`, `resolution`, `duration`, `seed`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/alibaba/alibaba-wan-2.7-reference-to-video.

How do I get started with the Wan 2.7 Reference To Video API?

Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.

Can I use Wan 2.7 Reference To Video outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Alibaba). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.