Vercel AI Gateway now caps AI spend per team, project, and API key
Requests over any budget get rejected, with email alerts at 50/75/100% — so a runaway agent or leaked key can't quietly drain your account.

Copy markdown
Three scopes, and a request must clear all of them
Set dollar caps at the team, project, or per-API-key level. A request that falls under several budgets has to pass every one — if any is over, it's rejected, and the gateway stops serving that scope until the budget resets or you raise it.
Alerts at 50/75/100%, resets you choose
Email alerts fire at 50%, 75% and 100% of a limit but never block traffic — only the cap does. Pick a daily, weekly or monthly reset, or "none" for a permanent ceiling that never refreshes.
Build this weekend: a hard ceiling per agent
Give each agent or project its own key with its own budget so one runaway loop can't drain the account: `vercel ai-gateway api-keys create --name bot --budget 50 --refresh-period daily`. Heads-up: bring-your-own-key spend doesn't count toward budgets by default.