generate_with_template
Generate images using pre-defined style templates and customize them with your own requirements for a tailored result.
Instructions
Generate an image using a pre-defined style template
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": {
"template": "<template>",
"customization": "<customization>"
},
"name": "generate_with_template"
}
}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 | |
| template | Yes | Pre-defined prompt template | |
| outputDir | No | Directory to save the generated image | |
| resolution | No | Output resolution: 0.5K (512px, 3.1 Flash only), 1K (default), 2K, or 4K | |
| aspectRatio | No | Aspect ratio for the generated image (optional) | |
| customization | Yes | Your specific requirements to customize the template |