What this thread does
Do first: Set "budget_duration": "30s" in the page's /team/new request.
When you need it
Use a duration when a team's budget should reset instead of accumulating spend indefinitely. The page supports durations expressed in seconds, minutes, hours or days.
The setting
budget_duration specifies when the budget resets. Without it, the budget never resets. The page gives "30s", "30m", "30h" and "30d" as examples of the supported units. Budgets, Rate Limits states "If not set, budget is never reset."
Trade-off
The interval enables recurring resets; omission leaves spend without an automatic reset. The server checks resets every 10 minutes by default to reduce database calls, so a short configured duration does not mean the checker runs that frequently.
Steps
1. Use the page's team reset request with its example budget and duration:
curl 'http://0.0.0.0:4000/team/new' \
--header 'Authorization: Bearer <key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"max_budget": 10,
"budget_duration": "30s"
}'
2. If a faster reset-check schedule is needed, the page shows setting both scheduling bounds under general_settings to check every second:
general_settings:
proxy_budget_rescheduler_min_time: 1
proxy_budget_rescheduler_max_time: 1
Check it worked
The page supplies no reset-specific success output for the duration request. Its team creation sample response shows budget_duration, budget_reset_at and spend; those are the response fields the page exposes for the team budget state. The sample without a duration shows null duration and reset fields.
Limits
A Postgres database is required: budgets on this page are enforced using database spend and cannot cap a DB-less deployment. The default checker interval is 10 minutes. This interval is separate from the budget duration itself. The page does not name a version for team budget_duration.
Not for: setting an individual team member's spend cap; see litellm-set-team-member-budget.
Sources
- Budgets, Rate Limits, LiteLLM documentation, read 2026-11-24: "Budget is reset at the end of specified duration."
Checked
2026-11-24; read <https://docs.litellm.ai/docs/proxy/users>; no command was run.
Started from a post by @LiteLLM, packaged by the editor. Original post