Skip to content
Google logo

Veo 3

Text-to-VideoGoogleProxied

Google's video generation model capable of producing high-quality videos with optional audio from text prompts.

Model Info
Terms and Licenselink
More informationlink
PricingView pricing in the Cloudflare dashboard

Usage

TypeScript
const response = await env.AI.run(
'google/veo-3',
{
prompt:
'A golden retriever running through a field of sunflowers on a sunny day',
duration: '6s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)

Examples

Cinematic Scene — Widescreen cinematic video in 1080p
TypeScript
const response = await env.AI.run(
'google/veo-3',
{
prompt:
'A dramatic drone shot flying through misty mountain peaks at sunrise, with clouds rolling through valleys below',
duration: '8s',
aspect_ratio: '16:9',
resolution: '1080p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Vertical Video — Portrait orientation for social media
TypeScript
const response = await env.AI.run(
'google/veo-3',
{
prompt:
'A barista expertly pouring latte art, close-up shot with shallow depth of field',
duration: '6s',
aspect_ratio: '9:16',
resolution: '720p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Short Format — Short video for social media posts
TypeScript
const response = await env.AI.run(
'google/veo-3',
{
prompt: 'A timelapse of a flower blooming, soft natural lighting',
duration: '4s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Silent Video — Video without audio generation
TypeScript
const response = await env.AI.run(
'google/veo-3',
{
prompt: 'Abstract flowing liquid metal morphing into geometric shapes',
duration: '6s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: false,
},
{
gateway: { id: 'default' },
}
)
console.log(response)

Parameters

prompt
stringrequiredText prompt describing the video to generate
image_input
stringBase64-encoded reference image for i2v
duration
stringrequireddefault: 6senum: 4s, 6s, 8sVideo duration
aspect_ratio
stringrequireddefault: 16:9enum: 16:9, 9:16, 1:1Video aspect ratio
resolution
stringrequireddefault: 720penum: 720p, 1080pVideo resolution
generate_audio
booleanrequireddefault: trueWhether to generate audio with the video

API Schemas (Raw)

Input
Output