Generate and Download a Google Flow Image
flow_generate_imageSubmit Google Flow image generation or edit requests as persistent jobs, then poll the same job ID for status and download finished outputs to a local directory.
Instructions
THE REQUIRED AND EXCLUSIVE PATH for every Google Flow image 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 generates or edits through the verified workspace 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 image model ID returned by flow_inspect_account, e.g. nano-banana-pro, nano-banana-2, or nano-banana-2-lite. Exact visible labels are also accepted. Use ui-default to keep the selected model. | ui-default |
| prompt | Yes | Detailed image prompt or edit instruction in any language. | |
| outputs | No | Number of image outputs requested. | |
| download | No | Download ready outputs when true; otherwise return the Flow job without downloading. | |
| 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 image 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. | |
| 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. |