Set or update a spend budget
Partner Budgets
Set or update a spend budget
Caps how much an organization can spend on one of your LLM keys. When the organization’s spend reaches the limit, the gateway stops using that key for the organization until the budget is raised or reset. Creates the budget, or replaces the existing one.
Only partner owners and admins can set budgets, and budgets are supported on metered LLM keys (Anthropic today).
POST
Set or update a spend budget
Authorizations
API key obtained from the dashboard or GET /user/api-key
Body
application/json
Response
Budget saved
The partner LLM key this budget caps.
Spend ceiling in US cents (e.g. 500 = $5.00).
Example:
500
Available options:
monthly, total Spend so far this period, in US cents. Updates within a few seconds of usage.
Example:
320