Generate an image
generate_imageCreate images from text prompts using OpenAI's image model. Outputs base64 image with metadata; supports optional size, quality, and output format (subject to server allowlist).
Instructions
Generate an image from a text prompt using the configured OpenAI image model. Returns an image (base64) plus metadata. size/quality/output_format are optional and restricted to the server allowlist; the server picks the 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 |
|---|---|---|---|
| size | No | ||
| prompt | Yes | ||
| quality | No | ||
| output_format | No |