Generate video (text-to-video)
flow_generate_videoCreates a video in Google Flow from a text prompt, with control over aspect ratio, camera motion, resolution and variation count, saving editor-ready file names plus a manifest.json.
Instructions
Generates a video in Google Flow from text, with aspect ratio, camera motion, variation count and editor-ready naming (Scene_01_Take_02.mp4) plus manifest.json. Consumes Flow credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "flow_generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | true = wait for the result (up to wait_timeout_seconds). false = return job_id immediately. | |
| model | No | Optional model name as shown in Flow (e.g. 'Veo 3.1 - Fast', 'Veo 3.1 - Quality', 'Nano Banana Pro'). Omit to keep Flow's current default. | |
| prompt | Yes | Prompt text (any language; English often gives the best Veo results). | |
| scene_id | No | Scene id. Numbers are zero-padded: 1 -> Scene_01. | |
| overwrite | No | Overwrite existing files with the same name. Default false appends _alt2, _alt3... | |
| output_dir | No | Absolute root folder for projects. Default: /root/Projetos | |
| resolution | No | Video resolution as offered by Flow, e.g. '720p' or '360p' (cheaper). Omit to keep Flow's current setting. | |
| ask_options | No | If true (default when the client supports it), unspecified options (quantity, and for video: format, length) are asked to the user in a dialog showing the credit cost before generating. Set false to skip the dialog and use defaults. | |
| max_retries | No | Retries with exponential backoff on rate limit / server errors (default 3). | |
| take_number | No | Take number: 2 -> Take_02. | |
| aspect_ratio | No | Video format: 9:16 = vertical (TikTok, Reels, Shorts); 16:9 = horizontal (YouTube). Omit to keep Flow's current setting. | |
| project_name | No | Project name. Files go to <output_dir>/<project_name>/Assets_Flow/ and manifest.json to <output_dir>/<project_name>/. | Flow_Project |
| camera_motion | No | Camera movement. Applied via Flow's camera control when present, otherwise as a cinematic prompt directive. Aliases: pan=pan_right, tilt=tilt_up, zoom=zoom_in, dolly=dolly_in, orbit=orbit_right. | |
| outputs_count | No | How many variations to generate (1-4). DEFAULT 1: only set this when the user explicitly asks for more. Multiple outputs are saved as _v1.._v4. | |
| timeout_seconds | No | Max seconds to wait for Flow to render (default 600). | |
| duration_seconds | No | Video length in seconds. Flow's allowed range depends on the model (e.g. Omni 1.2 Flash: 3-15 s) and is checked live; omit to keep Flow's current length. | |
| flow_project_url | No | Optional existing Flow project URL to generate inside. Default: most recent project (worker 1) or a new project (extra workers). | |
| wait_timeout_seconds | No | Max seconds this tool call blocks before returning a job_id to poll. |