Generate video (Veo, like Google Flow)
flow_generate_videoGenerate short Veo video clips from text prompts, start/end frames, or up to three reference images for consistent characters, with cinematic control over camera, lens, lighting, and audio.
Instructions
Create a short video clip with Veo (the model behind Google Flow). Modes: text-to-video (prompt only); frames-to-video (startImage, optional endImage); ingredients-to-video (referenceImages for consistent characters/objects/style). Write a cinematic prompt: subject, action, setting, camera move, lens, lighting, style, and any dialogue in quotes plus sound effects/ambience. Images can be asset ids (from flow_list_assets / flow_generate_image) or local file paths. Rendering takes 1-6 minutes; by default the tool waits. If it returns status=pending, call flow_check_operation later. Files are saved locally and the result includes their paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Use the cheaper/faster model (FLOW_VIDEO_FAST_MODEL). | |
| seed | No | Vertex AI only; ignored on the Gemini API. | |
| wait | No | Wait for the render (default true). false returns an operationName immediately. | |
| model | No | Override model id, e.g. veo-3.1-generate-preview. | |
| prompt | No | Detailed description of the shot. Required unless startImage is given. | |
| endImage | No | Last frame: asset id or local image path (needs startImage). | |
| resolution | No | Output resolution. Not every model supports every value. | |
| startImage | No | First frame: asset id or local image path. | |
| aspectRatio | No | 16:9 landscape (default) or 9:16 vertical. | |
| generateAudio | No | Vertex AI only. Leave unset on the Gemini API: Veo 3.x there always generates audio, so describe sounds in the prompt. | |
| negativePrompt | No | What to avoid, e.g. 'text overlays, blurry, cartoon'. | |
| numberOfVideos | No | ||
| timeoutSeconds | No | Max seconds to wait (default 540). | |
| durationSeconds | No | Clip length in seconds (Veo 3.1: 4, 6 or 8). | |
| referenceImages | No | Up to 3 'ingredient' images (asset ids or paths). | |
| personGeneration | No |