text_to_image
Generate images from text descriptions with customizable aspect ratios and generation parameters using Gemini image models.
Instructions
Generate images from text using Gemini's Flash (Nano Banana) Image models.
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": "text_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| model | No | gemini-2.5-flash-image | |
| aspect_ratio | No | 1:1 | |
| temperature | No | Sampling temperature for image generation (default: 1.0) | |
| top_p | No | Nucleus sampling parameter for image generation (optional) |