What an image would cost
estimate_image_costSays what generating would cost in credits, without generating. Use it when the user asks what something would cost. You do not need it before generating: the confirmation prompt already states the price.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_image_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many images. Defaults to 1. | |
| model | No | A model from list_image_models. Defaults to the workspace one. | |
| resolution | No | 1K, 2K or 4K. Larger costs more at some models. |