AI Today

📊 GitHub REST API now shows per-model token counts behind AI credits

· 2 min

In brief


📊 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.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service