generate_image
Create images from text descriptions using Google's Gemini AI model. Save generated images to a specified directory for use in projects or visual content creation.
Instructions
Generate images using Google Gemini Nano Banana Pro (gemini-3-pro-image-preview) model
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| output_dir | No | Directory to save the generated image(s) | . |