Per-model token breakdown in the AI usage REST API
TL;DR
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: The post Per-model token breakdown in the AI usage REST API appeared first on The GitHub Blog. 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: The post Per-model token breakdown in the AI usage REST API appeared first on The GitHub Blog.
Nauti's Take
Start with the response schema: verify whether input and output tokens are separated and whether every model in your workflow is covered. Only then build a small report that exposes expensive models, usage spikes, and unused credits.
The changelog confirms the breakdown, but the short source summary does not yet establish how granular or timely the data is.