Estimate credit cost
estimate_costPrice a generation before starting it: the credits this model would charge for these options, and whether the current balance covers it. Uses the same validation and price calculation as generate_3d and generate, so for a valid request the figure is exactly what is charged. Omit scene to price every scene of the model. Nothing is charged and nothing is started.
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>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | A model id from list_models. | |
| scene | No | A scene id from list_models, e.g. 'image-to-3d'. | |
| prompt | No | ||
| options | No | The options you intend to pass; they change the price. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| quotes | Yes | ||
| balance | Yes | Credits the account holds now. | |
| available | Yes | ||
| media_type | Yes |