flow_generate_image
Generate 1–4 images from a text prompt with Nano Banana models, including controls for aspect ratio, image size, style, presets, and negative prompts.
Instructions
Generate 1-4 images from a text prompt with a Nano Banana model.
Args: prompt: Description of the image. Text inside quotes is rendered as on-image text. model: 'fast' (Nano Banana 2.1, default), 'pro' (Nano Banana Pro), 'lite', or a full model id. number_of_images: 1-4 (each image is a separate request and is billed separately). aspect_ratio: e.g. '1:1', '2:3', '3:4', '4:5', '9:16', '16:9', '21:9'. Overrides preset. image_size: '1K', '2K' or '4K'. Overrides preset. Lite supports 1K only. preset: Format preset, e.g. 'youtube-thumbnail', 'shorts', 'pinterest-pin', 'worksheet'. style: Style preset, e.g. 'photo', 'watercolor', 'kids-book', 'infographic'. negative_prompt: Things to avoid. output_dir: Override the output folder.
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 |
|---|---|---|---|
| model | No | ||
| style | No | ||
| preset | No | ||
| prompt | Yes | ||
| image_size | No | ||
| output_dir | No | ||
| aspect_ratio | No | ||
| negative_prompt | No | ||
| number_of_images | No |