Video Generation with Wan Models Now Available
Vercel has integrated Alibaba's Wan video generation models into AI Gateway, enabling developers to generate stylized videos with smooth motion and consistent character appearance. The integration brings multiple video generation capabilities directly into the AI SDK and web-based playground.
Supported Video Generation Types
The Wan model suite includes:
- Text-to-Video (
alibaba/wan-v2.6-t2v): Generate videos from text prompts with support for detailed styling instructions - Image-to-Video (
alibaba/wan-v2.6-i2v): Animate still images into videos - Image-to-Video Flash (
alibaba/wan-v2.6-i2v-flash): Faster generation for quick iterations - Reference-to-Video (
alibaba/wan-v2.6-r2v): Extract character appearance and voice from reference images/videos to generate new scenes - Reference-to-Video Flash (
alibaba/wan-v2.6-r2v-flash): Expedited character transfer
All models support flexible resolutions at 480p, 720p, and 1080p with configurable duration.
Getting Started
Developers can access Wan models through two interfaces:
- AI SDK 6: Use the
generateVideo()function to programmatically generate videos with full configuration control - AI Gateway Playground: Experiment with video models visually without code, compare providers, and download results
Availability and Access
Video generation is currently in beta and available to Pro and Enterprise plan subscribers, as well as paid AI Gateway users. The models support detailed prompts for style specification (e.g., anime, watercolor, neon-lit scenes) and character referencing for multi-subject scenes.
Developers can access the full video generation documentation for advanced configuration options and quickstart scripts.