Clarification needed: netAmount breakdown between license-included costs and additional charges across GitHub billing APIs #199840
Replies: 1 comment 2 replies
-
|
Q1 — Does ai_credit/usage netAmount include license-covered portions or only overages? It includes both — full consumption, not just overage. Your plan includes base credits (fixed, matches subscription price) + a flex allotment on top. Base credits deplete first, then flex kicks in automatically. The API doesn't split these natively — subtract your known included credit value manually to derive overage. Q2 — Does /billing/usage already include AI/Copilot usage? No — fully separate scopes. /billing/usage covers Actions, Packages, Storage. ai_credit/usage is exclusively Copilot AI token consumption. Don't combine them for Copilot cost calculations. Q3 — Is there a field to isolate license-included vs. billable overages? No single field exists. Calculate it manually: Included = seats × per-seat credit value (Business: 1,900 credits/user, Enterprise: 3,900/user). Overage = netAmount from ai_credit/usage minus included pool. Once the pool exhausts, additional usage either continues at $0.01/credit or gets blocked — depending on your policy config. Q4 — How to reconcile all three endpoints without double-counting? /billing/usage → Actions, Packages, Storage → Non-Copilot costs Total = (seats × plan price) + overage from ai_credit/usage. Never sum /billing/usage + ai_credit/usage for Copilot — independent scopes. Q5 — Official docs Usage-based billing for orgs & enterprises: https://docs.github.com/en/copilot/concepts/billing/usage-based-billing-for-organizations-and-enterprises Hope it helps😊 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Other
Body
Subject: Clarification needed: netAmount breakdown between license-included costs and additional charges across GitHub billing APIs
Hello GitHub Support Team,
I am reaching out on behalf of our organization to request clarification on how to correctly interpret the
netAmountfield returned by the GitHub Copilot billing APIs, specifically to distinguish between costs already covered by our Copilot license and any additional charges that will be billed separately.Context
We have built an automated data pipeline that extracts GitHub Copilot usage and billing metrics from the following three API endpoints:
Organization Billing Usage
GET {API_BASE_URL}/organizations/{org}/settings/billing/usageUsed to retrieve the overall billing usage for the organization, including GitHub Actions, Packages, Storage, and other metered services.
AI Credit Usage
GET {API_BASE_URL}/organizations/{org}/settings/billing/ai_credit/usageUsed to retrieve AI-related consumption (e.g., Copilot completions, Copilot Chat interactions).
Copilot Billing Seats
GET {API_BASE_URL}/orgs/{org}/copilot/billing/seatsUsed to retrieve the number of assigned Copilot seats and their billing status.
The extracted data is loaded into Azure Blob Storage and visualized through a Power BI report, which we use internally to monitor GitHub Copilot adoption and costs across the organization.
Issue
All three endpoints return a
netAmountfield (or equivalent monetary values). However, we are unable to determine with certainty:netAmountis already included in our GitHub Copilot license (i.e., covered by the per-seat subscription fee and therefore not billed additionally).netAmountrepresents actual additional charges that will appear as extra line items on our invoice (e.g., overages, premium model usage, or consumption beyond the license entitlement).This distinction is critical for us to accurately report:
Questions
Does the
netAmountreturned by/organizations/{org}/settings/billing/ai_credit/usagerepresent only the additional charges beyond the license, or does it include the full consumption value (including the license-covered portion)?Does the
netAmountreturned by/organizations/{org}/settings/billing/usagealready include AI/Copilot usage, or are the two endpoints fully separate in scope?Is there a field or a separate endpoint we should use to isolate license-included costs versus billable overages?
How should the
netAmountvalues from all three endpoints be combined or reconciled to obtain the true total cost without double-counting in our Power BI report?Could you point us to any official documentation or billing schema that describes the cost model for GitHub Copilot (Business/Enterprise), specifically around which AI usage is metered beyond the seat license?
Thank you in advance for your support.
Best regards,
Infrastructure & Data Engineering Team
Beta Was this translation helpful? Give feedback.
All reactions