How LiteLLM rate limit tiers manage many keys from one definition
LiteLLM rate limit tiers are budgets with limits such as rpm_limit, assigned to keys by budget_id, and the feature requires an Enterprise license. If your platform team issues hundreds of keys to internal teams, or runs a customer-facing API with free and paid plans, you are managing a policy rather than individual keys. Without tiers, every key carries its own copy of the limits, so changing the free plan's request ceiling means editing each free key by hand and hoping none were missed. A tier turns that policy into one named object that many keys reference.
Per-key limits are enough when you have a handful of keys with unrelated needs, or when each key genuinely differs. Tiers become the better model when keys cluster into a small number of plans, such as free, standard and paid, and when those plans change over time. The decision to confirm before you design around tiers is licensing: the feature sits in the Enterprise scope, so you should confirm with LiteLLM how it is licensed for your deployment, and check the LiteLLM rate limit tiers documentation for the current fields and behavior of your release. Open source deployments that rely on tiers should plan for that cost before the design is built around them.
Before you create tiers, decide how many you need, what each one limits, and who may change them. Keep the tier set small enough that a reviewer can explain each one in a sentence. Agree which limits belong in a tier (request and token ceilings, spend caps) and which stay per key, such as an individual model allowlist for a specific application. Test one tier end to end with two keys before rolling it out, so you can confirm that a limit change on the tier reaches both keys and that an existing key's usage is counted against the tier as you expect.
What a rate limit tier contains and what it controls
A rate limit tier is a reusable budget object that carries limits such as rpm_limit. Keys point to a tier by budget_id instead of holding their own copies of those limits, so the same definitions can cover many keys. The cards below cover what a tier holds, how it differs from key-level settings, and what to confirm before you rely on it.
Limit fields a tier carries
A tier is created as a budget and can carry limits such as rpm_limit, the requests-per-minute ceiling. The docs define the full field list, so confirm every field your tiers need against the rate limit tiers documentation before designing around it. Record the exact field names and units in your tier catalog so later edits are checked against the same definitions. Treat any field you cannot find in the docs as unsupported until your own test confirms it.
Key assignment by budget ID
Keys are attached to a tier through budget_id. A key assigned to a tier inherits that tier's limits, so changing the tier changes every key attached to it. Confirm how a key with both a direct limit and a tier assignment is resolved in your LiteLLM version, since the precedence decides which limit actually applies. Test this with two keys before you assign tiers at scale.
Tiers versus per-key limits
Limits set directly on a key are stored with that key, so each change means editing keys one at a time. A tier moves the definition into one shared object that many keys reference. Per-key limits still suit a single exception, such as one service account with a unique ceiling. Keep the decision rule written down so teams do not drift between the two methods across the key inventory.
Free and paid tier design
A free tier and a paid tier are two budget objects with different limits, and each customer or internal group gets a key that points to one of them. Moving a customer between tiers then means changing one budget_id value rather than rewriting limits. Define tier names, their limits and the owner of each tier before the first key is issued. The tier catalog is the document that auditors and product owners will read.
Enterprise license requirement
Rate limit tiers require an Enterprise license, so the feature belongs in the licensing review before the design is finished. Ask the vendor to confirm the license scope, edition terms and support entitlements in writing. Open-source LiteLLM keys still carry limits, but tier-based assignment is a separate capability that must be confirmed for your deployment. Include the license cost in the quote comparison, not only the engineering effort.
Change control for shared tiers
Editing a shared tier affects every key attached to it at once, so a bad limit change can throttle many users simultaneously. Put tier edits behind an approval step and keep the prior limits in version control. Test a proposed change on a staging gateway with a dedicated test key before applying it to production. Log who changed each tier and when, using the audit tooling your Enterprise setup provides.
Which tier design fits which key population
This table compares three ways to shape rate limit tiers: one tier per plan, one tier per internal team class, and per-key overrides on top of a shared tier. Read each row for when the option fits, what it simplifies, and what it makes harder to audit or change later. The main takeaway is that tiers stay easiest to govern when they map to a small number of populations and overrides are kept rare and recorded.
| Design | When it fits | What it simplifies | What gets harder to audit or change |
|---|---|---|---|
| One tier per plan (free, paid) | Customer-facing or internal API where access is sold or allocated by plan and few plans exist | Pricing and limits stay aligned; upgrading a customer means moving the key to a different budget_id | Plan changes ripple to every key on that tier; limits must be reviewed whenever a plan is renamed or repriced |
| One tier per internal team class | Internal platform where teams fall into a few classes such as production services, batch jobs and experiments | Onboarding a new team reuses an existing class; reviewers check a short list of budgets | Teams with unusual needs get pushed into a class that does not fit, which pressures teams toward overrides |
| Per-key overrides on a shared tier | A small number of keys need temporary or exceptional headroom beyond their tier | Keeps the tier catalog short while still handling one-off cases | Overrides accumulate silently; without a reason field, owner and expiry, nobody can explain why a key differs from its tier |
| Tier per individual key | Very few keys, each with a unique contract | Each key's limits are self-explanatory | Does not scale to large key counts; a change to a shared limit means editing many budgets by hand |
| Hybrid: plan or class tiers plus a reviewed override list | Large key populations with a few documented exceptions | Most keys are governed by a handful of tiers, and exceptions are visible in one list | Requires a process that reviews the override list on a schedule and removes expired exceptions |
How tier changes reach existing keys
The central decision is whether a change to a tier should reach every key on that tier at once, or whether keys should be reissued with new settings. Editing a shared tier is the lighter option: the budget object holds limits such as rpm_limit, and keys that point to it via budget_id inherit the change without touching the client. The cost is that a single edit affects every key on the tier, including keys whose owners did not expect a change, so the edit itself needs review and a record of who changed what. Reissuing keys gives per-key control but pushes work onto every consumer and makes a tier change slow to roll out across a large population. For most operators with many keys, the shared tier is the better default, and reissuing is reserved for exceptions such as a compromised key or a contract that needs its own terms.
Moving a key between tiers is a reassignment of its budget_id, not a new key. That lets operators promote a customer from a free tier to a paid tier, or demote one, without changing the key string the customer already uses. Before you rely on either pattern, test it on the LiteLLM version you run in production. Create a test tier, attach a test key, change the limit, and confirm with a request that the new limit applies to the existing key without a restart or reissue. Repeat the test after a reassignment, and again after each upgrade, because behavior that depends on caching or on how the proxy reads budget records can differ between releases. Confirm the current behavior in the LiteLLM rate limit tiers documentation and record the result in your change process.
How to set up tiers and assign them to keys
This sequence produces a set of reusable budget and rate limit tiers on a self-hosted LiteLLM gateway, with every key assigned to one tier by budget ID and a tested confirmation that each tier's limits are enforced.
Confirm the Enterprise license and database
Confirm that your gateway runs on an Enterprise license, since rate limit tiers require one, and that the proxy uses PostgreSQL as its database, because virtual keys and budgets need it. Check the license terms with your LiteLLM contact before work starts, and confirm the database connection in the proxy health output. Done means the proxy starts with the Enterprise license active and can read and write budget records in PostgreSQL.
Define the tier limits on paper
Decide the tiers your program needs, such as a free tier and a paid tier, and write down the limits for each, including rpm_limit and any other limits your design requires. Agree the list with the product owner and the security team, and record which model groups each tier can reach. Done means you have a signed-off table with one row per tier, so the budget objects you create in the next step match it exactly.
Create one budget object per tier
Create a budget for each tier through the proxy's management API or admin UI, setting the limits from your table, such as rpm_limit. Create the budgets once and do not copy them per key, so that a later change to a tier applies everywhere it is used. Done means each tier exists as a single budget record and you can retrieve each one and see the limits you set.
Record each budget ID
Note the budget_id returned for each tier and store the mapping from tier name to budget_id in your configuration repository or runbook. Treat this mapping as the source of truth for provisioning scripts, so that automation always references the same IDs. Done means every tier name maps to exactly one budget_id and a second person can read the mapping and reproduce it.
Assign keys to tiers by budget_id
Generate or update each virtual key with the budget_id of its tier, not with copied limit values. Assign a small pilot group of keys first, then the rest in batches, and record which tier each key belongs to. Done means a query of the keys shows each key carrying the budget_id you intended, and no key has limit values typed in directly.
Test limits with a sample key per tier
Pick one sample key from each tier and send requests above the tier's rpm_limit in a controlled test, using a non-production model. Check that requests beyond the limit are rejected and that requests within it succeed, and compare the behavior across tiers. Done means you have a short test record per tier showing the observed limit, the time of the test, and the key and budget_id tested.
Repeat the check after tier changes
Whenever you edit a tier budget or move keys between tiers, rerun the sample-key test for the affected tier and update the mapping record. Keep the test script in version control so the check is repeatable and can be handed to the operations team. Done means the most recent change has a matching test result, and the mapping and the live key assignments still agree.
How a request is checked against its key's tier
The diagram starts with a caller sending a request with its virtual key to the LiteLLM proxy. The proxy looks up the key's budget_id in PostgreSQL, where the tier is stored with its rpm_limit and budget limits, then checks the request against them. Redis holds shared counters when more than one proxy instance runs, so every instance enforces the same limit. The request is either allowed to reach the model provider or rejected. Confirm in your own environment that the counters behave as expected under load.
Request path from a caller's key through tier lookup to allow or reject.
Security and operations for tiered keys at scale
Tiers only protect your budgets if the people who define them are limited, the changes are recorded, and the master key and shared rate-limit state are handled as production secrets. The cards below cover those controls and the signals that show whether tiers are working.
Who may define and change tiers
Tiers are budgets that many keys depend on, so a change to one affects every assigned key at once. Decide in advance who can create a tier, edit its rpm_limit or budget values, and reassign keys to a different budget_id. Keep that role with a small platform group, separate from the teams that request keys. Confirm in your own test environment which admin roles can perform each action before you grant access.
Audit trail for tier changes
Audit logging is part of LiteLLM Enterprise, so the license and the audit requirement should be confirmed together. Ask your procurement or engineering contact whether tier creation, edits and key reassignments are captured in the audit log, and what fields each entry contains. Test a change in staging and confirm the entry shows the actor, the tier and the before and after values. Without this trail, a customer's tier change cannot be explained later.
Protecting the master key
LITELLM_MASTER_KEY has full administrative power over the proxy, including creating the keys and budgets that tiers depend on. Its value must begin with sk-, and it should live in a secret manager rather than in a configuration file or container image. Restrict which workloads and people can read it, and plan a rotation procedure that updates every deployment that uses it. Record who has accessed it, because an exposed master key can change every tier at once.
Shared Redis for rate limits
Rate limits are enforced per proxy instance unless the instances share state. Once more than one proxy instance runs, deploy Redis 7.0 or newer so that RPM counters and router state are consistent across pods. Confirm that the Redis deployment is highly available, that it is reachable only from the proxy network, and that its failure behavior is understood. A Redis outage that you have not rehearsed can turn a rate-limit problem into a service problem.
Monitoring over-limit rejections
Rejections caused by RPM or TPM limits are the first sign that a tier is too tight or that a key is misused. Build a dashboard and alert on rejection counts grouped by tier and by key, and review them against each tier's intent. Confirm which metrics your LiteLLM version exposes and where they are sent before you rely on them. A sudden rise in rejections for one paid key often points to a client retry loop rather than a real demand increase.
Reviewing tier assignments
Keys drift over time: customers upgrade, internal projects end, and service accounts outlive their owners. Schedule a periodic review that lists which keys sit on each tier, flags keys without a tier, and removes keys that no longer have an owner. Compare the assignment report with your billing or entitlement records so that paid tiers match what customers have bought. Document the review owner and cadence in your operations runbook.
Questions buyers ask before tiering their keys
Does tiering keys in LiteLLM require an Enterprise license?
Yes. LiteLLM rate limit tiers are created as budgets with limits such as rpm_limit and assigned to keys by budget_id, and the feature requires an Enterprise license. The open source edition covers the core proxy, virtual keys and per-key limits, so the question for your team is whether a shared tier model across many keys justifies the license. Ask LiteLLM for a written quote tied to your deployment size, support level and the features you need beyond tiers, such as SSO beyond the free user limit, audit logs and RBAC. The LiteLLM rate limit tiers documentation explains the mechanics, and the LiteLLM buyer's guide covers what the edition includes. Use the buyer's guide and vendor quote for pricing, since no figures are published here.
What does the Enterprise license add beyond tier budgets?
The Enterprise license adds the tier feature itself, and it sits alongside other controls that large key populations usually need. According to LiteLLM's Enterprise documentation, it adds SSO and SCIM beyond the free limit, JWT authentication, audit logs, organization and team RBAC, IP allowlisting, secret manager integrations and team-level guardrails and logging. Those features matter when tiers are assigned by people in several teams, because you need to know who changed a tier and who holds admin rights. LiteLLM Enterprise support also includes a dedicated channel with the engineering team and optional 24/7 SLAs, with a 1 hour response for critical issues and 72 hours for security patches. Confirm which of these you need before buying, because the license is priced as a whole.
How long does it take to set up tiered keys?
Setup time depends mainly on how many tiers you define, how many keys already exist and whether you are migrating keys from another gateway. A small set of tiers on a new gateway is a short configuration task, while a populated gateway with thousands of keys needs a mapping exercise, a test window and a plan for keys that do not fit any tier. Timing also depends on whether the database and Redis are already in place and whether identity and secret management are integrated. DeployOpen does not publish durations, so the fixed-scope written plan is where the timeline appears. Ask for each phase to be listed separately: tier design, budget creation, key assignment, testing with real traffic and cutover.
What does the client need in place before tiers work?
Tiers rely on the same infrastructure as all virtual keys, so the foundation has to exist first. LiteLLM virtual keys need a PostgreSQL database, and LiteLLM's production guide names PostgreSQL as the primary supported database. Once more than one proxy instance runs, LiteLLM requires Redis 7.0 or newer for shared rate limits, router state and cache, so tier limits enforced across replicas depend on it. You also need a named owner for tier design, someone to approve budget changes, a secret manager for LITELLM_MASTER_KEY, which must start with sk-, and an identity provider if admin access uses SSO. Decide who may create tiers and who may assign them before the first key is moved.
Can an internal team set up key tiers without outside help?
Yes, a capable platform team can do it, provided it has PostgreSQL and Redis experience, Kubernetes or equivalent deployment skills, and time to test budget behavior under load. The hard part is rarely the API call that creates a budget. It is deciding tier boundaries, testing what happens when a key crosses a limit, and proving that the Enterprise features behave as the business expects. An external partner can take on the fixed-scope design, build, handover and testing so your engineers keep control of the outcome. Whichever route you choose, write down who owns each tier, who approves exceptions and how a tier change is tested before it reaches production keys.
What ongoing work follows after tiers go live?
Tier configuration needs recurring attention alongside the gateway itself. LiteLLM maintains support for the four most recent stable minor versions for both open source and Enterprise deployments, so you need an upgrade cycle that stays inside that window. Each upgrade should be tested against your tier definitions, because budget behavior and database migrations can change between releases. Recurring work also includes reviewing tier usage, adjusting limits as demand changes, rotating master keys and checking that Redis and PostgreSQL capacity still fits the key count. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, which you can compare against an internal rota.
What are the main risks when tiering a large number of keys?
The main risks are misassigned tiers, untested limits and changes that reach live traffic without review. A key assigned to the wrong budget_id can give a customer free-tier limits or hold a paid customer to a tier that blocks requests, and this is hard to notice in aggregate dashboards. Keys that predate the tier model need a clear mapping, or they keep unlimited or inconsistent limits. Restrict who can edit tiers, log every change through the audit trail, and test each tier with synthetic keys before the rollout. Confirm with LiteLLM how audit logs record budget changes in your edition.
Do rate limit tiers help with compliance evidence?
Tiers help with access control evidence because they show that limits are defined centrally and assigned consistently rather than set key by key. They do not, by themselves, satisfy any compliance obligation or produce an audit report. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the conclusions. Ask your auditor which records they expect, such as the tier definitions, assignment history, change approvals and access logs, and confirm that your edition captures them.
How DeployOpen scopes and delivers tiered rate limits
DeployOpen plans and builds LiteLLM rate limit tiers around your own key population, so limits are defined once as budgets and assigned to many keys. The work is scoped in writing before it starts, built in your infrastructure, and handed over with documentation your team can operate. The Enterprise license that the feature requires is part of the scope.
How we scope
- Written scope lists each tier, its rpm_limit and budget values, and the keys or groups it covers.
- Scope confirms the Enterprise license requirement for rate limit tiers and who procures it.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- Tier budgets are created once and assigned to keys by budget_id, so changes do not require reissuing keys.
- Tiers are tested against a staging gateway with sample keys to confirm limits apply as intended.
- Shared state is planned for multi-instance deployments, including PostgreSQL and Redis 7.0 or newer where needed.
How we hand over
- Handover includes a tier catalog listing each budget, its limits, and the keys assigned to it.
- Runbooks cover adding a tier, moving a key between tiers, and checking limit behavior after changes.
- Your team receives configuration in a form it can keep under version control and review.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retesting covers tier assignments and limit behavior after LiteLLM version upgrades.
- Support scope is agreed in writing, so your team knows which changes are included and which are new work.

