Budgets for API keys on AI Gateway
Set spend caps on AI Gateway API keys to control costs and prevent budget overruns. Keys can be configured with dollar limits and optional refresh periods (daily, weekly, monthly, or none) via the dashboard or CLI, applying across all providers and models.
AI costs are getting harder to forecast. As teams lean more on coding agents and other token-heavy workflows, a key can burn cost faster than anyone notices:
Set a spend cap on any key, and rejects further requests on that key once the limit is exceeded, until the budget resets or you raise it. The cap applies to all AI Gateway providers and models running through the key, making it easier to consolidate and govern AI costs.AI Gateway
On the , click , enable the option, enter a limit in dollars, and choose a refresh period.AI Gateway API Keys pageCreate KeySpend Quota
You can also edit existing keys and add, change, or remove budgets by clicking the right hand side ... menu and .Edit Key
Create a budgeted API key programmatically via the Vercel CLI. The format is:
Pair a key with an optional refresh period (, , , or ) to scope the limit to a window. Each period resets at the start of its window in UTC.dailyweeklymonthlynone
Keys created programmatically will also appear in your team , so you can see all keys in one place. AI Gateway API Keys view
Read the for more information about setting and using budgets for API keys. API keys documentation
Autonomous workflows that can loop or fan out without supervision
Demos and prototypes that could catch unexpected traffic if shared or shipped
Developers exploring or experimenting without a sense of per-model cost
API key budgets in the Vercel Dashboard
API key budgets in the Vercel CLI
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
Updates to Hobby and Pro Terms of Service
Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.
Mercury 3 now available on AI Gateway
Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.
MiniMax M3.1 Flash now available on AI Gateway for free
MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.