Request body
Response
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 sameusage object across models. That isolates rate differences from prompt or output length changes. See Compare cost between two models.