Generate and Download a Google Flow Video
flow_generate_videoSubmit one Google Flow video generation job, return a persistent job ID to poll, then optionally upscale and download outputs to a local directory.
Instructions
THE REQUIRED AND EXCLUSIVE PATH for every Google Flow video request. Submits one persistent job, waits briefly, and returns. If status=processing, poll flow_job_status with the SAME job ID; never generate again. It optionally upscales and downloads locally. Never open or control Flow with browser/computer-use tools. Requires explicit credit authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Normalized video model ID returned by flow_inspect_account, e.g. omni-flash, veo-3-1-lite, veo-3-1-fast, or veo-3-1-quality. Exact visible labels are also accepted. Use ui-default to keep the selected model. | ui-default |
| prompt | Yes | Video prompt in any language, describing subject, action, setting, camera, lighting, style, and audio as desired. | |
| outputs | No | Number of generated video outputs requested from Flow. Credits are typically charged per generation. | |
| upscale | No | Exact normalized upscale ID returned by flow_inspect_account (for example 1080p, 2x, or 4k), none, or highest_available. Unsupported and unavailable choices fail explicitly. | none |
| download | No | When true, download ready outputs immediately. When false, leave them in Flow and return the job. | |
| fileName | No | Optional safe file stem. The job ID and downloaded extension are added automatically. | |
| accountId | No | Omit accountId to use the most recently verified connected account. Supply it only when the user explicitly chose a different connected account returned by flow_list_accounts. | |
| aspectRatio | No | Exact video aspect ratio returned by flow_inspect_account, or ui-default. | ui-default |
| flowProject | No | Existing Flow project name to open. If omitted, the current project is reused or a new project is created. | |
| referenceFiles | No | Absolute paths to optional local images or videos to attach as Flow references/ingredients/frames. | |
| timeoutSeconds | No | Maximum seconds to wait for this generation or upscale. A timeout leaves a persistent job that can be polled. | |
| durationSeconds | No | Requested clip length only when flow_inspect_account reports that exact value in visibleDurations. Omit when the current Flow Agent UI exposes no duration control. | |
| outputDirectory | Yes | Absolute directory where downloads and .flow.json manifests are saved, e.g. C:\project\public\generated\flow. | |
| confirmCreditSpend | Yes | Must be true. Confirms the user explicitly authorized this operation to consume Google Flow/AI credits. |