1. Price
Free tier: $5/month of AI Gateway credits (free-tier models, lower rate limits). As reported on the official pricing page, checked Nov 1, 2026.
vercel.com/docs/ai-gateway/pricing2. Commercial use
“You are solely responsible for any application that you offer that interacts with AI Gateway ("Application") and anyone who interacts with AI Gateway through your Application must comply with these AI Product Terms, including the applicable terms of any Non-Vercel Service.”
Allowed; your app's users must follow Vercel's AI terms and each model provider's terms, and stealth models may not process personal data.
vercel.com/legal/ai-product-terms3. Key & sign-up
“The AI SDK uses the AI_GATEWAY_API_KEY environment variable by default.”
API key as a Bearer token (or a Vercel OIDC token for apps deployed on Vercel)
vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdkChecked against the maker's official pages, pricing on Nov 1, 2026. Tap a verdict to see its source.How we checkedReport an error
What Vercel AI Gateway does
Vercel AI Gateway is a single online entry point to hundreds of AI models from OpenAI, Anthropic, Google and many others. Your app uses one key and one address, and can switch models by changing a name. If one provider fails it tries another, and you pay the providers' list prices with no extra markup.
- Vercel AI Gateway is one of 8 APIs in the LLM gateways and routers category on AgentGid.
- It is one of 7 that can be started for free.
- 4 of them ship an official MCP server; Vercel AI Gateway does not.
- Its official SDK is the 1st most downloaded in the category (47.3M a week).
What people build with it
Try several AI models in one app
Compare answers from GPT, Claude, Gemini and others by changing only the model name, without separate accounts for each.
Keep the chatbot up during outages
List backup models so your assistant keeps answering when the first model or its provider is down.
A spending cap per project or user
Set a money limit for a team, a project, a key or a person, so a bug or a busy day cannot run up a large bill.
See what each request cost
Look up the model, provider, speed, tokens and cost of every request in one place, for all providers.
Move existing OpenAI code over
Keep code written for the OpenAI library and point it at the gateway, then use models from other companies too.
Pick the cheapest model for a task Idea
Read the public list of models with their prices and features, then choose a cheaper model for simple jobs.
Vercel AI Gateway popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
$5/month of AI Gateway credits (free-tier models, lower rate limits)
No monthly plan
Provider list price per token, zero markup and no platform fee (also with BYOK)
Paid tier = prepaid AI Gateway credits; buying credits ends the monthly free credit. Add-ons cost extra (Custom Reporting $0.075 per 1,000 writes, $5 per 1,000 queries). No AI-Gateway-specific MCP server found.
What one action costs
| Action | Price |
|---|---|
| Custom Reporting, 1,000 tag or user ID writes (add-on) | $0.075 |
| Custom Reporting, 1,000 queries (add-on) | $5 |
| Team-wide zero data retention, 1,000 requests | $0.10 |
| Trace Drains, 1,000 traces | $0.05 |
Price history
- A year of the pricing page in the Internet Archive (12 months): the lowest monthly figure went from $5 (2026-03) to $5 (2026-11).
As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy. vercel.com/docs/ai-gateway/pricing
Limits
Lower per-model rate limits, free-tier models only; exact numbers are not published
No AI Gateway rate limits; the model provider's own limits still apply
From the official docs. vercel.com/docs/ai-gateway/rate-limits
Status and incidents
All Systems Operational
3 incidents, 1 of them major
From the official status page, checked Nov 23, 2026. vercel-status.com
Key and access
API key as a Bearer token (or a Vercel OIDC token for apps deployed on Vercel)
AI_GATEWAY_API_KEYYes
Steps only a person can do
- Sign up for Vercel, add a payment method to the team, and create an AI Gateway API key. Put the key in .env.local as AI_GATEWAY_API_KEY; the ai package reads it automatically.
- Buy AI Gateway Credits if you need models outside the free tier, BYOK or higher limits. No code change; the same key moves to the paid tier.
- Set a budget for the team, project or key. Handle 402 quota_for_entity_exceeded in the app with a friendly message.
Commercial use and your data
It is a paid Vercel service with a small monthly free credit. You own your inputs and outputs, but each AI company's own terms also apply to the models you use. Test-only stealth models may train on what you send.
Allowed; your app's users must follow Vercel's AI terms and each model provider's terms, and stealth models may not process personal data.
“You are solely responsible for any application that you offer that interacts with AI Gateway ("Application") and anyone who interacts with AI Gateway through your Application must comply with these AI Product Terms, including the applicable terms of any Non-Vercel Service.” source
You own the outputs as far as Vercel is concerned; the chosen model provider's terms decide the rest.
“As between you and Vercel, and to the extent permitted by applicable law, you own Customer Content and Vercel assigns to you Vercel's rights, if any, in the Output.” source
Allowed when you have the rights and consents for the client's inputs.
“You are responsible for your Input, including ensuring that it does not violate any applicable laws or the AI Product Terms.” source
“Vercel represents and warrants that it shall not use AI Gateway Customer Content to train or improve the AI Products and Services.”
Prompts and answers are not kept after the request; request metadata and routing attempts are kept 30 days.
“Inspect this metadata in Logs, where routing attempt details are kept for 30 days” source
Errors to handle
The API key or OIDC token is missing, invalid, or revoked.
Check AI_GATEWAY_API_KEY, create a new key if needed, then retry.
No credit left, or (with quota_for_entity_exceeded) a budget limit was reached.
Top up credits, or wait for the budget period to refresh or raise the budget; do not retry in a loop.
No payment method on the team, or the model is not in the free tier.
Add a payment method, choose a free-tier model, or buy credits.
A gateway or provider rate limit was exceeded.
Retry after the retry-after time with bounded exponential backoff.
Use it from an agent
5 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP no, status page yes, AI assistants allowed yes
Checked Nov 13, 2026.
None found
npm install @ai-sdk/gatewayInstructions in its docs to check first
“Set up AI Gateway and make one text-generation request from this environment. Use the AI Gateway skill for this task. If it is unavailable, run npx skills add vercel/vercel-plugin --skill ai-gateway, then find and read its SKILL.md before continuing.”
Ask the person first; it installs an unpinned skill and tells the assistant to follow it.
“npx vercel@latest ai-gateway setup”
Ask the person first; it runs an unpinned @latest CLI that creates or reuses a key and changes coding agent settings.
“npx plugins add vercel/vercel-plugin”
Ask the person first; it installs an unpinned plugin into the assistant.
Alternatives
Vercel AI Gateway This page
Pick OpenRouter when you want one OpenAI-compatible key for 500+ models across 80+ providers, outside the Vercel account.
Pick LiteLLM when you want an open-source proxy you run yourself, with keys, budgets and logging under your control.
Pick Cloudflare AI Gateway when you already use Cloudflare and want caching, rate limiting and logs in front of your own provider keys.
Get started
Tell your AI assistant
“Route my app's AI calls through Vercel AI Gateway with the ai package: read AI_GATEWAY_API_KEY from .env on the server, use provider/model names, add one fallback model, and set a budget on the key.”
Create a Vercel account and an AI Gateway API key; to use the free monthly credit, add a payment method to the team.
export AI_GATEWAY_API_KEY="your_ai_gateway_api_key"Install the AI SDK (or keep your OpenAI client and change its address).
pnpm add ai@latestSend a first request with a provider/model name such as openai/gpt-6-astra and check it in AI Gateway Logs.
curl https://ai-gateway.vercel.sh/v1/chat/completions \ -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-6-astra", "messages": [ { "role": "user", "content": "Invent a new holiday and describe its traditions." } ] }'
First request
curl -X POST "https://ai-gateway.vercel.sh/v1/chat/completions" \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-opus-5",
"messages": [
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn."
}
],
"stream": false
}'{
"id": "chatcmpl-123",
"object": "chat.completion",
"model": "anthropic/claude-opus-5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Once upon a time, a gentle unicorn with a shimmering silver mane danced through moonlit clouds, sprinkling stardust dreams upon sleeping children below."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 28,
"total_tokens": 43
}
}Mistakes to avoid
The free credit needs a verified team.
Stealth model providers may train on your inputs and the usual data protections do not apply.
Budgets count only spend on Vercel's credentials; BYOK spend is metered separately.
The docs say a 429 can succeed later without changes; the AI SDK already retries twice by default.
AI SDK 7 requires Node.js 22 and ESM.
Questions
Is there a free tier?
Yes, a monthly included credit for a subset of models with lower rate limits. It is not a time-limited trial, but it needs a payment method on the team.
Does Vercel train on my prompts or keep them?
No. Vercel says it does not train on prompts and deletes prompt and response content after the request; the model provider's own policy still applies.
Do I have to host my app on Vercel?
No. An AI Gateway key works from local development, CI and other clouds; apps on Vercel can use OIDC tokens instead of a key.
How do I see the list of models and prices?
The public model list returns every model with pricing and capabilities, and needs no key.