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
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) |