Veo 3.1 Fast
Text-to-Video • Google • ProxiedA faster version of Veo 3.1 optimized for lower latency while maintaining high-quality video and audio output.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
Usage
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
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
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
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
stringrequiredText prompt describing the video to generatestringBase64-encoded reference image for i2vstringrequireddefault: 6senum: 4s, 6s, 8sVideo durationstringrequireddefault: 16:9enum: 16:9, 9:16, 1:1Video aspect ratiostringrequireddefault: 720penum: 720p, 1080pVideo resolutionbooleanrequireddefault: trueWhether to generate audio with the videostringformat: uriURL to the generated videoAPI Schemas
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "description": "Text prompt describing the video to generate", "type": "string" }, "image_input": { "description": "Base64-encoded reference image for i2v", "type": "string" }, "duration": { "description": "Video duration", "default": "6s", "type": "string", "enum": [ "4s", "6s", "8s" ] }, "aspect_ratio": { "description": "Video aspect ratio", "default": "16:9", "type": "string", "enum": [ "16:9", "9:16", "1:1" ] }, "resolution": { "description": "Video resolution", "default": "720p", "type": "string", "enum": [ "720p", "1080p" ] }, "generate_audio": { "description": "Whether to generate audio with the video", "default": true, "type": "boolean" } }, "required": [ "prompt", "duration", "aspect_ratio", "resolution", "generate_audio" ], "additionalProperties": false}{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video": { "description": "URL to the generated video", "type": "string", "format": "uri" } }, "required": [ "video" ], "additionalProperties": false}