BerriAI/litellm · error · ProxyRateLimitError
Max budget limit reached.
Error message
Max budget limit reached.
What it means
Error "Max budget limit reached." thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/hooks/max_budget_limiter.py:73
from litellm.proxy.proxy_server import get_current_spend
curr_spend: Final = await get_current_spend(
counter_key=user_counter_key,
fallback_spend=user_api_key_dict.user_spend or 0.0,
)
verbose_proxy_logger.debug(
"MaxBudgetLimiter: user_id=%s, spend=%.6f, max=%.6f",
user_id,
curr_spend,
max_budget,
)
# CHECK IF REQUEST ALLOWED
if curr_spend >= max_budget:
resolved_model, llm_provider = resolve_llm_provider_for_rate_limit(data.get("model") if data else None)
raise ProxyRateLimitError(
detail="Max budget limit reached.",
rate_limit_type=RateLimitType.BUDGET,
model=resolved_model,
llm_provider=llm_provider,
)
except HTTPException as e:
raise e
except Exception as e:
verbose_logger.exception(
"litellm.proxy.hooks.max_budget_limiter.py::async_pre_call_hook(): Exception occured - %s", e
)
View on GitHub (pinned to 77b7c6c40c)
Solutions
- Increase max_budget for the key, user, or team.
- Reset or wait out the budget period.
- Review spend to find unexpected usage.
When it happens
Trigger: Thrown at litellm/proxy/hooks/max_budget_limiter.py:73 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/67cc6088ed99d35f.
Report an issue: GitHub.