generate_image
Generates images from a text prompt using Gemini, with optional base64 input image support for image-to-image editing or transformation.
Instructions
Generate an image using Gemini's image generation 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 | |
| input_image | No | Optional base64 encoded input image for image-to-image generation | |
| input_image_mime_type | No | MIME type of the input image (e.g., 'image/png', 'image/jpeg') | image/png |