batch_generate
Generate multiple images from an array of prompts in one request, with controls for model, resolution, aspect ratio, and parallel processing.
Instructions
Generate multiple images from an array of prompts
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": {
"prompts": "<prompts>"
},
"name": "batch_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use: gemini-3.1-flash-image-preview (Nano Banana 2, recommended) or gemini-3-pro-image-preview (Nano Banana Pro) | |
| config | No | Advanced generation configuration | |
| prompts | Yes | Array of prompts to generate images for | |
| parallel | No | Process prompts in parallel (default: false) | |
| outputDir | No | Directory to save the generated images | |
| resolution | No | Output resolution: 0.5K (512px, 3.1 Flash only), 1K (default), 2K, or 4K | |
| aspectRatio | No | Aspect ratio for the generated images (optional) |