Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

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​

Successful Response