AI API costs are uniquely dangerous compared to other cloud spend. A misconfigured S3 bucket costs you bandwidth. A misconfigured LLM loop can cost you thousands of dollars in a single afternoon. The token meter runs fast, and most teams don't find out until the invoice lands.
The fix isn't complicated, but it requires putting the right controls in place before you hand out API access — not after the first surprise bill.
Why shared API keys are the root cause
Most teams start with a single API key shared across the whole team. It's the path of least resistance: one key in a .env file, everyone uses it, done.
The problem is that a shared key gives you no visibility into who is consuming what. When the bill arrives, you can see the total — but not which engineer, which experiment, or which runaway script caused it. You can't enforce limits per person because the API provider sees one key, not ten users.
The moment you have more than two or three people using AI APIs, you need per-user keys or a proxy layer that enforces per-user quotas. There's no middle ground.
How token quotas work
A token quota system sits between your users and the AI provider. Every API call is routed through it. The system:
- Identifies which user is making the call
- Checks their remaining quota for the current period
- Forwards the call if quota is available, rejects it if not
- Deducts the tokens used from their balance after the response
- Resets balances on a schedule (typically monthly)
The quota is set in tokens — the unit AI providers use for billing. One token is roughly 4 characters of text. A typical GPT-4 call with a medium-length prompt and response uses 500–2,000 tokens. A monthly quota of 1 million tokens gives a developer roughly 500–2,000 meaningful interactions per month — enough for heavy use, not enough to accidentally spend $500 in a day.
Tiers that actually make sense
Not everyone on your team needs the same quota. A useful starting point:
- Explorers (free tier): 100k tokens/month. Enough to evaluate the platform and run small experiments. No credit card required.
- Builders (pro tier): 1M–5M tokens/month. Enough for active development, prompt engineering, and moderate RAG usage.
- Power users (enterprise): Unlimited or very high caps. For production workloads, automated pipelines, and batch processing.
The key insight is that most of your team will never hit the pro tier limit. The quota exists to catch accidents and abuse, not to restrict normal usage.
Real-time tracking is non-negotiable
Quotas without visibility are only half the solution. Users need to see their current consumption so they can self-regulate. Admins need to see org-wide consumption so they can spot anomalies before they become invoices.
The dashboard you need shows:
- Tokens used this period vs. quota, per user
- Usage by model (GPT-4 costs 10x more than GPT-3.5 — this matters)
- Usage by day, so you can spot a spike the day it happens
- Which labs or projects are consuming the most
The $12k bill that prompted one of our customers to switch happened on a Tuesday. Their shared key had no limits, no monitoring, and no alerts. A batch job ran overnight and nobody noticed until the weekly finance review.
Bring your own key — and keep control of it
One underappreciated approach is letting teams use their own provider keys while still enforcing quotas at the platform level. This means:
- The API key belongs to the organisation, not the platform vendor
- You can switch providers without migrating credentials
- You can set different keys per team or per project
- If a key is compromised, you rotate it in one place
This is the BYOM (bring your own model) pattern — and it's the right default for any team that takes security seriously.
What to put in place today
If you're running a team on shared AI API access right now, here's the minimum viable control set:
- Rotate the shared key and issue per-user keys or a proxy with per-user auth
- Set a monthly token budget per user — start conservative, increase on request
- Set up a billing alert at 80% of your expected monthly spend
- Review usage weekly for the first month until you understand your team's patterns
Lab Maneuver handles all of this out of the box — per-user token quotas, real-time usage dashboards, monthly resets, and BYOM support. You connect your provider keys, set the quotas, and the platform enforces them automatically.
Still running on a shared API key?
Set up per-user cost controls for your team in under an hour. No surprise bills, ever.
Get Started Free →Related posts