Documentation Index
Fetch the complete documentation index at: https://gomodel-docs-providers-restructure.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Budgets let you set spend limits for auser_path subtree. GoModel evaluates
them from tracked usage cost records and blocks matching requests when a limit
has already been spent.
Use budgets when you want limits such as:
/team/alphacan spend$10per day/team/alphacan spend$50per week/has a global monthly limit
Budget enforcement runs only when budgets are globally enabled and the active
workflow has Budget enabled. The Budget workflow control is enabled by default
when the global budget feature is on.
Enable budgets
Budgets are enabled by default:Create budgets
You can create budgets in the dashboard:manual. Budgets loaded from YAML or
environment variables are marked as config.
You can also seed budgets from YAML:
SET_BUDGET_ becomes a user path. Use double underscores
(__) between path segments; single underscores remain part of a segment:
SET_BUDGET_TEAM__ALPHA->/team/alphaSET_BUDGET_USER_123->/user_123SET_BUDGET_->/
__ segment value.
Supported standard periods are:
| Period | Seconds |
|---|---|
hourly | 3600 |
daily | 86400 |
weekly | 604800 |
monthly | 2592000 |
monthly is stored as 2592000 but
resets on calendar month anchors and clamps the reset day to shorter months.
Only custom period_seconds values behave as fixed-second windows.
For custom windows, set period_seconds in YAML:
How matching works
Budget paths apply to the configured path and its descendants:- budget path
/team - request path
/team/app - result: budget applies
- budget path
/team - request path
/team-alpha - result: budget does not apply
Workflow enforcement
The active workflow controls whether budget checks run for a request. In a workflow payload:user_path subtree. See Workflows for matching
precedence.
Response cache hits can return before budget enforcement. If a cached response
exists, GoModel can serve it without spending additional provider cost.
Reset windows
Budget reset anchors are configured in the dashboard under:31
runs on April 30 and on February 28 or 29.
Editing a budget changes the limit but does not reset the current period. Use
the row-level Reset action to start a new period for one budget, or
Settings -> Reset All Budgets to reset all budgets.