FOR THE BUILDERS, THE MAKERS & THE SMALL TEAMS WITH BIG IDEAS ✳
AI Coding · News Analysis

GitHub Adds Per-Model Token Counts: Handle Historical Zeros Before Charting Usage

GitHub’s December 2, 2026 update adds per-model token counts to its AI credit usage REST endpoints. Solo developers and eligible team administrators can bring those details into their own dashboards. The first reporting decision concerns history: counts generally begin December 1, and earlier zeros can mean token capture had not started. Mark that boundary before drawing conclusions about changing usage.

ai-coding: Official update → Team impact → Adoption decision. Editorial workflow illustration.
Source-based News Analysis. GitHub’s announcement is dated December 2, 2026; official sources were accessed December 3, 2026. No authenticated API requests, account reports, or dashboard integrations were tested. Implementation suggestions and evaluation steps are editorial proposals. Documentation examples are vendor illustrations, not observed account activity.

1. Six token fields join existing usage responses

The GitHub announcement says each AI credit usage item now includes six raw token counts. These cover input, output, image input, image output, cache reads, and cache writes. GitHub says the definitions match its AI usage report, allowing dashboards to retrieve token detail without downloading that report.

The fields appear in the existing enterprise, organization, and user AI credit usage endpoints. According to GitHub, existing integrations receive them without permission changes, and the counts respect the endpoints’ existing filters. This gives a team already collecting usage data a specific addition to evaluate rather than a separate reporting workflow to establish.

These are documented capabilities. We read the announcement and REST references but did not query an account. The practical checks below are editorial proposals, not results from a working integration.

2. Choose the endpoint that matches the billing account

GitHub says token counts are available to administrators on Copilot Business and Copilot Enterprise, and to anyone on Copilot for individuals. The organization and personal-account reference adds an important boundary: user endpoints report Copilot usage billed directly to a personal account. They apply when the user purchased their own Copilot plan.

If an organization or enterprise manages and pays for a developer’s license, that usage is excluded from the user-level endpoint. The organization or enterprise endpoint is the appropriate reporting scope. A personal-account query therefore cannot be assumed to describe everything a developer does through an employer-provided license.

For a small team, establish the reporting account before designing charts. Record that scope alongside every imported result. Avoid adding personal, organization, and enterprise totals together unless you have established which activity each represents; otherwise, a dashboard can mix distinct populations or overlapping reporting scopes.

3. Preserve the meaning of each count

The announcement defines the fields as follows:

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

GitHub explicitly describes these as raw counts without pricing or discount adjustments. Our recommendation is to retain all six fields separately and keep their names visible in the reporting layer. The cache-write exclusion deserves a field description so future readers do not mistake it for a comprehensive measure of every cache-creation operation.

A token count alone does not establish task quality or developer productivity. A larger output might contain a useful implementation, repeated explanations, or work requiring revision. Pair usage investigations with the acceptance criteria in our AI code review workflow before treating a numerical change as an improvement.

4. Treat December 1 as a coverage boundary

GitHub says token counts generally start with usage on December 1, 2026. Early-access customers may have partial data from before that date. For periods before capture begins, the token fields return 0. The announcement directs readers needing earlier token detail to download the AI usage report from the AI usage page in billing settings.

That makes a November-to-December chart potentially misleading. A rise from zero can reflect the start of measurement rather than increased activity. Likewise, partial early-access data does not establish complete historical coverage. The REST references’ allowance for querying the past 24 months does not imply that these new fields contain token history throughout that period.

We recommend preserving the returned values while adding a separate coverage annotation. Label periods before known capture as unavailable or incomplete for trend analysis. Do not silently reinterpret every zero: after capture starts, a zero still needs to be assessed in the context of the selected account, period, model, and token category.

5. Validate one reporting slice before building trends

Start with one account scope, one model, and one completed day on or after December 1. Set the year, month, and day explicitly. The REST references document defaults for year and month; relying on those defaults makes a saved query’s meaning change as the calendar advances.

The organization reference supports user, model, and product filters. The enterprise reference additionally documents organization and cost-center filters. Preserve the filters used with each result so a later comparison can reproduce the same population.

As a proposed validation step, compare the six fields with the AI usage report for matching scope and dates. Investigate discrepancies before expanding the dashboard. Also check that your importer distinguishes a missing field from a returned zero and retains the model identifier. Documentation response examples demonstrate the shape of the data; their numbers are not evidence of your account’s usage.

6. Use the breakdown to focus an investigation

The strongest immediate use is a recurring question about where recorded usage is concentrated. A small team can inspect which models account for input, output, or cache activity within a consistent period, then investigate the workflows behind a change. The breakdown supplies a starting point; it does not explain the cause.

Our recommendation is to expand reporting only after the narrow comparison is understandable and repeatable. Keep a separate record of task outcomes, review effort, and failed attempts when evaluating model choices. Our coding-assistant evaluation guide provides criteria for that decision. Adopt this API addition when recurring token questions justify maintaining an integration, with historical coverage clearly marked from the first chart.

Sources & further reading

Primary references used for product and technical information. Features and terms can change; check the provider before committing.

No affiliate links are included in this article. Read our disclosure.