Skip to main content
POST https://routing.dari.dev/v1/request-costs returns content-free pricing records for requests made with the same API key. Use the request UUID from your response ID (remove the chatcmpl- prefix for Chat Completions).
The CLI provides the same lookup:
Set DARI_ROUTING_API_KEY to the key that made the requests. This command does not create a key or perform inference.

Response

Send 1–1000 request UUIDs per lookup. Unknown IDs and IDs belonging to another key are omitted. complete: false means one or more requested IDs are not yet available; do not treat the returned records as a complete total. Telemetry is asynchronous: a request can be missing shortly after completion. A null cost means exact pricing is unavailable, not that the request was free. Responses must not be cached. model_cost_usd sums known, non-estimated provider-attempt reference costs. It is not an invoice or a subscription cash charge. It excludes sandbox charges, selector infrastructure, and Dari router fees. Failed provider attempts with explicit zero token usage contribute no cost; otherwise, incomplete or estimated attempt pricing returns null. Historical completed records without attempt metadata use their known provider reference cost.