Skip to main content
Price one request when you know the model, provider, and token counts. The Pricing API returns a dollar total. No SDK required.

Request body

Response

Read cost_breakdown.total as USD for that single call.

Optional usage fields

Include cache and reasoning token counts when your workload uses them:

Compare models fairly

Reuse the same usage object across models. That isolates rate differences from prompt or output length changes. See Compare cost between two models.

API reference