Project limits
Project settings can define:- requests per minute
- monthly budget in US dollars
null value means no limit is configured for that field.
Key limits
Individual Relay keys can set their own requests-per-minute limit and monthly budget. Key settings can also override project routing configuration. Use key limits to isolate applications, environments, or teams that share a project. A stricter key limit should reduce exposure without changing unrelated keys.Workload-specific budgets
Some Relay operations have separate spend controls:- shadow comparison has a monthly budget and sample rate
- quality evaluations can stop with
budget_exceeded - custom-router training accepts a per-run budget
- plan quotas limit custom routers and route evaluations
Operating practice
- Establish a measured baseline in Observe or with a low-volume gateway key.
- Set project limits for the whole workload.
- Add stricter key limits where applications have different risk.
- Assign explicit budgets to shadow, evaluations, and training.
- Monitor monthly spend and requests in Relay Usage.
- Test the behavior at each limit before relying on it in production.
A budget is an enforcement control, not a forecasting model. Use reports to estimate the effect of a routing change before changing the budget.
Troubleshoot limit failures
Distinguish Relay limits, plan quotas, provider errors, and payment requirements.