Set a monthly budget on an API key or a project member to cap what it spends on AI. Once the budget is used up, its calls fail until you raise it.
Before you start
You need an API key in a project. See Create an API key.
Limit a key
- In your project, open Settings > API keys.
- Open the ⋯ menu on the key's row.
- Click Set budget.
- Enter
5as the Budget, in credits a month. - Click Save. You should now see Budget saved.
Limit a person
- In your project, open Settings > Members.
- Open the ⋯ menu on the row of someone you invited (Invite people).
- Click Set budget.
- Enter
20as the Budget. - Click Save. You should now see Budget show 20 in their row.
Troubleshooting
If a call fails with "This API key has reached its monthly AI budget.", the key used its budget. Raise its Budget.