cd /news/ai-products/per-model-token-breakdown-in-the-ai-… · home › topics › ai-products › article
[ARTICLE · art-180484] src=blog.github.com ↗ pub= topic=ai-products verified=true sentiment=↑ positive

Per-model token breakdown in the AI usage REST API

GitHub's AI usage REST API now returns per-model token counts across its enterprise, organization and user AI credit usage endpoints, adding six raw fields: tokenInput, tokenOutput, tokenImageInput, tokenImageOutput, tokenCacheRead and tokenCacheWrite. The counts, which use the same definitions as the AI usage report and respect existing filters for time period, user and model, are available to admins on Copilot Business and Copilot Enterprise and to anyone on Copilot for individuals, with data generally starting December 1, 2026 and returning 0 for earlier periods. The new fields appear in existing responses with no permission changes, letting teams pull token detail into their own dashboards without downloading a report.

key takeaway

GitHub's AI credit usage endpoints now return six raw token fields (tokenInput, tokenOutput, tokenImageInput, tokenImageOutput, tokenCacheRead, tokenCacheWrite) with no permission changes, but return 0 for usage before December 1, 2026.

read1 min views12 publishedDec 2, 2026
Per-model token breakdown in the AI usage REST API
Image: Blog (auto-discovered)

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

── more in #ai-products 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/per-model-token-brea…] indexed:0 read:1min 2026-12-02 · —