gflow_generate_image
Generates 1-4 images from a text prompt using Google Flow image models, with configurable aspect ratios and saved asset references. Returns local file paths to the finished images.
Instructions
Generate an image using Google Flow's image models. Produces 1-4 images from a text prompt. Models: nano2 (Nano Banana 2.1, fast; 'nano2.1' also accepted), nano2-lite (Nano Banana 2 Lite), nano-pro (Nano Banana Pro), image4 (Imagen 4, no longer in Flow's menu). Aspects: 1:1, 9:16, 16:9, 4:3, 3:4. The prompt supports @AssetName mentions to tag saved project characters/assets by name (resolves to referenceEntities/referenceImages). Reference a SAVED named asset via @Name; reference an arbitrary one-off image via reference_images. See docs/REFERENCE_STRATEGIES.md. On accounts served from flow.google.com, use an existing project and local reference files. A character attaches there by name (@Name, or reference_entities paired with reference_entity_names); a UUID media reference the local catalog records in that same project is referenced in place (#995), but any other UUID, an entity id without a name, and image4 are not ported to that composer yet and fail before submit; retrying will not clear it. On an agent-only composer (#799) only text-to-image runs, so reference_images and character references fail there too. Returns local file paths to the generated images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | true (default): run the generation inside this call and return the finished result. The call stays open for the whole generation, minutes for a video, which can outlast an MCP client's tool timeout; raise that timeout for generation calls. false: only enqueue the job and return {status: 'pending', task_id} at once; the SEP-2663 Tasks extension's tasks/get reads its state by task_id. No gflow command runs the queue worker today, so a wait=false job is never generated: tasks/get reports it as 'working' indefinitely, and tasks/cancel clears it. Use the default. | |
| count | No | ||
| model | No | nano2 | |
| tools | No | ||
| aspect | No | 1:1 | |
| output | No | ||
| prompt | Yes | ||
| profile | No | default | |
| project | No | ||
| ui_mode | No | ||
| instructions | No | ||
| project_name | No | ||
| reference_images | No | ||
| reference_entities | No | ||
| reference_entity_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||