image_generate
Generate an AI image from a text prompt using the configured API key, then optionally add it to the media library and set it as a post's featured image.
Instructions
Generate an image with AI from a text prompt, using the image API key configured in Keelhob settings (OpenAI-compatible by default). Optionally import it into the media library and set it as a post's featured image. If no key is configured, this returns guidance and you should use image_search instead.
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 |
|---|---|---|---|
| size | No | 1024x1024 | |
| prompt | Yes | ||
| filename | No | ||
| attach_to | No | ||
| set_featured | No |