Overview
Model limits let you enforce spending caps and rate limits keyed on a specific model (or all models), an optional provider, and a scope that determines who the limit applies to. They are the unified control plane for all model-level governance in Bifrost:- Global provider budgets — cap what OpenAI (or any provider) can spend across all traffic
- Virtual key top-level budgets — limit how much a specific virtual key can spend across all its providers
- Virtual key per-provider budgets — limit what a virtual key can spend on a single provider
- Per-model limits — enforce fine-grained caps on individual models for any of the above scopes
The
user scope is available in Bifrost Enterprise. Support for customer and team scopes is coming soon.Scope system
Every model limit has a scope that determines the audience it applies to.
Scope + model name combinations:
Configuration
- Web UI
- API
- config.json
Navigate to Budget & Limits → Model Limits in the Bifrost dashboard.

Table view
The table shows all configured model limits with their current usage. Use the toolbar to find what you need:- Search — filter by model name
- Scope dropdown — show only
globalorvirtual_keylimits - Provider dropdown — show only limits for a specific provider

Adding a model limit
Click Add Model Limit to open the configuration sheet.- Provider — select a specific provider or leave as All Providers
- Model Name — search and select a model, or pick All Models to cover every model for the chosen provider/scope
- Scope — choose
GlobalorVirtual Key - Scope Target — appears when scope is
Virtual Key; select the target virtual key - Budget — add one or more budget lines, each with a dollar cap and reset duration. Multiple budgets per limit are supported (e.g.
$50/day+$500/month). - Rate Limits — optionally set token and/or request limits with their own reset durations

Model name and scope are locked after creation. To change them, delete the limit and recreate it.
Examples
Global provider cap
Prevent OpenAI from exceeding $1,000/month regardless of which virtual key triggered the request:Virtual key top-level budget
Cap the total spend for a virtual key across all its providers:Virtual key per-provider budget
Let the staging VK use Anthropic up to $50/month independently of its OpenAI spend:Multi-budget daily + monthly cap
Protect against both runaway daily spikes and monthly overruns on a single model:How limits interact
When a request arrives, Bifrost checks every applicable model limit independently. All must pass:Next Steps
- Budget & Limits — Budgets at the virtual key, team, and customer hierarchy level
- Virtual Keys — Create and manage virtual keys with provider configs
- Routing — Automatic failover when a limit is exhausted

