generateImage
Turn text prompts into customized images with adjustable style, aspect ratio, and quality using Google Gemini.
Instructions
Generate images from text prompts using Google Gemini
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": "generateImage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Image style (optional) | |
| width | No | Image width in pixels (optional) | |
| height | No | Image height in pixels (optional) | |
| prompt | Yes | Text prompt describing the image to generate | |
| quality | No | Image quality level (optional) | |
| aspectRatio | No | Image aspect ratio (optional) | |
| numberOfImages | No | Number of images to generate (optional, default: 1) |