Skip to content
Dashboard

Link to headingTwo ways to get started

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'alibaba/wan-v2.6-t2v',
prompt: 'Watercolor painting of a koi pond coming to life.',
});

Link to headingAvailable Models

Link to headingSimple: Text-to-Video with Audio

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'alibaba/wan-v2.6-t2v',
prompt:
`Animated rainy Tokyo street at night, anime style,
neon signs reflecting on wet pavement, people with umbrellas
walking past, red and blue lights glowing through the rain.`,
resolution: '1280x720',
duration: 5,
});

Link to headingAdvanced: Reference-to-Video

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'alibaba/wan-v2.6-r2v-flash',
prompt:
`character1 and character2 are playing together on the beach in San Francisco
with the Golden Gate Bridge in the background, sunny day, waves crashing`,
resolution: '1280x720',
duration: 5,
providerOptions: {
alibaba: {
referenceUrls: [shibaImage, yorkieImage],
},
},
});

Link to headingLearn More