# GitHub — Per-model token breakdown in the AI usage REST API

- Company: GitHub (github.com)
- Announced: 2026-12-02T18:22:05+00:00
- Category: not stated
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://blog.github.com/changelog/2026-12-02-per-model-token-breakdown-in-the-ai-usage-rest-api/
- Record: https://forck.live/items/43592-per-model-token-breakdown-in-the-ai-usage-rest-api
- Subject: Copilot

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

---

Record: https://forck.live/items/43592-per-model-token-breakdown-in-the-ai-usage-rest-api
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
