Skip to content
Dashboard

Wan v2.7 Reference-to-Video

Wan v2.7 Reference-to-Video is the Wan 2.7 reference-to-video model from Alibaba, generating new scenes from reference images and videos with combined subject and voice referencing at 720p or 1080p.

reference-to-video
index.ts
import { experimental_generateVideo as generateVideo } from 'ai';
const result = await generateVideo({
model: 'alibaba/wan-v2.7-r2v',
prompt: 'A serene mountain lake at sunrise.'
});

Frequently Asked Questions

  • What reference inputs does Wan v2.7 Reference-to-Video accept?

    Wan v2.7 Reference-to-Video accepts reference images, reference videos, or both together, plus an optional text prompt describing the scene to generate. Up to three reference videos can be attached to a single generation.

  • What durations and resolutions does Wan v2.7 Reference-to-Video support?

    Clips run 2 to 10 seconds, with a default of 5 seconds, at 720p or 1080p. Five aspect ratios are available: 16:9, 9:16, 1:1, 4:3, and 3:4.

  • How does Wan v2.7 Reference-to-Video differ from the previous Wan reference-to-video model?

    Wan v2.7 Reference-to-Video adds combined subject and voice referencing, so appearance and vocal identity bind together from your reference material. Motion is also smoother and more coherent than in the 2.6 generation.

  • Can Wan v2.7 Reference-to-Video keep a subject's voice consistent across generations?

    Yes. Combined subject and voice referencing carries a referenced subject's vocal identity into the generated output alongside their visual appearance, keeping both consistent in new scenes.

  • How do I use Wan v2.7 Reference-to-Video through AI Gateway?

    Call Wan v2.7 Reference-to-Video with generateVideo from the AI SDK, passing your reference images or videos and an optional prompt. You can also try prompts first in the playground on this page.

  • Does AI Gateway offer Zero Data Retention for Wan v2.7 Reference-to-Video?

    Zero Data Retention is not currently available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.