Skip to content
Dashboard

Seedance 2.0 Video Generation on AI Gateway

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'bytedance/seedance-2.0',
prompt:
`Black triangle sticker peels off laptop and zips across the office. It smashes
through the window and into the San Francisco sky.`,
aspectRatio: '16:9',
resolution: '720p',
duration: 5,
});

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'bytedance/seedance-2.0',
prompt: {
image: catImageUrl,
text: 'The cat is celebrating a birthday with another cat.',
},
duration: 10,
providerOptions: {
bytedance: { generateAudio: true },
},
});

import { experimental_generateVideo as generateVideo } from 'ai';
const { videos } = await generateVideo({
model: 'bytedance/seedance-2.0',
prompt: 'Replace the cat in [Video 1] with the lion from [Image 1].',
duration: 10,
providerOptions: {
bytedance: {
referenceImages: [Image 1],
referenceVideos: [Video 1],
generateAudio: true,
},
},
});

Ready to deploy?