Bridge by Wekoya / Guides / Which AI gateway lets you set a budget per user?
Which AI gateway lets you set a budget per user?
In short: Bridge by Wekoya gives each user of your app a naira budget (name them with the X-Bridge-End-User header), each API key a cap and each company member a monthly limit, all checked before a request runs. LiteLLM has budgets per key and team on servers you run; OpenRouter caps spending per key in dollars.
Updated · Other companies' prices checked , rechecked every 90 days
Spending limits compared
| Per user of your app | Per API key | Per staff member or team | Plan and currency | |
|---|---|---|---|---|
| Bridge by Wekoya | Yes: a naira budget per user, named on each request | Yes: a naira cap, and an expiry date | Yes: a monthly limit per company member | Every account; naira |
| LiteLLM | Spend tracked per user; budgets documented per key and team | Yes | Yes, per team | Self-hosted; its home page lists budgets as free, its enterprise page lists them too; US dollars |
| OpenRouter | Not found in its docs | Yes: a spending limit, reset daily, weekly or monthly, set with a management key | Not found in its docs | Every account; US dollars |
| Portkey (now Prisma AIRS AI Gateway) | No: limits are per provider integration and workspace | Per provider integration | Per workspace | Enterprise and select Pro customers; US dollars or tokens |
| Helicone | A cost limit per user per time window (for example $5 an hour), not a total budget | Not found in its docs | Not found in its docs | Plan not stated; US dollars |
From LiteLLM's home page, enterprise page and docs on virtual keys and team budgets; OpenRouter's API key docs; Portkey's budget limits; and Helicone's custom rate limits. Checked on 3 December 2026.
Three different limits
- A budget per user of your app stops one customer from running up your bill. It needs the gateway to know which of your users made each request.
- A cap per API key stops a script, a contractor or a leaked key. It is the easiest limit to set and the one most gateways have.
- A limit per staff member keeps a team inside a monthly amount when everyone shares one account.
A budget for each user, on Bridge
reply = client.chat.completions.create(
model="gpt-6-luna",
messages=[{"role": "user", "content": question}],
extra_headers={"X-Bridge-End-User": user.id},
)Create each user first, or turn on auto-create in the console. When a user's budget is spent, their next request gets a 402 end_user_budget_exhausted and is not charged; other users carry on. For a browser or phone app, your server makes a short-lived guest key that stops at its own max_spend. Details: your users' budgets, browser and mobile apps and companies.
Checked before, or counted after?
A limit only protects you if it is checked before the request runs. On Bridge, key caps, member limits and user budgets are all checked first, so a runaway loop is refused, not billed. When you compare gateways, ask whether a limit blocks the next request or only reports what was already spent.
Common questions
Which AI gateway lets me set a budget per user?
Bridge by Wekoya: send the X-Bridge-End-User header with each request and each of your users gets their own naira budget, checked before every request. Helicone limits cost per user per time window; LiteLLM documents budgets per key and team (checked 3 December 2026).
How do I stop one user from running up my OpenAI bill?
Route your requests through a gateway that meters each user. On Bridge, which works with the OpenAI SDK, name the user with the X-Bridge-End-User header and give them a budget; their requests stop at it with a 402 while everyone else carries on.
Can I cap an API key's spending?
Yes on Bridge, in naira, with an optional expiry date; the cap is checked before each request. OpenRouter also lets you set a spending limit per key, in US dollars.
Is LiteLLM's budgeting free?
LiteLLM's home page lists virtual keys, budgets and teams in its free, self-hosted plan, and its enterprise page also lists budgets among what Enterprise adds (checked 3 December 2026). Either way you run the server and database yourself.