releases.shpreview

Budgets for API keys on AI Gateway

Set spend caps on API keys for AI Gateway to control AI costs. Once a budget limit is exceeded, AI Gateway rejects further requests on that key until the budget resets or is raised. The cap applies to all AI Gateway providers and models running through the key.

Create budgeted API keys in the Vercel Dashboard via the AI Gateway API Keys page, or programmatically through the Vercel CLI:

vercel ai-gateway api-keys create --name <NAME> --budget <DOLLARS> --refresh-period <PERIOD>

Refresh periods can be daily, weekly, monthly, or none. Each period resets at the start of its window in UTC.

AI Gateway API key creation with spend quotaAPI key editing interface

Fetched June 10, 2026