compute_estimate
Estimate the nominal USD cost of any oracle-tracked model by providing input and output token counts. Returns base price, routing fee, and billed cost for comparing models and budgeting.
Instructions
Nominal USD cost for any oracle-tracked model given input/output token counts (no cache discounts) — basket members and catalog-only models on identical terms. Returns base_usd_cost (provider list price), routing_fee_usd and billed_usd_cost (what compute.finance charges), plus the routing_fee_rate they derive from. Compare models on base_usd_cost; budget on billed_usd_cost. price_source ('oracle-basket' | 'oracle-catalog') names the serving endpoint only and does not change the pricing basis, so two models with the same provider price return the same cost. Errors with 'Model not tracked by oracle' for unknown keys. Source: Oracle API (/v1/oracle/resolve + /v1/oracle/basket). For cache-aware cost, use analyze_session on a real transcript. Accepts canonical names like 'claude-sonnet-4.6'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| input_tokens | Yes | ||
| output_tokens | Yes |