Wan 3.0 from Alibaba is now available on AI Gateway as alibaba/wan-v3.0-video .
Wan 3.0 combines text-to-video, image-to-video, first- and last-frame conditioning, and reference-based generation in one model. References can include images, video, and audio. It generates clips up to 30 seconds at 30 fps in 480p, 720p, or 1080p, with synchronized audio.
Previously, Wan 2.7 required separate -t2v and -r2v model IDs and was limited to 15-second clips at 24 fps.
Copy link to heading Generate a video
Wan 3.0 supports asynchronous generation , so no HTTP request needs to remain open for the entire render.
Pass a webhook to receive an event when the generation finishes:
import { experimental_generateVideo as generateVideo } from 'ai' ;
const { videos } = await generateVideo ( {
model : 'alibaba/wan-v3.0-video' ,
prompt : 'A paper lantern drifting over a harbor at night' ,
webhook : async ( ) => ( {
url : callbackUrl ,
received : waitForDelivery ( token )
} ) ,
} ) ;
Generate a Wan 3.0 video and…