Get Token Usage Totals
GET/api/v2/cost/organizations/:organization_id/stats/totals
Returns the total LLM cost, tokens, and requests, and the average cost per request.
Filter by workspace_id to get one workspace's totals. You need cost read access in that workspace. Omitting workspace_id returns totals for the whole organization and requires the organization admin role.
The response also says what total_cost is missing: LLM calls still waiting for a price and calls with no known price, with the models behind them. When is_cost_complete is false, total_cost is a lower bound. Costs are in USD.
Request
Responses
- 200
- 422
Successful Response
Validation Error
Was this page helpful?