generate_image
Submit one paid image-generation request and save results locally; returns paths/metadata or a job ID to poll with get_job.
Instructions
Submit one paid image-generation request and save bytes locally. Returns paths/metadata or a job ID to poll with get_job. Never automatically resubmit after timeout/failure. Existing files are protected.
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>",
"output_path": "<output_path>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images; defaults to 1. May increase provider charges. | |
| size | No | Provider-supported size: auto or WIDTHxHEIGHT. Omit to use the provider default. Actual dimensions are returned. | |
| model | Yes | Exact model ID from list_models. Never invent or silently replace it. | |
| prompt | Yes | ||
| quality | No | Provider-supported quality, e.g. auto, low, medium, high, xhigh, max. Omit unless needed; availability varies by model. | |
| background | No | ||
| output_path | Yes | Absolute output filename inside the current user workspace. Prefer output/imagegen/. Extension .png, .jpg, .jpeg or .webp selects output_format. Existing files are never overwritten. For n>1, -1, -2, etc. are appended. |