Per-user token budgets for LLMs: how to set them and what to watch
A token budget caps how many tokens each person can use per day or month. How to size budgets, what happens at the limit, where to enforce them.
A per-user token budget caps how many tokens each person can use in a day or a month. It's the simplest way to keep AI spend predictable when many people share the same models, and it protects capacity on your own GPUs. Budgets are enforced in a gateway that gives each person their own key, so the limit applies whichever model or provider serves the request.
Updated 3 December 2026.
Why tokens, not requests
You pay for tokens, not requests. One request with a long document and a long answer can cost as much as hundreds of short ones. Requests-per-minute limits stop runaway loops; token budgets control cost. Use both. More on the first in LLM rate limiting.
Daily or monthly?
| Budget | Good for | Watch out for |
|---|---|---|
| Daily | Smoothing usage, protecting shared GPUs, catching runaway use the same day | Heavy one-off tasks hit the cap |
| Monthly | Matching invoices and team budgets | One bad day can use the month |
| Both | A daily guard rail inside a monthly envelope | Two numbers to explain |
We'd start with both.
How to size a budget
Start from data, not guesses:
- Run a week without hard limits, but track tokens per person.
- Look at the distribution. Most people will cluster; a few will be far above.
- Set the daily budget a bit above what a typical heavy user needs on a normal day.
- Set the monthly budget from your actual spend target, divided by people, with headroom.
- Give exceptions explicitly. People who process large documents get a bigger budget or access to a cheaper model, not an unlimited key.
For cost per token and a worked example, see LLM cost tracking per user.
What should happen at the limit
The person's app should get a clear error, not a mystery failure. AI Gateway by LayerX, for example, returns 429 budget_exceeded with the amount used and an x-budget-reset header saying when the budget resets (product page). Vercel AI Gateway returns HTTP 402 once a budget is exceeded (Vercel docs).
If a provider rate-limits you while people still have budget left, a gateway can move the request elsewhere (LLM failover). Decide in advance how people get more: a request to an admin, a temporary increase, or a cheaper model they can keep using. LiteLLM Enterprise, for instance, has temporary budget increases and soft budget email alerts (LiteLLM).
Budgets per person or per team?
| Scope | Pros | Cons |
|---|---|---|
| Per person | Fair, easy to explain, catches individual runaway use | More numbers to manage |
| Per team | Matches how finance thinks | One person can use the whole team's budget |
| Per app or key | Good for services and pipelines | Doesn't stop a person using several keys |
Kong AI Gateway sets token budgets per consumer group (Kong); LiteLLM per key, user and team; AI Gateway by LayerX per person, with requests-per-minute limits per key.
Budgets on your own GPUs
Self-hosted models don't send you an invoice, but they have a capacity limit. Token budgets stop one person from monopolising a shared vLLM or Ollama server. In AI Gateway, the same budget counts usage whether a request was served by your GPUs or by a vendor.
Questions
What is a token budget?
A cap on how many tokens a person, team or key can use in a period, usually a day or a month. Requests over the cap are rejected until it resets.
Do OpenAI or Anthropic support budgets per employee?
Provider limits apply to accounts or projects. To cap each person, give everyone their own key from a gateway and set budgets there.
Should budgets be in tokens or dollars?
Tokens are simpler to enforce at request time; dollars match finance reports. Many gateways track both: limit in tokens, report in dollars.
What happens to a long streaming answer when the budget runs out?
That depends on the gateway. Ask whether it checks the budget only before a request starts or also while it streams, so you know how far over a budget a long answer can go.