Generate an image
generate_imageGenerate an image with a KeelRouter model. Spends real USD from the account balance at the price in list_models (from under $0.01 per image; higher resolutions cost more); failed calls are not charged. Waits up to 50 seconds; if not done, returns task_id for get_result. Result links are valid for a limited time.
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 |
|---|---|---|---|
| model | Yes | Model id from list_models. | |
| params | No | Other request fields for this model, as listed in list_models params (e.g. aspect_ratio, resolution, image_urls, duration). | |
| prompt | Yes | ||
| idempotency_key | No | Reuse the same key when retrying so the task is not created or charged twice. |