generate_image
Generate an image from a detailed text prompt with adjustable aspect ratios using the Nano Banana model.
Instructions
Generate an image using the Nano Banana (gemini-2.5-flash-image) 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 | Highly detailed description of the image to generate. | |
| aspectRatio | No | Aspect ratio for the image (e.g., '1:1', '16:9', '9:16', '4:3', '3:4') | 1:1 |