← Blog

Monitor LLM API Usage Across Teams: A Practical Guide

2026-11-15 · 5 min read · SubToAPI Team

Monitor LLM API Usage Across Teams: A Practical Guide

If multiple teams, environments, or products share the same LLM provider account, you need a way to see who is calling the API, how much they're spending, and whether any single integration is misbehaving — without asking everyone to paste usage numbers into a spreadsheet. The direct answer: give every team, service, or environment its own API key, track usage per key, and roll that data up into a dashboard with cost and token breakdowns, then set alerts on spend or rate-limit thresholds.

This sounds simple, but most LLM providers don't make it easy. Anthropic's native Claude console gives you account-level usage, not per-team visibility, unless you build that layer yourself. Below is a practical breakdown of how to actually implement usage monitoring across teams, what metrics matter, and where off-the-shelf tooling saves you the engineering time.

Why Shared API Keys Break Monitoring

The most common failure mode is a single shared API key used across every service, script, and team. It works fine until:

None of this is fixable after the fact if every request looks identical in the logs. The fix starts upstream: issue separate keys per team or per environment, not per developer necessarily, but per logical consumer of the API.

What to Track Per Team

A usable monitoring setup needs more than a total request count. At minimum, track per key or per team:

Tracking these per key, rather than in aggregate, is what turns "we spent €4,000 last month" into "the recommendations team spent €2,800 on a model they could downgrade."

Building It Yourself vs. Using a Layer That Already Has It

You can build this with a logging proxy in front of your LLM calls: every request passes through a small service that logs team ID, token counts, latency, and cost, writes to a database, and exposes a dashboard. This is a reasonable weekend project and plenty of teams do it. The ongoing cost is maintenance — provider pricing changes, new models need new cost tables, and you're on call for your own monitoring infrastructure.

The alternative is using an API layer that already separates usage by key. SubToAPI turns your Claude access into an HTTPS API where each team or product gets its own sub_live_... key, and usage — requests, tokens, and cost — is tracked per key automatically in one dashboard. For teams that just need visibility without owning another internal service, this removes the build-it-yourself step entirely.

A minimal setup looks like this: create one key per team through the dashboard, have each team wire it into their app, and read usage from the same place regardless of which team or project it came from.

curl https://api.subtoapi.app/v1/messages \
  -H "Authorization: Bearer $SUBTOAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Summarize this ticket."}]
  }'

Every response includes usage metadata, so if you want to pipe cost data into your own internal reporting (Slack digest, spreadsheet, BI tool), you don't need to build a separate metering layer — you just read what's already there. See /docs/messages for the full response shape.

Setting Up Team-Level Alerts

Visibility is only useful if it triggers action. A few alert thresholds worth setting regardless of which monitoring approach you use:

If you're building alerts yourself, a cron job that queries daily totals per key and compares against a stored baseline covers most of this without needing a full observability platform.

Giving Teams Self-Service Visibility

Centralized monitoring (one dashboard, admin-only) solves the "who's spending what" question but doesn't help individual teams self-correct. Where possible, give each team read access to their own usage — even just their own key's dashboard view — so they catch problems before finance does. SubToAPI's dashboard works this way: team and Scale plan seats can see usage scoped to their own keys without needing admin access to everyone else's data. Check /pricing for how seats are structured across Solo, Team, and Scale plans.

Getting Started

If you're setting this up from scratch:

  1. Stop sharing one API key across teams — issue one key per team or environment
  2. Decide what "cost" means for your org (per-request, per-user, per-feature) and tag usage accordingly
  3. Set up a dashboard or query that breaks down requests, tokens, and cost by key
  4. Add alerts for daily spend and error rate thresholds
  5. Give teams visibility into their own usage, not just central ops

If you'd rather not build steps 1–3 yourself, /docs/quickstart walks through getting API keys issued and your first request running in a few minutes, with usage tracking already in place.

questions

Do I need separate API keys for each team, or can I use tags on a single key? Separate keys are more reliable. Tags depend on every caller consistently setting them, which breaks the first time someone forgets. A key tied to a team is enforced at the request level and can't be mislabeled.

How do I attribute token cost to specific features, not just teams? Use the request metadata (model, token counts) from each response and join it against your own logging of which feature or endpoint triggered the call. The provider side gives you tokens and cost; the feature attribution has to come from your own request context.

What's the fastest way to monitor usage without building a custom dashboard? Use an API layer that already separates usage per key, like SubToAPI, and view totals in its dashboard. This gets you per-team visibility without writing and maintaining your own metering service.

Turn your Claude access into an HTTPS API

SubToAPI gives you application API keys, streaming, tool use and usage insights on top of your existing Claude access — set up in minutes.

Start free  Read the quickstart →