Guide

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?

BudgetGood forWatch out for
DailySmoothing usage, protecting shared GPUs, catching runaway use the same dayHeavy one-off tasks hit the cap
MonthlyMatching invoices and team budgetsOne bad day can use the month
BothA daily guard rail inside a monthly envelopeTwo numbers to explain

We'd start with both.

How to size a budget

Start from data, not guesses:

  1. Run a week without hard limits, but track tokens per person.
  2. Look at the distribution. Most people will cluster; a few will be far above.
  3. Set the daily budget a bit above what a typical heavy user needs on a normal day.
  4. Set the monthly budget from your actual spend target, divided by people, with headroom.
  5. 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?

ScopeProsCons
Per personFair, easy to explain, catches individual runaway useMore numbers to manage
Per teamMatches how finance thinksOne person can use the whole team's budget
Per app or keyGood for services and pipelinesDoesn'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.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?