Code of Conduct
What article on docs.github.com is affected?
|
Each request for an {% data variables.product.prodname_ai_credit_singular %}-consuming feature goes through these checks: |
|
|
|
1. **User-level budget check.** The system first checks whether the user has exceeded their user-level budget. If yes, the request is blocked immediately—user-level budgets are always a hard stop. If no (or no ULB is set), the request continues. |
|
1. **Shared pool check.** Next, the system checks whether the shared pool has {% data variables.product.prodname_ai_credits_short %} remaining. If yes, the request is served from the pool at no extra cost. If the pool is empty, the request moves to metered usage at {% data variables.product.prodname_ai_credits_value %} per {% data variables.product.prodname_ai_credit_singular %}. |
|
1. **Cost center or enterprise check.** For metered usage, the system checks whether the user is assigned to a cost center. |
|
|
|
* **If the user is in a cost center:** The cost center's budget is checked. If budget remains, the cost center pays. If the budget is exhausted, the system checks whether "Stop usage when budget limit is reached" is enabled. |
|
* **If the user is not in a cost center:** The enterprise spending limit is checked. If the limit has not been reached, the enterprise pays. If the limit has been reached, the system checks whether "Stop usage when budget limit is reached" is enabled. |
|
|
|
In both cases, if "Stop usage when budget limit is reached" is on, the user is blocked. If it is off, charges continue to accrue without a cap. |
|
|
|
> [!IMPORTANT] |
|
> "Stop usage when budget limit is reached" applies to enterprise spending limits and cost center budgets only, and is off by default. Without it, charges continue to accrue past the limit. Always enable it when creating a spending limit. User-level budgets always enforce a hard stop and do not have this setting. |
What part(s) of the article would you like to see updated?
How billing flows through budgets
Currently the enterprise & cost center budget are covered in a single step, but this is not the complete picture.
There can be an org level budget as well and orgs can be liked to cost centers? How does this flow work?
Plus there can be a top level enterprise budget that trumps all other budgets. Ho wdoes this flow work?
Plus there can be cost-center budgets that aren't constrained by the top level enterprise budget.
This picture is far from complete and oversimplifies how budget is applied.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
docs/content/copilot/concepts/billing/budgets-for-usage-based-billing.md
Lines 60 to 72 in 6b06504
What part(s) of the article would you like to see updated?
How billing flows through budgets
Currently the enterprise & cost center budget are covered in a single step, but this is not the complete picture.
There can be an org level budget as well and orgs can be liked to cost centers? How does this flow work?
Plus there can be a top level enterprise budget that trumps all other budgets. Ho wdoes this flow work?
Plus there can be cost-center budgets that aren't constrained by the top level enterprise budget.
This picture is far from complete and oversimplifies how budget is applied.
Additional information
No response