Generate images
image_generateTurn text prompts into images using an OpenAI-compatible endpoint. Returns inline base64 or download URLs for easy access.
Instructions
Generate one or more images from a text prompt through an OpenAI-compatible images/generations endpoint. Images are returned inline as base64 when available, otherwise as download URLs.
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": "image_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Optional number of images to generate (1-4). | |
| size | No | Optional image size such as 1024x1024. | |
| model | No | Optional model override. | |
| prompt | Yes | Text description of the image to generate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Description of the generated images. | |
| count | Yes | Number of images generated. | |
| model | Yes | Model used for the request. |