Skip to content
Google logo

Veo 3.1 Fast

Text-to-VideoGoogleProxied

A faster version of Veo 3.1 optimized for lower latency while maintaining high-quality video and audio output.

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

Usage

TypeScript
const response = await env.AI.run(
'google/veo-3.1-fast',
{
prompt: 'A butterfly landing on a colorful flower in a garden',
duration: '6s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)

Examples

Social Content — Quick vertical video for social media
TypeScript
const response = await env.AI.run(
'google/veo-3.1-fast',
{
prompt:
'Aesthetic morning routine: sun rays through curtains, coffee being poured',
duration: '6s',
aspect_ratio: '9:16',
resolution: '720p',
generate_audio: true,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Motion Graphics — Quick animated graphics
TypeScript
const response = await env.AI.run(
'google/veo-3.1-fast',
{
prompt:
'Glowing neon lines forming geometric patterns on a dark background',
duration: '4s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: false,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Ambient Scene — Relaxing background video
TypeScript
const response = await env.AI.run(
'google/veo-3.1-fast',
{
prompt:
'Rain falling on a window with a blurred city skyline in the background at night',
duration: '8s',
aspect_ratio: '16:9',
resolution: '720p',
generate_audio: true,
},
{
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