estimate_cost
Stateless dry-run cost and route-eligibility estimator. Validates the exact generation request and computes per-route estimatedCostMicros, recommendedMaxCostMicros, and workspaceEligibility without reserving credits, creating a quoteId, or calling upstream providers. Read-only.
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": {
"modelId": "<modelId>",
"operation": "<operation>",
"input": "<input>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Canonical generation input object ({ prompt, resolution, duration, aspectRatio, count, quality, ... }). | |
| billing | No | Billing mode. | |
| modelId | Yes | Exact model ID. | |
| routeId | No | Optional pinned route ID. | |
| routing | No | Optional routing constraints ({ providerIds, endpointRegions, fallback, preference }). | |
| operation | Yes | Exact generation operation. | |
| maxCostMicros | No | Optional spend ceiling in integer micro-USD. |