---
title: "Internal user budgets"
url: "/docs/proxy/internal_user_budgets"
canonical_url: "https://docs.litellm.ai/docs/proxy/internal_user_budgets"
type: "docs"
last_updated: "2026-12-02"
summary: "Cap what one internal user spends outside a team with a personal max_budget, and give every new user a default budget automatically."
related:
  - "/docs/proxy/key_budgets"
  - "/docs/proxy/tag_budgets"
---
# Internal user budgets

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


An internal user budget is one person's personal cap, set with `max_budget` on the user. It covers the requests the user makes outside a team: every key they own that has no team, and Claude Code SSO sessions and JWT requests that act for no team. A team-scoped request skips it unless `general_settings.apply_user_budget_to_team_keys` is `true`, and inside a team the [team member budget](./team_member_budgets.md) caps the person instead.

The personal cap is checked together with the key's own budget, the organization's if the key names one, and the [whole proxy budget](./proxy_budget.md). LiteLLM checks every budget a request falls under and rejects the request when any one of them is over its cap.

## How it works

A person can hold a budget in more than one place, and the three that are easy to mix up cap different things.

| Budget | Caps | Applies to | Set with |
| --- | --- | --- | --- |
| Internal user | One internal user | Their keys and sessions with no team, and team keys only with `apply_user_budget_to_team_keys` | `max_budget` on `/user/new` or `/user/update` |
| [Team member](./team_member_budgets.md) | One internal user inside one team | Requests made with that team's keys | `team_member_budget` on the team, or `max_budget_in_team` for one member |
| [Customer](./customers.md) | One end user of your application, never an internal user | Requests that name the customer in the `user` field or a customer header, across every key | Customer Management, or `/customer/new` for [legacy end users](./legacy_end_users.md) |

The user's `spend` counts every key they own, team keys included, even when the personal cap is not checked for them. A user with a $100 personal budget who spends $150 through team keys is therefore blocked on their personal keys until the budget resets or you raise it.

### Personal budgets on team keys

By default a team-scoped key is governed by the key, team and team member budgets, and the owner's personal cap is skipped. Set `apply_user_budget_to_team_keys` to enforce the personal `max_budget` on team keys and team sessions as well.

```yaml
general_settings:
  apply_user_budget_to_team_keys: true
```

A [service account key](./multi_tenant_architecture.md#service-accounts) has no user owner, so no personal cap applies to it either way. See [Personal budgets on team requests](./access_management/inheritance.md#apply-user-budget-to-team-keys).

## When to use it

Use a personal budget to give each person an allowance for their own keys, such as experiments outside any team, or to cap people who sign in through SSO and use the proxy without joining a team. With `apply_user_budget_to_team_keys` on, it becomes one cap across everything a person does, in every team. To cap a person's share of one team's budget, use a [team member budget](./team_member_budgets.md). To cap the people or accounts your application serves, use a [customer budget](./customers.md), which never limits the employee who authenticates to the proxy.

## Set a budget

### API

Set `max_budget` on `/user/new` or `/user/update`. Without it, and without a [default budget](#default-budget), the user has no personal cap. Add `budget_duration` to reset the user's spend on a schedule; without it the budget never resets.

```shell
curl -X POST 'http://0.0.0.0:4000/user/new' \
  -H "Authorization: Bearer $LITELLM_MASTER_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"user_id": "alice", "models": ["gpt-6-luna"], "max_budget": 10, "budget_duration": "30d"}'
```

[**See the API reference**](https://docs.litellm.ai/api-reference/#tag/Internal~20User~20management/new_user_user_new_post)

The response includes a key for the user:

```json
{
  "key": "sk-YF2OxDbrgd1y2KgwxmEA2w",
  "expires": null,
  "user_id": "alice",
  "max_budget": 10.0
}
```

Once the user's spend reaches `max_budget`, requests fail with a `budget_exceeded` error, `ExceededBudget: User=alice over budget.`, followed by the spend and the budget. See [Budget exceeded errors](./budget_exceeded_errors.md).

### Create new keys for an existing user

Call `/key/generate` with the user's `user_id`. As long as the key has no team, the user's budget is checked for it, and spend on it also updates the user's spend.

```shell
curl -X POST 'http://0.0.0.0:4000/key/generate' \
  -H "Authorization: Bearer $LITELLM_MASTER_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"user_id": "alice", "models": ["gpt-6-luna"]}'
```

### Admin UI

Open **Internal Users**, select the user, and on the **Details** tab select **Edit Settings**. Set **Max Budget (USD)**, pick a **Reset Budget** period, and select **Save Changes**.

### Cap individual models

`model_max_budget` on `/user/new` or `/user/update` caps what the user spends on each model. It applies across every key the user owns, team keys included. See [Per-model budgets](./per_model_budgets.md#internal-user-model-specific).

## Check spend

`GET /user/info` returns the user's current `spend`, `max_budget`, `budget_duration` and `budget_reset_at` under `user_info`. A user can read their own record, and proxy admins and proxy admin viewers can read anyone's.

```shell
curl 'http://0.0.0.0:4000/user/info?user_id=alice' \
  -H "Authorization: Bearer $LITELLM_MASTER_KEY"
```

In the Admin UI, the **Internal Users** table shows each user's **Spend (USD)** and **Budget (USD)**, and the user's **Overview** tab shows spend against the budget.

## Change or remove a budget

Only a proxy admin can change an existing user's budget, and a user who sends budget fields for their own record gets a `403` error. Send a new `max_budget` or `budget_duration` to `/user/update`, or to `/user/bulk_update` for many users at once. Send `"max_budget": null` to remove the cap, and `"budget_duration": null` to stop resets. The spend already counted stays and is checked against the new value. In the Admin UI, edit the user as above and tick **Unlimited Budget** to remove the cap.

A `/user/update` or `/user/bulk_update` that sets `user_role: internal_user` without `max_budget` or `budget_duration` resets them to `max_internal_user_budget` and `internal_user_budget_duration`, even when the user already had that role. Include the budget fields in such a request to keep the user's current budget.

## Default budget

`litellm_settings.max_internal_user_budget` and `internal_user_budget_duration` give new internal users a personal budget when the request that creates them sets none, and `default_internal_user_params` can set the same fields. Which one applies depends on how the user is created, through `/user/new`, SSO sign-in, SCIM or JWT `user_id_upsert`, so see [Default budgets](./default_budgets.md#internal-users) for each path. Defaults are copied onto the user at creation, so changing one later leaves existing users alone. For different allowances per group without SCIM, see [Tiered SSO budgets](./identity_provisioning.md#tiered-sso-budgets).

### Example: a default budget for every new user {#set-default-budget-for-all-internal-users}

This gives a personal budget to every account created with [`user_role="internal_user"`](./self_serve.md#available-roles) that does not set its own `max_budget`. A $0 default makes the effect easy to see.

1. Define the default budget in `config.yaml`.

```yaml
model_list:
  - model_name: "gpt-6-luna"
    litellm_params:
      model: "gpt-6-luna"
      api_key: os.environ/OPENAI_API_KEY

litellm_settings:
  max_internal_user_budget: 0 # amount in USD
  internal_user_budget_duration: "1mo" # reset every month
```

2. Create an internal user without a `max_budget`. The response includes a key for that user.

```bash
curl -X POST 'http://0.0.0.0:4000/user/new' \
  -H "Authorization: Bearer $LITELLM_MASTER_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"user_role": "internal_user"}'
```

3. Send a request with the returned key.

```bash
curl -X POST 'http://0.0.0.0:4000/chat/completions' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <key-from-step-2>' \
  -d '{
    "model": "gpt-6-luna",
    "messages": [{"role": "user", "content": "Hey, how'"'"'s it going?"}]
  }'
```

Expected response:

```json
{
  "error": {
    "message": "ExceededBudget: User=<user_id> over budget. Spend=0.0, Budget=0.0",
    "type": "budget_exceeded",
    "param": null,
    "code": "422"
  }
}
```

## Budget features

Which budget features work on internal user budgets. Each feature page lists every scope it supports.

| Feature | Supported | Details |
| --- | --- | --- |
| [Shared budgets](./shared_budgets.md) | No | Users keep `max_budget` and `budget_duration` on the user record. |
| [Default budgets](./default_budgets.md) | Yes | `max_internal_user_budget`, `internal_user_budget_duration` and `default_internal_user_params`, depending on how the user is created. |
| [Per-model budgets](./per_model_budgets.md) | Yes | `model_max_budget` on `/user/new` or `/user/update`. Applies across every key the user owns, team keys included. |
| [Multiple budget windows](./budget_windows.md) | Yes | `budget_limits` on `/user/new`, `/user/update` or `/user/bulk_update` (since LiteLLM v1.111.0). Checked only where the user's personal budget applies. |
| [Budget reset times and timezones](./budget_reset_and_tz.md) | Yes | `budget_duration` on `/user/new` or `/user/update`, `litellm_settings.internal_user_budget_duration`, and each window in its `budget_limits`. |
| [Budget rollover](./budget_rollover.md), overage carry-over | Yes | Carries over for the personal budget, measured against the base budget plus any credit, and for each `budget_limits` window. |
| [Budget rollover](./budget_rollover.md), unused budget carry-over | Yes | `rollover_max_budget` on `/user/new`, `/user/update` or `/user/bulk_update`, or **Rollover Cap (USD)** in the user's edit form. |
| [Soft budgets and budget alerts](./budget_alerts.md) | Yes | Set `max_budget` on `/user/new` or `/user/update`. Slack and webhook alerts at 15% and 5% left and when crossed, on requests that the personal budget applies to. No soft budget or email. |
| [Team soft budget alerts](./ui_team_soft_budget_alerts.md) | No | Users have no soft budget. |
| [Budget exceeded errors](./budget_exceeded_errors.md) | Yes | `ExceededBudget: User=<user_id> over budget.`, or `over 1d budget.` for a `budget_limits` window |
| [Throttle over-budget keys](./budget_throttling.md) | No | A user over their personal budget is rejected. |
| [Budget fallbacks](./budget_fallbacks.md) | No | A user's per-model caps always reject. `/user/new` copies `budget_fallbacks` onto the key it creates, where it acts on that key's caps. |
| [Temporary budget increase](./temporary_budget_increase.md) | No | Change the user's `max_budget` with `/user/update` |
| [Budget reservation](./budget_reservation.md) | Yes | Holds against the personal `max_budget` and each `budget_limits` window, on requests the personal budget covers. |
| [Fail-closed budget enforcement](./fail_closed_budgets.md) | Yes | `general_settings.fail_closed_budget_enforcement: true`. Covers `max_budget` and `budget_limits` windows. |
| [Free models and budgets](./free_model_budgets.md) | Yes | The personal `max_budget`, `budget_limits` windows and `model_max_budget` are not checked. |
| [Self-serve budget changes](./self_serve_budgets.md) | No | `/user/update` returns 403 when a non-admin changes budget fields on their own user |

## Limits

A personal budget never applies to a service account key or to a customer ID sent with a request, since neither is an internal user. It does not cap team-scoped requests unless `apply_user_budget_to_team_keys` is on, even though their spend counts toward it.

## Related

[Team member budgets](./team_member_budgets.md) cap a person inside one team, [Default budgets](./default_budgets.md) covers every default, and [Budget precedence](./access_management/inheritance.md#budgets) lists which caps apply to each kind of request.

## Related pages

- [Virtual keys](https://docs.litellm.ai/docs/proxy/key_budgets.md)
- [Tags](https://docs.litellm.ai/docs/proxy/tag_budgets.md)
