Guide

How do you set per-team and per-project LLM budgets?

You set per-team and per-project LLM budgets by giving each team or project its own scope at a gateway, attaching a spending cap and rate limits to that scope, and alerting before the cap is reached. In FastRouter the scopes are projects and API keys: a project can carry an optional budget cap, and each key can carry a maximum spend that resets daily, weekly or monthly. Alerts on Daily Spend and Monthly Spend notify people, and request tags attribute cost inside a shared key.

Last updated

Key facts

  • A FastRouter project can have an optional budget cap, tokens-per-minute and requests-per-minute limits, and a list of accessible models.
  • Each API key can have a maximum spend with a daily, weekly or monthly reset, or be left unlimited.
  • Key-level TPM and RPM limits cannot exceed the project-level caps.
  • Spend alerts send notifications. The alerts pages do not describe them as blocking requests.
  • Pricing lists budget caps and rate limits on every plan, and provisioning and service-account keys on Business and Enterprise.

What is the general approach to per-team LLM budgets?

The general approach has four parts: send all LLM traffic through one control point, give each team or project its own scope there, attach a spending limit and rate limits to that scope, and add alerts that fire before the limit is reached. Labels on requests cover teams that share a credential.

  • One control point: a limit only works if the system that counts spend sees every request.
  • One scope per team: a project or key that belongs to a single team, product or environment.
  • Limits on the scope: a spending cap for the budget period, plus rate limits to contain bursts.
  • Early warning: alerts at a fraction of the budget, sent to people who can act.
  • Attribution: tags on requests, for cost reporting below the level of a key.

What is the difference between a budget cap and a spend alert?

A budget cap is a limit attached to an object such as a project or a key. A spend alert is a rule evaluated on a schedule that notifies people when a metric crosses a threshold. They are complementary, and an alert does not replace a cap.

FastRouter's pages describe budget caps on three objects: projects, user API keys and Service Account Keys. They do not describe a single organization-wide budget cap. The projects documentation describes the project Budget Limit as a toggle that enforces a spending cap, and the error-code reference lists a 402 Insufficient Credits error for an account or API key that has run out of credits. System alerts, which are on by default, fire when a project's or a key's remaining budget drops below 20, 10 and 5 percent. The documentation does not state which response an application receives when a project cap is reached, so confirm that in a test project before relying on it.

FastRouter spend controls, the object each applies to, and what kind of control it is
ControlApplies toWhat the site describesKind
Project budget capProjectOptional budget limit with a maximum budget and a reset durationCap
Key budgetUser API keyMaximum spend in USD, reset never, daily, weekly or monthly; blank means unlimitedCap
Credit limitService Account Keycredit_limit with a daily, weekly or monthly reset_budget_interval, or unlimitedCap
TPM and RPMProject and keyTokens per minute and requests per minute; key values stay within the project capsRate limit
Daily Spend and Monthly Spend alertsSelected projects, API keys and modelsA required Critical threshold and an optional Warning threshold that notify by email, to owners or project members, or to Slack, Flock or a custom webhookNotification only
Request tagsIndividual requestDashboard filter and activity-log metadata for usage reportsAttribution only

How do you set per-team budgets in FastRouter?

In FastRouter you create one project per team or workload, set the project's budget cap and rate limits, invite members with project roles, give each key its own tighter cap, and add spend alerts scoped to that project. Request tags then attribute cost to features or customers inside the project.

  1. Create a project for each team or workload. An Organization Owner creates the projects. Each project is independently configurable, with its own models, rate limits, budget, members and keys, so every team gets a separate boundary. See RBAC for the permissions matrix.
  2. Set the project's budget and rate limits. In the project's Basic Settings, select the accessible models, set Tokens Per Minute and Requests Per Minute, turn on Budget Limit, set the Maximum Budget and Reset Duration, and save. Organization Owners and Project Admins can edit project settings; Project Members cannot.
  3. Invite members with project roles. On the Members tab, invite organization members as Project Admin or Project Member. Project Members create and manage their own keys.
  4. Give each key its own cap. On each API key, set a maximum spend in USD and a reset of never, daily, weekly or monthly. Optionally restrict models, set TPM and RPM within the project caps, and schedule expiry. For automated workloads, Organization Owners can use a Provisioning Key to create Service Account Keys with a credit limit and budget reset interval over a REST API, on the Business and Enterprise plans.
  5. Add spend alerts for the project. Create an alert on Daily Spend or Monthly Spend, scope it to the team's project or keys, set a Critical threshold, which is required, optionally add a Warning threshold for early notice, and choose who is notified. Alert rules are included from the Pro plan.
  6. Tag requests for attribution. Add a request_tags array to chat completion requests to label them by feature, customer or environment. Tags appear as a dashboard filter and in activity-log metadata. They attribute usage and are not described as a way to cap it.
    curl --location 'https://api.fastrouter.ai/api/v1/chat/completions' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer API-KEY' \
    --data '{
        "model": "openai/gpt-4o-mini",
        "stream": false,
        "messages": [
            {
                "role": "user",
                "content": "What are some famous tourist attractions in London?"
            }
        ],
        "temperature": 0.0,
        "request_tags": ["UK/London", "Europe"]
    }'

Which FastRouter plans include budget controls?

The pricing page lists RBAC, budget caps and rate limits on all four plans, including the free Starter plan. Plans differ in how many projects and keys you can create, how many alert rules are included, and whether provisioning and service-account keys are available, which starts at the Business plan.

Budget-related limits by FastRouter plan
PlanProjectsAPI keys per projectAlert rules
Starter23Not included
Pro1020Up to 10
Business50100Up to 50
EnterpriseUnlimitedUnlimitedUnlimited
FAQ

Common questions

The documentation describes the project Budget Limit as a toggle that enforces a spending cap, and each key can carry a maximum spend. The error-code reference lists a 402 Insufficient Credits error for an account or API key that has run out of credits. It does not state which response an application receives when a project cap is reached, so confirm that in a test project.

The site describes budget caps on projects, user API keys and Service Account Keys. It does not describe a single organization-wide budget cap. For an organization-wide view, an alert on Daily Spend or Monthly Spend can be scoped to All Projects. That alert notifies people and is not described as blocking requests.

The alerts pages describe alerts as notifications. An alert is evaluated every 5, 15 or 30 minutes, hourly or daily, and when a threshold is breached it notifies by email, to organization owners or project members, or to Slack, Flock or a custom webhook. To limit spend, use a project budget cap or a key budget alongside the alert.

No. Dynamic tags let you attribute usage by team, feature, customer or environment with a request_tags array on each request, using a single key. Tags give reporting and filtering only. If a team needs its own spending cap or rate limits, give it its own project or key.

Try it on your own traffic

Point your existing OpenAI-compatible client at FastRouter and send a request. Free to start, no credit card required.