Generate image (Nano Banana / Imagen in Flow)
flow_generate_imageGenerates still images in Google Flow from prompts, with optional reference images, then downloads full-resolution files using editor-ready names and manifest.json.
Instructions
Generates still images inside Google Flow and downloads them at the full resolution Flow serves, with editor-ready naming and manifest.json. Optional reference images. 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_image"
}
}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 | |
| 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 | Image aspect ratio: 16:9, 4:3, 1:1, 3:4 or 9:16. Set in Flow's UI (falls back to a prompt directive if the control is missing). | |
| project_name | No | Project name. Files go to <output_dir>/<project_name>/Assets_Flow/ and manifest.json to <output_dir>/<project_name>/. | Flow_Project |
| 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). | |
| flow_project_url | No | Optional existing Flow project URL to generate inside. Default: most recent project (worker 1) or a new project (extra workers). | |
| reference_images | No | Absolute paths to local images used as ingredients (character / scenery / style references). | |
| wait_timeout_seconds | No | Max seconds this tool call blocks before returning a job_id to poll. |