generate_image
Generate an image from a text prompt using Google Gemini. Describe the desired visual to create custom images.
Instructions
Generate an image 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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Whether to save the generated image to the filesystem | |
| topK | No | Top-k parameter for sampling | |
| topP | No | Top-p parameter for sampling | |
| model | No | Model to use | gemini-2.0-flash-preview-image-generation |
| prompt | Yes | Text description of the image to generate | |
| temperature | No | Temperature for generation (0.0 to 1.0) |