How tokens are counted
Gateway reads token usage from the provider’s response, including usage events in streamed responses. It records the provider’s total token count, or derives a total from the available token fields for that provider’s response format. It does not estimate missing tokens from the length of your prompt or the generated text. The graph adds the recorded token totals for the selected period and filters. Each request belongs to the UTC calendar day when it started. The default view covers the last 31 UTC calendar days, including today.- Model groups usage by the actual upstream provider and model, across configured provider instances.
- Person groups usage by the organization member who made the request.
- Team attributes each person’s usage to their current teams. Someone in multiple teams contributes to each team, so team totals can exceed model or person totals. People without a team are omitted from the team view.