Set spend limits

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

  1. In your project, open Settings > API keys.
  2. Open the ⋯ menu on the key's row.
  3. Click Set budget.
  4. Enter 5 as the Budget, in credits a month.
  5. Click Save. You should now see Budget saved.

Limit a person

  1. In your project, open Settings > Members.
  2. Open the ⋯ menu on the row of someone you invited (Invite people).
  3. Click Set budget.
  4. Enter 20 as the Budget.
  5. 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.

Next steps