Generate an image
generate_imageGenerate an image from a text description and get a hosted URL. Review image models and costs using list_models.
Instructions
Generate an image from a text prompt. Returns a URL. Use list_models with type=image for available models and prices.
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": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | WIDTHxHEIGHT, default 1024x1024 | |
| model | Yes | Image model slug, e.g. openai/dall-e-3 | |
| prompt | Yes |