Sharing model capacity across teams with LiteLLM dynamic rate limits

LiteLLM dynamic rate limits let teams borrow idle TPM and RPM on a shared model and fall back to reserved shares when it saturates. This page covers the settings, the threshold that switches modes, and what to confirm before rollout.

On this page

Why teams need LiteLLM dynamic rate limits on a shared model

Several teams often share one provider deployment or private model, and the provider gives that deployment a fixed tokens-per-minute (TPM) and requests-per-minute (RPM) budget. When one team runs a large batch job, it can consume most of that budget within minutes, and the interactive products of the other teams start returning rate limit errors. According to the LiteLLM docs, dynamic rate limits share a model's TPM and RPM across keys and teams, so capacity that nobody is using can be borrowed, and reserved shares apply only when the model is busy.

Static per-key limits solve a different problem. A key limit caps what one key may do, which protects a budget but does not stop one team from starving another when the model is saturated, and it leaves idle capacity unused when the model is quiet. A shared gateway needs dynamic limits when the model's own TPM or RPM is the scarce resource, when teams have different urgency (for example, a customer-facing assistant versus an overnight evaluation run), and when you want utilization to stay high without giving up guaranteed shares. If every team has its own deployment with its own capacity, static key limits are usually enough.

Before you design priorities, confirm in your environment the exact model-level limits your provider or private serving stack enforces, how LiteLLM counts them against your deployment, and whether your proxy setup supports the dynamic limiter in the version you run. The LiteLLM dynamic rate limit docs describe the required settings.

Configuration options and when each fits

This table compares the settings a team chooses when sharing one model across teams: shared TPM and RPM, priority levels, reserved shares and the saturation threshold. Read each row as a decision: what the setting controls, when it fits and what it costs the other teams sharing the model. The main takeaway is that tighter reservations protect production traffic but leave less idle capacity for development teams to borrow.

SettingWhat it controlsWhen it fitsTrade-off
Shared model TPM and RPMThe total tokens per minute and requests per minute available on one model across all keys and teamsSet to the capacity your provider or self-served deployment actually grants, confirmed in your account before you configure anythingSet it too high and saturation never triggers, so reserved shares do nothing; set it too low and idle capacity goes unused
Priority levelsThe ordering that decides which keys or teams keep their share first when the model is saturatedTwo or three levels separating production services, internal tools and experiments is common for an illustrative mix of workloadsMore levels give finer control but add configuration effort and more cases to test
Reserved share per priorityThe portion of TPM and RPM each priority level is guaranteed once the model is above the saturation thresholdGive production the largest reserved share when customer-facing services depend on the modelLarger reservations protect production but leave less borrowing for development teams, who may be throttled sooner
Saturation thresholdThe usage level at which LiteLLM switches from open borrowing to enforcing each priority's reserved shareSet lower when a latency-sensitive service shares the model and you want reservations to engage earlyA low threshold throttles borrowers sooner and can slow bursty development work; a high threshold risks production waiting on a saturated model
Development borrowingWhether non-production keys may use capacity that production is not using at the momentAllow it when experiments are bursty and production load is predictable across the dayBorrowing can make development usage look unpredictable in spend and capacity reviews, so track it per team
Monitoring of limitsWhether the team watches TPM and RPM use per key and team against the shared limitsUse it from the first rollout, since the right threshold depends on observed peaksMonitoring needs logging and metrics wiring; confirm which metrics your LiteLLM version exposes before you rely on them

Setting up shared capacity for teams step by step

This sequence turns a single shared model deployment into a pool that teams can borrow from when idle, with reserved shares that hold when demand peaks. Each step ends with a check so you can confirm the limiter behaves as designed before any team depends on it.

  1. Confirm the model deployment and its ceilings

    Start by recording the TPM and RPM ceilings of the model deployment that teams will share, including any limits set by the provider account or by the gateway configuration. The dynamic limiter divides these numbers, so an unknown or outdated ceiling will make every later share meaningless. Ask the platform owner to confirm the ceilings in writing and to confirm which provider keys and deployments sit behind the model name. The step is done when a single document lists each model, its TPM ceiling, its RPM ceiling and its owner, and the figures match what the provider console shows.

  2. Define teams and priority levels

    Decide which teams share the deployment and assign each a priority level, such as production services above experimental work. Keep the number of levels small enough that a reader can explain each one in a sentence, and write down what a priority level is allowed to do when the deployment is not saturated. Agree the reserved share each level holds under saturation, expressed as a portion of the ceilings from the previous step. The step is done when every team has one priority level and every level has a documented reserved share that adds up to the full capacity you intend to protect.

  3. Assign keys to priority levels

    Map each virtual key to the team and priority level it belongs to, so that the limiter can apply the right reserved share to each request. Use service account keys for production applications and confirm that every key used against the shared model carries a priority value, because keys without one will fall outside the reserved shares. Review keys that serve more than one purpose and split them if they need different priorities. The step is done when a query or report lists every key on the shared model with its team and priority, and no key is unassigned.

  4. Set the saturation threshold

    Choose the saturation threshold, the point at which the limiter stops letting keys borrow idle capacity and starts enforcing each priority level's reserved share. Set it against the ceilings you confirmed earlier, and record the reasoning, including how close to the ceiling you want borrowing to stop. Check the current LiteLLM dynamic rate limit documentation for the exact configuration key and value format for your release, because the setting names must match the version you run. The step is done when the threshold is written in the configuration as code, reviewed by the platform owner and the teams that depend on the shared model.

  5. Enable the limiter in a staging environment

    Turn on the dynamic rate limiter in a non-production environment that uses the same model deployment settings as production, or a dedicated test deployment with the same ceilings. Confirm that the gateway loads the configuration without errors and that requests from each key are counted against the shared model. Watch the gateway logs and metrics during a few normal test requests to confirm that keys are tagged with the expected priority. The step is done when a test request from each priority level is recorded with the right team and priority, and the gateway shows no configuration warnings.

  6. Load test a saturated scenario

    Drive traffic above the saturation threshold with a load generator, using keys from each priority level in proportions that match the reserved shares you set. Compare observed throughput for each level against its reserved share, and check that borrowing stops once the threshold is crossed. Run the same test with a single low-priority key flooding the model to confirm that it cannot push higher-priority traffic below its reserved share. The step is done when the results show each priority level holding its reserved share under saturation, and you have written down the test settings so the test can be repeated after upgrades or configuration changes.

  7. Confirm reserved shares hold and document the result

    Review the load test results with the platform owner and the teams that share the model, and confirm that reserved shares held under saturation and that idle capacity was usable below the threshold. If a share did not hold, adjust the threshold, the reserved shares or the key assignments, then repeat the load test. Record the final configuration, the test method, the observed results and the owner of each priority level in the platform runbook. The step is done when the signed-off test record exists, the production configuration matches the tested configuration, and the test is scheduled to rerun after each gateway upgrade.

How a request is admitted under shared and reserved capacity

The diagram starts when a request reaches the LiteLLM gateway and the gateway reads the model's current TPM and RPM usage across all keys and teams. It then compares that usage with the saturation threshold. Below the threshold, the request is admitted from idle capacity and counted against its key and team. Above the threshold, the gateway checks the request's priority level against its reserved share, admitting it while that share lasts and rejecting it once the share is used up. Check that your saturation threshold and priority reservations match the traffic you expect on each shared model.

Admission path for a shared model, from threshold check to admit or reject.

Security and operational risks of shared capacity

Shared model capacity moves fairness decisions from individual teams into one gateway configuration. The cards below cover the places where that configuration can fail: who sets priority, which credentials sit outside it, how replicas agree on usage, what the logs reveal, and how changes get reviewed.

Priority set only by admins

Priority levels and reserved shares are assigned by whoever holds admin rights on the gateway, so a single admin change can shift capacity from one team to another overnight. Define who may approve a priority change, record the reason in your change ticket, and confirm that only proxy admin roles can edit these settings. Illustrative example: a team moved from high to default priority during a launch week will see throttling without any change to its own code.

Dynamic rate limit docs

Keys that bypass priority

A key that is not tagged with the intended team or priority can draw from the shared pool under the wrong rules. Review how keys are issued, confirm that each key maps to one team and one priority level, and test a request from a newly created key to see which bucket it consumes. Shared or long-lived keys copied between applications are the most common source of unexpected consumption, so inventory them before enabling saturation rules.

Shared limit state needs Redis

When more than one proxy instance serves the same model, each instance must see the same usage counts or the saturation threshold and reserved shares stop being accurate. LiteLLM's production guide requires Redis 7.0 or newer once more than one proxy instance runs, because shared rate limits and router state live there. Confirm Redis is highly available, load test with several replicas, and check that a Redis outage fails in a way your teams have agreed to accept.

Production best practices

Attributing consumption in logs

When a model saturates, the question is which team or key used the capacity that others needed. Confirm that request logs record the key, team and priority for each call and that those fields flow into the log store your operators use. Without this attribution, capacity disputes turn into guesswork, and you cannot tell whether a reserved share was actually protected during a saturated period.

Change control for reserved shares

Adjusting a reserved share changes how much a team can burst during saturation, so it should go through the same review as other production configuration. Keep the gateway configuration in version control, require a second reviewer, and test the new split against a saturated model in a non-production environment before applying it. Record which share changed, who approved it, and when it took effect so that incidents can be traced back to a specific configuration.

Tuning reserved shares by team situation

Customer-facing or internal production services usually need the most predictable access to a shared model. Give their keys the highest priority level and a reserved share sized from the traffic they must serve at peak, not from average use. Because these keys can still borrow idle capacity below the saturation threshold, the reservation mainly protects them once the model is busy.

  • Highest priority level: Assign production service keys the top priority so they keep their reserved share when the model saturates.
  • Peak-based reservation: Size the reserved TPM and RPM from observed peak demand, and confirm the number with the owning team before setting it.
  • Dedicated service account keys: Issue keys to the application rather than to a person so the reservation survives staff changes.
  • Failover behavior: Check how the reserved share interacts with router retries and cooldowns, so a failed deployment does not silently shift load onto other teams.
  • Reservation reviews: Revisit the share after each release or traffic change, because production demand tends to grow in steps.

What to check: watch for rate-limit rejections on production keys during saturation periods, and confirm that their reserved share is actually being honored in the logs.

Questions buyers ask about LiteLLM dynamic rate limits

Do we need a LiteLLM Enterprise license to use dynamic rate limits?

Confirm this against the current LiteLLM Enterprise documentation and your own edition before you commit, because licensing terms change between releases. The Enterprise page lists organization and team RBAC, audit logs and team-level controls as Enterprise features, and the dynamic rate limit behavior is documented separately in the LiteLLM dynamic rate limit docs. Ask the vendor directly whether your planned priority levels, team budgets and rate limit setup are included in your edition. Your licensing answer shapes the design, so settle it before the build starts.

How much effort does a dynamic rate limit setup take, and what drives it?

Effort depends mostly on how many models, keys and teams share capacity, and on how many priority decisions the business has to make. The configuration itself is short, but the work before it is not: collecting the provider limits per model, mapping keys to teams and priority levels, and agreeing what happens at saturation. Validation effort rises with the number of priority levels, because each level needs a test that shows it is held to its reserved share. Ask any partner for a quote built from a written list of models, teams and priority tiers.

What do we need to provide before the work starts?

You need to provide the current TPM and RPM limits for each shared model, the list of keys and teams that use it, and a priority decision for each group. Engineers also need to know which workloads are production, which are batch or experimental, and who approves changes to reserved shares. Without the model limit data, the saturation threshold cannot be set against real capacity. Write these inputs down early, because most delays come from waiting for an owner to decide a priority level.

Can an internal platform team set up dynamic rate limits alone?

An experienced internal platform team can configure dynamic rate limits alone if it already runs the LiteLLM proxy, has a PostgreSQL database and understands how its keys and teams map to budgets. The harder parts are testing under real load and agreeing priority rules across business units, which often need a neutral owner. Teams new to LiteLLM usually benefit from a short review of the design before rollout. Decide early who signs off on reserved shares, because that decision rarely belongs to the engineers doing the configuration.

How long does validation testing take, and what changes its length?

Validation length depends on scope: the number of models, the number of priority levels, and whether you test only the saturation switch or also failover and recovery. A narrow test of one shared model with two priority levels is much shorter than a test covering several providers, self-hosted models and production traffic patterns. Ask for the test plan in writing, listing the scenarios, the load profile and the pass criteria, before agreeing a timeline. No duration should be assumed until that plan exists.

What changes when the gateway runs on several instances?

Rate limits must be shared across instances, which is why LiteLLM's production guidance requires Redis 7.0 or newer once more than one proxy instance runs. Redis holds the shared rate limit state, so each instance applies the same saturation view rather than keeping its own counter. Test what happens if Redis is slow or unavailable, and confirm how the proxy behaves in that case in your version. Multi-instance setups also need the same configuration on every instance, so manage the config as code.

How do we check that priority levels hold their reserved share during saturation?

Run a controlled load test that pushes the shared model past the saturation threshold with traffic from each priority level, then compare observed TPM and RPM per team against its reserved share. Record the switch point, confirm that idle capacity is borrowed below the threshold, and confirm that lower priorities are held back above it. Repeat the test after any change to limits, models or instance count. Keep the results with the configuration so reviewers can see what was tested.

Where to confirm the dynamic rate limit behavior

The primary source for this behavior is the LiteLLM dynamic rate limit documentation, linked from the topic sources as LiteLLM docs: Dynamic rate limits. Read it before you configure anything, and confirm the exact saturation rule, how the reserved share of each priority level is calculated, and which TPM and RPM counters the limiter tracks for a model. Record the version you run, because the docs describe the current release and your deployment may lag behind it. Also confirm whether the limiter applies to keys, teams or both in your version, since that decides where you set priorities.

Next, check the controls that the dynamic limiter depends on. The virtual keys documentation covers the per-key tpm_limit and rpm_limit fields, team-level limits and model restrictions, and it notes that virtual keys need a PostgreSQL database. Confirm how a key-level limit interacts with a shared model limit, because a key can be capped below its share even when the model has idle capacity. The LiteLLM Enterprise documentation lists the features that go beyond the open-source proxy, so check there whether the priority and team controls you need are included in your license tier before you design around them.

Finally, confirm the behavior in a test environment that matches production. Ask your LiteLLM contact or the engineering channel, if you hold a support agreement, to explain how the saturation threshold is measured across multiple proxy instances, since shared counters depend on Redis. Run a controlled test that drives one team past the threshold and verify that reserved shares hold and idle capacity is lent out. Treat any gap between the docs and observed behavior as a finding to resolve before the configuration reaches production.

How DeployOpen scopes and delivers shared capacity controls

Shared model capacity only works when the limits, priorities and saturation behavior are agreed before anything is configured. The cards below follow the engagement from the written scope to the handover, so each limit can be traced to a model, a team and a test result.

Written scope and model inventory

The engagement starts with a list of every model behind the gateway, its provider deployment, and the TPM and RPM limits each deployment has today. The inventory also records which keys and teams already call each model, because a shared limit applied to an unknown caller population will surprise someone on the first busy afternoon. Confirm that the scope names the models in production and the models in development, since they often share capacity.

Dynamic rate limit docs

Priority design with each team

Each priority level needs an owner and a reason. Production applications, interactive developer use and batch jobs usually should not compete on equal terms, yet the right ranking depends on your business. DeployOpen works through the ranking with the teams that own each workload and records the reserved share each level receives when the model is saturated. Ask who signs off on priority changes after go-live.

Saturation threshold and reserved shares

The saturation threshold decides when the gateway stops letting keys borrow idle capacity and starts holding each priority level to its reserved share. A threshold set too low throttles teams during normal peaks, and one set too high lets a single team fill the model before the reserve applies. The threshold and shares are set per model, so each one needs a test case in the validation plan.

Implementation on your infrastructure

The rate limit settings are applied to the LiteLLM proxy running in your cloud account, data center or restricted network, alongside the PostgreSQL database and Redis that share limit state across proxy instances. Keys, teams and model settings are changed through reviewed configuration so the same limits can be rebuilt after an incident. Confirm where the configuration is stored and who can change it.

Load validation in saturated and idle states

DeployOpen runs load tests in two states: idle capacity, where a single key should be able to use spare TPM and RPM, and saturated capacity, where each priority level should receive only its reserved share. Results are compared with the agreed priorities so that a failed case shows which limit or ranking must change. Ask whether the test model and traffic profile match production before accepting the results.

Handover documentation and runbook

The handover package includes the model inventory, the priority ranking with its owners, the threshold and reserved shares, the test results and the steps for changing any of them. Operations staff use the runbook to answer why a team was throttled at a given time. Ask for the documentation format and the review date before the engagement closes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.