create_image
Generate images from text prompts using LiteLLM. Specify count, size, and model to tailor outputs.
Instructions
Generate images using LiteLLM (/images/generations)
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": "create_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | The number of images to generate. | |
| size | No | The size of the generated images. (e.g. 1024x1024) | 1024x1024 |
| model | No | The model to use for image generation. | |
| prompt | Yes | A text description of the desired image(s). |