Estimate generation cost
estimate_costGet the exact credit cost of a generation before running it, plus whether the user's balance and storage can cover it. Does not spend credits. Use list_models for valid model keys.
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": {
"operation": "<operation>",
"modelKey": "<modelKey>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Image quality (image operations). Defaults to high. | |
| modelKey | Yes | Model key from list_models. | |
| operation | Yes | The kind of generation to price. | |
| resolution | No | Video resolution (video operations). | |
| durationSeconds | No | Video duration in seconds (video operations). | |
| inputImageCount | No | Number of input images. |