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.
| Control | Applies to | What the site describes | Kind |
|---|---|---|---|
| Project budget cap | Project | Optional budget limit with a maximum budget and a reset duration | Cap |
| Key budget | User API key | Maximum spend in USD, reset never, daily, weekly or monthly; blank means unlimited | Cap |
| Credit limit | Service Account Key | credit_limit with a daily, weekly or monthly reset_budget_interval, or unlimited | Cap |
| TPM and RPM | Project and key | Tokens per minute and requests per minute; key values stay within the project caps | Rate limit |
| Daily Spend and Monthly Spend alerts | Selected projects, API keys and models | A required Critical threshold and an optional Warning threshold that notify by email, to owners or project members, or to Slack, Flock or a custom webhook | Notification only |
| Request tags | Individual request | Dashboard filter and activity-log metadata for usage reports | Attribution 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Plan | Projects | API keys per project | Alert rules |
|---|---|---|---|
| Starter | 2 | 3 | Not included |
| Pro | 10 | 20 | Up to 10 |
| Business | 50 | 100 | Up to 50 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Sources
Where the statements about FastRouter on this page come from.