跳至主要內容
返回技術博客

· 2 min read · ·

More AI token detail needs more reporting context

GitHub’s usage API update is a prompt to distinguish tokens, cost, and outcomes—and explain coverage dates and zero values.

  • AI
  • Analytics
  • Delivery
On this page
  1. State the question first
  2. Keep context around zero
  3. Align scope before comparing
  4. Deliver a report others can question
  5. Sources

On December 2, 2026, GitHub announced per-model token counts in its AI usage REST API. These are raw counts without pricing or discounts. Coverage generally begins December 1; periods before capture return zero. The following is reporting guidance, not a hands-on API evaluation.

State the question first

A team may want to understand its model mix or investigate why a task became expensive. Those questions need different evidence. The first needs consistent categories and periods; the second also needs billing rules, task context, and execution details. Put a sentence above the chart explaining its purpose.

Keep the model, time range, and token categories alongside coverage information. Avoid summing every number and labelling the result as cost, or ranking people by token volume. A long output may be one step in several revisions. A count alone cannot establish the quality of the work.

Keep context around zero

When a chart crosses the start of capture, earlier zeros should not imply that nobody used the service. I would distinguish uncovered periods from zeros within covered periods in the presentation layer, while preserving the original response as evidence. Do not rewrite source values to make a chart look cleaner.

An import failure should not quietly become zero either. Record its time and retry status, and show when the report last updated successfully. Readers need to know whether they are seeing a complete interval or an incomplete snapshot.

Align scope before comparing

Before comparing two weeks, check timezone, interval length, filters, and task types. A week containing image work is different from one containing only text tasks. A change in volume can start an investigation; it does not by itself establish a conclusion about model efficiency.

To assess delivery quality, examine reviewed examples separately: whether requirements were met, what revisions were needed, and what human acceptance found. Those measures also have limits, but they let a team discuss usage and completed work in distinct columns.

Deliver a report others can question

Start with a small scope and include query conditions, coverage dates, last update time, and known limitations. Ask a colleague to reproduce it. Share only the aggregates needed for the work, without raw prompts, personal identities, or complete activity histories. A useful usage report should help someone ask the next question instead of reducing complex work to a single score.

Sources

Official announcement

Related reading

Markdown · PDF

SUBSCRIBE

新文章寄到你的信箱

每月約 2–4 篇,主題是 AI 導入、Web 工程與維運。只在有新文章時寄出,隨時可以退訂。

送出後會收到一封確認信,點擊確認才會開始寄送。確認信可能被歸到垃圾郵件,請留意一下。

用 RSS 訂閱

習慣用 Feedly、Inoreader 或其他閱讀器?加入這個網址即可。

https://www.8plus.app/feed.xml
開啟 RSS

想把文章裡的想法落地?

預約一場諮詢,讓我們針對你的系統與流程一起討論可行的做法。