Token Analytics API
Monitor AI token usage, costs, and trends across models and providers.
Prefix: /api/token-analytics
Endpoints
| Method | Path | Description | Role |
|---|---|---|---|
GET | /dashboard | Get summary dashboard (total tokens, cost, request count) | Viewer+ |
GET | /by-model | Get usage breakdown by AI model | Viewer+ |
GET | /by-step | Get usage breakdown by pipeline step | Viewer+ |
GET | /by-provider | Get usage breakdown by provider (OpenAI, Anthropic, etc.) | Viewer+ |
GET | /cost-breakdown | Get detailed cost breakdown with period comparison | Viewer+ |
GET | /trends | Get usage trends over time (daily/weekly/monthly) | Viewer+ |