GitHub announced on 2 December 2026 that its AI credit usage REST API now includes a per-model breakdown of tokens. For anyone paying for Copilot under credit-based billing, this is the first way to see what actually drives the bill without downloading a report by hand.
What changed
- The enterprise, organisation and user endpoints under
settings/billing/ai_credit/usageeach return six raw counts per usage item: input, output, image input, image output, cache read and cache write tokens. - The counts are raw. They carry no pricing or discount adjustments, so they can be compared across models.
- They respect existing filters for time period, user and model, and need no new permissions.
- Admins on Copilot Business and Copilot Enterprise can read them, as can anyone on Copilot for individuals.
- Capture generally starts with usage on 1 December 2026. Earlier periods return 0, with the downloadable AI usage report as the fallback.
How to read it
AI coding spend has moved from a flat seat fee to something closer to a utility bill. Utility bills need meters. Until now the answer to “why did this cost more?” was a CSV export and a guess. With tokens per model available through an API, a team can build a simple dashboard showing which models are used, how much is cached and where spend is rising.
Cache numbers deserve attention. A high share of cache reads usually means the tool is reusing context efficiently. Lots of cache writes with few reads can mean the work is being redone.
So what
If your company budgets for AI coding tools, ask who owns the usage data and who reviews it monthly. Set a budget per team before the numbers surprise you, not after. We help teams set up AI-assisted workflows with cost controls built in: see AI-assisted development, or start a project.