Skip to content

GitHub Copilot: Per-model token breakdown in the AI usage REST API

Released · GitHub / Microsoft

Models:Removes Claude Opus 4.8 ·Adds GPT-6.2 Sol

What the release notes say

Improvement December 2, 2026 • 1 minute read Per-model token breakdown in the AI usage REST API You can now get a per-model breakdown of the tokens behind your AI credits from the GitHub REST API. The following AI credit usage endpoints return token counts:

  • Enterprise: GET /enterprises/{enterprise}/settings/billing/ai_credit/usage
  • Organization: GET /organizations/{org}/settings/billing/ai_credit/usage
  • User: GET /users/{username}/settings/billing/ai_credit/usage Each usage item includes six raw token counts, without pricing or discount adjustments:
  • tokenInput : Input tokens sent to the model
  • tokenOutput : Output tokens generated by the model
  • tokenImageInput : Image input tokens sent to the model
  • tokenImageOutput : Image output tokens generated by the model
  • tokenCacheRead : Cached tokens read by the model
  • tokenCacheWrite : Tokens written to the cache, excluding extended cache creation The counts use the same definitions as the AI usage report, so you can pull token detail into your own dashboards and tools without downloading a report. They also respect the endpoints' existing filters, such as time period, user, and model. If you already use the enterprise, organization, or user endpoints, the new fields appear in your responses with no changes to permissions. Token counts are available to admins on Copilot Business and Copilot Enterprise, and to anyone on Copilot for individuals. Token counts generally start with usage on December 1, 2026. Customers with early access may have partial data from before that date. For periods before capture starts, token fields return 0 . To see token detail for earlier usage, download the AI usage report from the AI usage page in your billing settings. For more information, see the billing usage REST API documentation for enterprises and the billing usage REST API documentation for organizations and personal accounts .
  • Copilot
  • Account Management Share Copied

Share Copied Related Posts

  • NOV.30 Retired Claude Opus 4.8 (fast) deprecated on November 30, 2026
  • Copilot
  • NOV.30 Release Automation and more in GitHub Copilot for JetBrains
  • Copilot
  • NOV.25 Improvement Copilot code review billing will default to the organization
  • Copilot
  • NOV.18 Improvement Connect Supabase, Box, Calendly, and more to Copilot
  • Copilot
  • NOV.18 Release Gemini 4 Neon in GitHub Copilot
  • Copilot
  • NOV.18 Release Customize GitHub Copilot for your team
  • Copilot
  • NOV.17 Release OpenAI’s GPT-6.2 Astra and GPT-6.2 Sol now available
  • Copilot
  • NOV.17 Improvement GitHub Copilot Fusion updates: more availability, benchmarks, and models
<ul class="_labels_mdzjd_1" data-changelog-labels data-