Generate images in Flow
flow_generate_imagesGenerate images in Google Flow from a prompt: set aspect ratio, model and count, submit, wait for results, return media IDs, and optionally download at 1K/2K/4K within a credit cap.
Instructions
Set aspect ratio, model and number of images in Google Flow, submit the prompt, and wait until the images finish. Returns the new media ids. Pass download_size to also download them in the same call. Refuses to run when Flow says it would cost more than max_credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Images to generate (Flow offers 1-4). Omit to keep the current setting. | |
| model | No | Model name or unique part of it, e.g. "Nano Banana Pro", "Nano Banana 2.1", "2 Lite". Omit to keep the current one. | |
| prompt | Yes | Image prompt. | |
| dry_run | No | Apply the settings and return Flow's credit cost without generating. | |
| project | No | Which Flow project to use: "default" (a project this server created and reuses), "new", "current" (whatever the Flow tab shows), or a https://flow.google.com/project/<id> URL. | |
| output_dir | No | Absolute directory for downloads (default ~/Downloads/flow-mcp). | |
| max_credits | No | Abort if Flow's displayed credit cost exceeds this. Default 0 = only free generations. | |
| timeout_sec | No | ||
| aspect_ratio | No | e.g. "16:9", "4:3", "1:1", "3:4", "9:16". Omit to keep the current setting. | |
| download_size | No | If set, download the results at this size after generating. |