Get Token Usage Breakdown
GET/api/v2/cost/organizations/:organization_id/stats/breakdown
Returns the LLM cost, tokens, and requests grouped by model, workspace, pipeline, deployment, provider, or API key.
Results are sorted by cost, highest first, unless you set sort_by and sort_order. Use limit and page_number to page through them. total is the number of groups across all pages. Costs are in USD.
Filter by workspace_id to break down one workspace. You need cost read access in that workspace. Omitting workspace_id covers the whole organization and requires the organization admin role.
Request
Responses
- 200
- 422
Successful Response
Validation Error
Was this page helpful?