📊 GitHub REST API now shows per-model token counts behind AI credits
In brief
- 📊 The AI credit usage endpoints of the GitHub REST API now return token counts per model.
- 🔢 Six raw counts per item: input, output, image input, image output, cache read, cache write.
- 👤 Available to admins on Copilot Business and Enterprise and to individual Copilot users.
- 📅 Counts generally start with usage on December 1, 2026; earlier periods return 0.
📊 According to the [GitHub changelog](https://github.blog/changelog/) of December 2, 2026, the REST API endpoints for AI credit usage now return per-model token counts for enterprises, organizations and individual users. Each usage item carries six raw counts without pricing or discount adjustments. Anyone already using the endpoints sees the new fields with no change in permissions. Counts generally start with usage on December 1, 2026.
Endpoints. Three paths under settings/billing/ai_credit/usage are affected: enterprise (/enterprises/{enterprise}/…), organization (/organizations/{org}/…) and user (/users/{username}/…). The new fields are tokenInput, tokenOutput, tokenImageInput, tokenImageOutput, tokenCacheRead and tokenCacheWrite: tokens sent to the model, tokens it generated, image tokens in both directions, cached tokens read and tokens written to the cache, excluding extended cache creation.
Use. The definitions match those of the AI usage report, so teams can pull token detail into their own dashboards and tools without downloading a report. The endpoints' existing filters, such as time period, user and model, still apply. According to GitHub, the counts are available to admins on Copilot Business and Copilot Enterprise and to anyone on Copilot for individuals.
Limits. Capture generally starts with usage on December 1, 2026; customers with early access may have partial data from before then. For periods before capture starts the token fields return 0. For earlier usage GitHub points to the AI usage report, which can be downloaded from the AI usage page in billing settings. Documentation exists for enterprises and for organizations and personal accounts.