Can a free LLM API fallback exceed a LiteLLM team-member budget?

Yes, one LiteLLM v1.104.3 report describes a zero-cost primary failing and a paid fallback running after the caller had exceeded the team-member overall budget. LiteLLM’s current fallback guide says it rechecks the caller’s key and user budgets; that wording does not confirm the separate team-member overall cap. As of 10 November 2026, the report is still open and the proposed fix is an open, undeployed pull request. Check your exact build. If a request must remain at $0, do not include paid targets in its fallback chain.

A local acceptance test checks whether LiteLLM stops before a paid fallback when the synthetic team-member budget is exhausted.

This is about LiteLLM proxy budget enforcement. It is different from an OpenRouter free-model route: a proxy’s fallback may target a different provider, and an API key labeled free does not make every target free.

Which budget is being checked?

The LiteLLM report concerns a member’s overall team budget, named max_budget_in_team. Do not treat that as interchangeable with the other budget scopes.

Scope What the name refers to What the current fallback guide explicitly says
Key A limit attached to the calling virtual key The fallback target is checked against the caller’s key budget.
User A limit attached to the user The fallback target is checked against the caller’s user budget.
Team member, per model A limit for one model for one team member The issue says this is separate from the reported overall-cap gap. Verify the release behavior and your deployed configuration.
Team member, overall The member’s overall spend within a team The open issue says this scope was not checked for the reported fallback path.

LiteLLM’s fallback documentation describes the key and user recheck. The budget documentation explains that team-member budgets are a distinct control and require a database. Neither page, on its own, proves how every installed build handles this exact zero-cost-primary path.

What was reported

The reporter used LiteLLM v1.104.3 with a zero-priced primary route that intentionally failed on a local closed port. A team member over the overall cap was rejected when requesting the paid model directly. With the zero-cost route as primary and the paid model in a request-level fallbacks list, the same member instead reached the paid route. The issue records a successful response with a fallback-attempt header and a nonzero reported response cost.

That is one version-specific report, not proof that every LiteLLM release or fallback type behaves the same way. It also does not tell you whether a different provider, configuration or newer build has the same result.

As checked on 10 November 2026, issue #46874 remained open. The proposed PR #46900 also remained open and undeployed. LiteLLM’s main-branch fallback budget source did not contain the reported overall-member budget field when checked. Do not count a proposed fix as part of your deployed package until it is included in the exact release you run.

Test the boundary without a provider call

Use an isolated LiteLLM instance, a disposable database if your configuration requires one, and mock endpoints on 127.0.0.1. Give the fake primary a zero test price and make it return a controlled failure. Give the fake fallback a synthetic positive price. Do not add a real provider URL, provider credential, or live paid model to the test. Confirm the deployed setting has not disabled fallback-budget checks; LiteLLM documents that setting enforce_fallback_budget to false lets fallbacks run regardless of the caller budget. Record whether the route uses a request-level list or router configuration because the issue reproducer tested request-level fallbacks only.

Set up a member with a small test-only cap and synthetic spend above that cap. Send a request that selects the zero-cost primary and names the positive-price mock as its fallback. The acceptance condition for a hard cap is that the paid mock receives zero requests. Record the proxy version, fallback configuration, local mock hit count, response headers and database spend readback.

Synthetic case What to observe
Member is below the overall cap The configured fallback may reach the local mock; count that call explicitly.
Member is above the overall cap A hard-cap test expects the paid mock hit count to stay at zero.
Overall cap is exactly zero Test this boundary separately. The proposed PR discussion records an early revision that treated 0.0 as unset, so a positive-cap-only test misses this edge.
Key cap is exhausted, member cap is not Keep this control separate; it does not establish that the overall member cap is enforced.

Use synthetic rates and budgets only. The table is a proposed local acceptance plan, not a ChinaGenAI or LiteLLM runtime test. A response status alone is not proof that a fallback ran or was skipped. Compare the proxy’s fallback-attempt metadata, the mock server’s request counter and the spend record. The request counter is the decisive no-provider-call check; the spend record is a second independent signal. Do not infer a bill or a refund from an HTTP response. Keep the under-cap control so a test that blocks every fallback cannot appear to prove the budget gate. Repeat the cap case after an upgrade against the exact image you intend to run.

If you cannot run this check against the exact version and route configuration, remove paid destinations from the fallback list for requests that must not create a charge. Retest after upgrading LiteLLM or changing how fallback targets are selected.

Common questions

Does a free primary guarantee that a request stays free?

No. A fallback can name another model or provider. Inspect every configured destination and its price; test the exact route before relying on an overall team-member cap.

Is the LiteLLM issue a confirmed bug in every current installation?

No. Issue #46874 documents a reproduction on v1.104.3. The issue and linked fix were still open on 10 November 2026. Check the installed image or package, not just the latest issue or pull request status.

Can a key-level budget test stand in for the member budget test?

No. The reported case distinguishes a key cap from the member’s overall team cap. Exercise each budget scope separately with synthetic spend and local endpoints.

Sources checked 10 November 2026