> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AiBudgetScopeInput

> Input object in the GraphQL API.

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.

| Field | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `projectId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | Deprecated: Use projectReference. |
| `userId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | The person whose spend on that project this budget caps. A new member cap cannot target the caller or the project owner. |
| `apiKeyId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | |

[All GraphQL types](https://veryfront.com/docs/cloud/graphql/schema.md) · [Operations](https://veryfront.com/docs/cloud/graphql.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.