generate_variations
Generate multiple distinct variations of an existing image, with control over variation strength, aspect ratio, and resolution.
Instructions
Generate variations of an existing image
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_variations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of variations to generate (1-5) | |
| 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 | |
| imageData | No | Base64 encoded reference image | |
| imagePath | No | Path to the reference image | |
| outputDir | No | Directory to save the variations | |
| resolution | No | Output resolution: 0.5K (512px, 3.1 Flash only), 1K (default), 2K, or 4K | |
| aspectRatio | No | Aspect ratio for the generated variations (optional) | |
| variationStrength | No | How different the variations should be | moderate |