generateImage
Generate an AI image from a prompt and return a hosted imageUrl for createPost or patchPost. Use listModels with kind=image to choose a model and check its image allowance cost. Nothing is posted.
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 |
|---|---|---|---|
| model | No | Image generation model: a model id from GET /v1/models?kind=image, or a built-in name ("gemini-flash", "gpt-image-1.5" for GPT Image 2.6, "nano-banana-pro"). | |
| prompt | Yes | Detailed image prompt |