GitHub has begun providing per-model token breakdowns in its AI credit usage API. Copilot admins and individual users can fetch input, output, image, and cache read and write tokens without downloading reports. Their tools can show which models generated usage.

1. Six token types are available per model

On December 2, 2026, GitHub announced token counts for enterprise, organization, and personal AI credit usage endpoints, the API addresses that receive requests. Each usage item includes model input and output, image input and output, and cache read and write values.

The six values follow the same definitions as AI usage reports. Cache writes exclude extended cache creation. Dashboards and internal tools can now read the details previously found in reports on the same basis.

GitHub lists Copilot Business and Copilot Enterprise admins and individual Copilot users as eligible. Existing API users receive responses containing the new fields through the same requests.

2. Find them in existing billing usage responses

The new token values are added to each usage item in AI credit usage responses. Items still include the product, model, unit price, quantity, gross amount, and discount amount. Token details and billing data can be linked within the same item.

Choose the endpoint for the billed account. Use the personal endpoint for directly purchased Copilot plans, and the relevant account-level endpoint for organization- or enterprise-managed and billed licenses. The organization endpoint requires organization admin permissions.

3. Query with existing filters and permissions

Existing filters supported by each endpoint, such as period and model, also apply to token counts. Organization and enterprise endpoints support queries by user. Enterprise queries can be narrowed by organization or cost center, a unit for grouping and managing costs.

For example, organization admins can specify a period and model to fetch the token details they need. GitHub says existing enterprise, organization, and personal endpoint permissions need no changes to receive the new fields.

The documentation provides this organization request example:

curl -L \
  -X GET \
  https://api.github.com/organizations/ORG/settings/billing/ai_credit/usage

The documentation says most endpoints use authentication to verify the requester's identity, along with response format and API version headers. These are omitted from the example for brevity.

4. Read tokens and amounts together instead of processing files

Teams that downloaded and processed reports can regularly collect API responses to display per-model token trends in their own dashboards. Separate cache read and write counts let them distinguish model input and output tokens from cache reads and writes.

Automation reduces file handling, but collection tools still need to interpret costs. The new counts are raw tokens before pricing and discount adjustments. Use tokens to examine model usage patterns and monetary fields in the same response to read actual costs.

5. Check the collection start date and query range

According to GitHub, token counting generally starts with usage from December 1, 2026, though early customers may receive some earlier data. Token fields return 0 for periods before collection began. The API covers the latest 24 months.

Token details for earlier usage can be checked by downloading reports from the AI usage page in billing settings.

Per-model tokens can now be collected directly from the existing billing API, but cost assessments still require reading token counts alongside monetary information.