Organization budgets
An organization budget requires a LiteLLM Enterprise license. Start a free 30-day trial or book a demo. See what Enterprise includes.
An organization budget caps what everything in the organization spends together. A request draws on it when its key carries the organization's organization_id, or when the key's team belongs to the organization, since a team's keys count toward the team's organization even when the key sets none. Project keys count too, because a project belongs to a team.
The organization cap is checked on top of each team's, project's, team member's and key's own budget. LiteLLM checks every budget a request falls under and rejects the request when any one of them is over its cap, so a team with budget left is still blocked once its organization runs out.
How it works
Team budgets inside an organization
A team's max_budget cannot be set higher than its organization's. /team/new and /team/update reject a higher value with a 400 error, Team max_budget (...) exceeds organization's max_budget (...). LiteLLM does not compare the sum of the teams' budgets with the organization's, so several teams can each be allowed the organization's full amount, and the organization cap is what limits their combined spend. Lowering the organization's budget later leaves team budgets that are now above it unchanged.
When the budget runs out
Once the organization's spend reaches max_budget, requests from every team and key in it fail with a budget_exceeded error that names Organization=<organization_id>. The status is 422 unless you set budget_exceeded_status_code; see Budget exceeded errors. If alerting is configured, LiteLLM also sends an organization budget alert when it rejects a request.
When to use it
Use an organization budget for a business unit, department or tenant that runs several teams and has one total it must stay within. Organization admins can manage the teams inside it, while the total stays with the proxy admin. A single group of people needs only a team budget. To cap one person, use a team member budget, since the per-person allowance on an organization membership is not enforced.
Set a budget
Only a proxy admin can create an organization, and any other caller gets a 401 error. Set max_budget (USD) and budget_duration when you create it, or pass budget_id to attach a shared budget you created with /budget/new. Without budget_duration the budget never resets.
- API
- Admin UI
curl -X POST 'http://0.0.0.0:4000/organization/new' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_alias": "research",
"max_budget": 1000,
"budget_duration": "1mo"
}'
Add a team to the organization by passing the organization_id from the response when you create the team:
curl -X POST 'http://0.0.0.0:4000/team/new' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{
"team_alias": "research-agents",
"organization_id": "<organization_id>",
"max_budget": 250
}'
Open Organizations in the left navigation and select + Create New Organization. In Create Organization, enter the Organization Name, set Max Budget (USD), and pick a Reset Budget period of daily, weekly or monthly, or No reset.
Check spend
GET /organization/info returns the organization's spend and its litellm_budget_table, which holds max_budget, budget_duration and budget_reset_at. Proxy admins, proxy admin viewers and admins of the organization can call it.
curl 'http://0.0.0.0:4000/organization/info?organization_id=<organization_id>' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY"
In the Admin UI, the Organizations table shows each organization's Spend (USD) and Budget (USD), and the Overview tab of an organization shows its Budget Status.
Change or remove a budget
Only a proxy admin can change the budget. An organization admin who calls /organization/update gets a 401 error from the route check. Send the new values to /organization/update, or "max_budget": null to remove the cap. The spend already counted stays and is checked against the new value.
curl -X PATCH 'http://0.0.0.0:4000/organization/update' \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "<organization_id>",
"max_budget": 1500
}'
An organization created with a budget_id keeps its limits on that shared budget row, so changing max_budget here changes it for everything else linked to the same row. To move the organization to another row instead, send the new budget_id to /organization/update Since v1.114.0.
In the Admin UI, open the organization, go to its Settings tab, select Edit Settings, update Max Budget (USD) or Reset Budget, and select Save Changes.
Default budget
Organizations have no default budget. One created without max_budget or budget_id has no organization cap, and its teams and keys are limited only by their own budgets. See Default budgets.
Budget features
Which budget features work on organization budgets. Each feature page lists every scope it supports.
| Feature | Supported | Details |
|---|---|---|
| Shared budgets | Yes | budget_id on /organization/new, or on /organization/update to move it to another row Since v1.114.0. |
| Default budgets | No | Set max_budget or budget_id on /organization/new. |
| Per-model budgets | No | Organization endpoints accept model_max_budget but do not enforce it. Set it on the organization's teams or keys. |
| Multiple budget windows | No | LiteLLM rejects budget_limits on an organization, and a budget_id whose budget row has windows. |
| Budget reset times and timezones | Yes | budget_duration on /organization/new or /organization/update. |
| Budget rollover, overage carry-over | Yes | Carries over at the organization budget's reset. |
| Budget rollover, unused budget carry-over | No | /organization/new accepts rollover_max_budget but it has no effect on organization spend. |
| Soft budgets and budget alerts | Yes | Set max_budget on /organization/new or /organization/update. Slack and webhook alert only when a request is rejected over it. A soft_budget on an organization is stored but sends nothing. |
| Team soft budget alerts | No | An organization's soft_budget sends no alert. |
| Budget exceeded errors | Yes | Budget has been exceeded! Organization=<organization_id> |
| Throttle over-budget keys | No | An organization over its budget rejects the request, even when the key itself is throttled. |
| Budget fallbacks | No | - |
| Temporary budget increase | No | /organization/new and /organization/update accept the two fields but the organization budget check ignores them. Change max_budget instead |
| Budget reservation | Yes | Holds against the organization's max_budget. |
| Fail-closed budget enforcement | Yes | general_settings.fail_closed_budget_enforcement: true. |
| Free models and budgets | Yes | The organization's max_budget is not checked. |
| Self-serve budget changes | No | - |
Limits
An organization cap limits total spend only. LiteLLM accepts model_max_budget on an organization but does not enforce it, so set per-model budgets on the organization's teams or keys instead. A soft_budget on an organization is stored but sends no alert; see Soft budgets and budget alerts. A per-person allowance set with max_budget_in_organization on /organization/member_update is tracked but never blocks requests, so use team member budgets to cap one person.
Related
Multi-tenant architecture explains how organizations, teams and keys nest, Projects covers project budgets inside a team, and Budget precedence lists which caps apply to each kind of request.