generate_image
Create an image from a text prompt. Costs money; checked against the budget first.
Instructions
Create an image from a text prompt. Costs money; checked against the budget first.
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 |
|---|---|---|---|
| model | No | Model ID from list_models. Default: configured default. | |
| prompt | Yes | What to create, in natural language. | |
| resolution | No | Image size: 512, 1K, 2K or 4K | 1K |
| output_name | No | Short name used in the file name (a slug is derived from it). | |
| aspect_ratio | No | e.g. 1:1, 16:9, 9:16, 4:5 | 1:1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||