
TL;DR
AI Gateway spend budgets now scope to teams and projects, with hard dollar limits that reject requests, email alerts at 50/75/100%, and CLI-managed defaults. Here is how the three scopes compose and where it fits your cost stack.
On July 31, Vercel shipped the missing half of AI Gateway cost control: spend budgets scoped to a team or a project, not just to individual API keys. Set a dollar limit on a scope, and the gateway meters spend against it and stops further requests once the limit is reached, until the budget resets or you raise it. Before this release you could cap a single key; now you can cap an entire team or a single project at the gateway layer, which is where the money actually escapes.
A budget attaches to one of three scopes, and a single request can fall under multiple budgets at once:
The important detail is the composition rule: a request has to pass every budget it falls under. If any one is over its limit, the request is rejected, even when the others still have room. So the team cap is a real ceiling, not a soft signal: a hot project cannot blow past the team budget as long as both are set.
Two controls shape the enforcement:
The refresh period is daily, weekly, or monthly (the default), or none for a cumulative cap that never resets. BYOK (bring your own key) spend is not counted against budgets by default.
Everything is manageable from the new Budgets tab in the dashboard, which breaks spend down across every scope against its limit, and from the CLI:
# Set a team budget
vercel ai-gateway budgets set team --limit 500 --refresh-period monthly
# Scope a budget to a single project
vercel ai-gateway budgets set project my-project --limit 200 --refresh-period monthly
# Set a default for projects or keys without their own budget
vercel ai-gateway budgets defaults set project --limit 200 --refresh-period monthly
# List every budget, or remove one
vercel ai-gateway budgets list
vercel ai-gateway budgets remove team
Docs are at Vercel's AI Gateway budgets reference.
From the archive
Aug 1, 2026 • 10 min read
Jul 31, 2026 • 8 min read
Jul 31, 2026 • 6 min read
Jul 31, 2026 • 11 min read
The pattern here is the same one that made rate limits valuable on APIs a decade ago: enforcement at the platform boundary beats discipline at the call site. Anyone who has run agentic workloads through a shared gateway knows the failure mode: one teammate's runaway loop, one unthrottled background job, one --retries 10 script, and the month's inference spend is gone before lunch. Key-level caps did not fix it, because the runaway rarely respects key boundaries once you rotate keys or share team accounts.
Team- and project-scoped budgets fix the two real gaps: attribution (which team or project owns the spend) and enforcement (the request is actually rejected, not just reported). The default-budget mechanism matters too, because it flips the burden of proof: new projects start capped unless someone explicitly raises them, instead of starting uncapped unless someone remembers to lower them. That is the right default for a platform where agents create projects faster than humans audit them.
The all-budgets-must-pass composition is worth calling out as the one design decision that keeps multi-scope caps honest. If team and project budgets were OR'd, a project budget would be pointless once the team budget existed, and the team budget would be a lie once a project budget was lower. AND-ing them means the tightest constraint always wins, which is exactly what you want from a ceiling.
Two honest limits, from the changelog itself: BYOK spend is excluded from budgets by default, so if your team routes provider keys directly, the cap is bypassed until you point those calls at the gateway. And alerts at 50/75/100% are the only notification granularity; there is no custom threshold.
This rounds out the AI Gateway story Vercel has been building all year. The gateway was already a model router with failover, caching, and per-request cost tracking; budgets add the enforcement half. For the same job on a self-hosted gateway, you would be wiring your own meter-and-reject logic against your own spend telemetry, which is a real project. If you are already comparing gateway economics, the budget CLI is worth folding into the decision, because hard caps change the risk math for multi-tenant or multi-project setups.
It also pairs with the wider push to make AI cost an engineering metric rather than a finance surprise, alongside provider price cuts like the recent GPT-5.6 pricing changes and the real cost of parallel agents. Our own spend guardrails playbook covers the organizational layer: budgets give you the mechanical stop, guardrails give you the workflow.
One adjacent note: on the same day, Vercel updated the DeepSeek V4 Flash weights running on AI Gateway, so budget math for gateway routes should be re-verified against current model pricing.
Read next
Vercel AI Gateway gives you one API key and string model ids like moonshotai/kimi-k2.5 for hundreds of models. Here is how it works with the AI SDK, what BYOK and OIDC change, the honest tradeoffs, and who should actually use it.
8 min readA company accidentally spent $500M on Claude in one month. Uber torched its whole 2026 AI budget by April. The fix is not less AI - it is guardrails. Here is the playbook: caps, alerts, gateway spend limits, model routing, prompt caching, and approval workflows.
11 min readClaude Code parallel agents cost real money because every session draws from one quota - here is the June 2026 budgeting math, verified against live pricing.
10 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
The TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, stru...
View ToolOpen-source AI gateway: call 100+ LLM providers in the OpenAI format via a Python SDK or proxy. Spend tracking, budgets,...
View ToolVercel's generative UI tool. Describe a component, get production-ready React code with shadcn/ui and Tailwind. Iterate...
View ToolFull-stack AI dev environment in the browser. Describe an app, get a deployed project with database, auth, and hosting....
View ToolStep-by-step guide to building an MCP server in TypeScript - from project setup to tool definitions, resource handling, testing, and deployment.
AI AgentsDefine custom subagent types within your project's memory layer.
Claude CodeCreate reusable subagent definitions at project or user level.
Claude Code
Repo: https://git.new/ai-pin Building an AI Assistant similar to the Humane AI Pin, the Rabbit R1 with Advanced Functionality from Scratch This video details the process of creating an AI...

Building a Perplexity Style LLM Answer Engine: Frontend to Backend Tutorial This tutorial guides viewers through the process of building a Perplexity style Large Language Model (LLM) answer...

In this video, I dive deep into the Groq Inference API, which I've found to be the fastest inference API out there. I share my insights on the various approaches to leveraging this API, focusing...

Vercel AI Gateway gives you one API key and string model ids like moonshotai/kimi-k2.5 for hundreds of models. Here is h...

A company accidentally spent $500M on Claude in one month. Uber torched its whole 2026 AI budget by April. The fix is no...

Claude Code parallel agents cost real money because every session draws from one quota - here is the June 2026 budgeting...

Luna drops from $1/$6 to $0.20/$1.20 per million tokens, Terra from $2.50/$15 to $2/$12, and Sol gets a paid Fast mode....

Vercel Passport is generally available: protect deployments behind Okta, Entra ID, or any OIDC provider, and read a veri...

Vercel Labs released Scriptc, a TypeScript-to-native compiler that produces self-contained binaries of 170-200KB with ~2...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.