# Vercel AI Gateway — card for AI agents

Unified API to hundreds of models with provider fallbacks, billed at provider list prices.

Maker: Vercel · category: LLM gateways and routers

## Price (official page)
- Free tier: $5/month of AI Gateway credits (free-tier models, lower rate limits)
- Free tier terms: free allowance · monthly (read from the wording above and the pricing page; empty = not stated)
- Usage price: Provider list price per token, zero markup and no platform fee (also with BYOK)
- Pricing page: https://vercel.com/docs/ai-gateway/pricing (checked 2026-10-09)
- Note: 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.

## Connect
- npm: `npm install @ai-sdk/gateway`
- Repository: https://github.com/vercel/ai
- Status: All Systems Operational

## For AI agents on Vercel's own site (AgentGid check 2026-11-13: 5 of 6)
- llms.txt: https://vercel.com/llms.txt
- Docs pages as Markdown: 82% of the pages llms.txt lists
- OpenAPI description: https://vercel.com/openapi.json
- Official MCP server: no · official SDK: yes · status page: yes
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## A year of price history (Internet Archive copies of the pricing page, read by rules)
- Months read: 12 (2025-10 to 2026-11) of https://vercel.com/docs/ai-gateway/pricing
- Lowest $/month figure on the page: $5 in 2026-03, $5 in 2026-11
- A figure is any "$X/month" on the page (plans, seats and add-ons alike); open the archived copy to see which plan it is.

## Price history in AgentGid's catalog (since 2026-10-09)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- LiteLLM: https://agentgid.com/apis/litellm/agent.md
- OpenRouter: https://agentgid.com/apis/openrouter/agent.md
- Prisma AIRS AI Gateway (formerly Portkey): https://agentgid.com/apis/portkey/agent.md
- Cloudflare AI Gateway: https://agentgid.com/apis/cloudflare-ai-gateway/agent.md
- Helicone: https://agentgid.com/apis/helicone/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/vercel-ai-gateway/


## Vercel AI Gateway: one key for many AI models

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.

### Where to use 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: Read the public list of models with their prices and features, then choose a cheaper model for simple jobs. (idea, not from the official pages)

### How to start
- 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@latest
```

- Send 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."
 }
 ]
 }'
```


### License
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.

### Good to know
- The free tier covers only some models, with lower limits; other models need purchased credits.
- Buying credits moves you to the paid tier, and the monthly free credit stops.
- Purchased credits expire one year after purchase.
- Using your own provider keys requires purchased credits, and failed requests may be retried on Vercel's account and billed to you.
- Your app does not need to run on Vercel; a key works from any server.

Checked 2026-11-10 against: https://vercel.com/ai-gateway, https://vercel.com/docs/ai-gateway, https://vercel.com/docs/ai-gateway/getting-started, https://vercel.com/docs/ai-gateway/pricing, https://vercel.com/docs/ai-gateway/rate-limits, https://vercel.com/docs/ai-gateway/faq, https://vercel.com/docs/ai-gateway/authentication-and-byok, https://vercel.com/docs/ai-gateway/authentication-and-byok/api-keys, https://vercel.com/docs/ai-gateway/authentication-and-byok/byok, https://vercel.com/docs/ai-gateway/models-and-providers/model-fallbacks, https://vercel.com/docs/ai-gateway/observability-and-spend/budgets, https://vercel.com/docs/ai-gateway/security-and-compliance/zdr, https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk, https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-chat-completions, https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-chat-completions/chat-completions, https://vercel.com/legal/ai-product-terms, https://vercel.com/pricing, https://vercel.com/llms.txt, https://ai-gateway.vercel.sh/v1/models, https://registry.npmjs.org/ai/latest, https://registry.npmjs.org/@ai-sdk/gateway/latest

### Mistakes to avoid
- Don't: Expecting the free credit to work right after creating a key, without a payment method. → Do: Add a payment method to the Vercel team first, or the request fails with 403 customer_verification_required. (The free credit needs a verified team.)
- Don't: Sending personal data or private code to a model labeled stealth. → Do: Use stealth models only for throwaway tests; pick a named model, and turn on zero data retention for sensitive data. (Stealth model providers may train on your inputs and the usual data protections do not apply.)
- Don't: Treating a budget as a hard stop that also covers your own provider keys. → Do: Also set spending limits at each provider when you use BYOK. (Budgets count only spend on Vercel's credentials; BYOK spend is metered separately.)
- Don't: Editing or giving up on a request that returned 429. → Do: Retry the same request after the retry-after time, with bounded exponential backoff. (The docs say a 429 can succeed later without changes; the AI SDK already retries twice by default.)
- Don't: Installing ai 7 on Node.js 20 or in a CommonJS project. → Do: Use Node.js 22 or later and ES modules (.mjs/.mts or "type":"module"). (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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
