BudgetScopeInput

A budget caps monthly AI spending for a project, person, API key, or combination of these fields. A request must match every field in the budget scope. If several budgets apply, the most specific exhausted budget rejects the request before account credit and provider spending checks. Only one budget is allowed per scope (409); change an existing limit with an update. The scope cannot change later; create a separate budget for a different scope.

FieldTypeRequiredDescription
projectReferenceStringNo
userIdIDNoThe person whose spend on that project this budget caps. A new member cap cannot target the caller or the project owner.
apiKeyIdIDNo

All GraphQL types · Operations