Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

Vercel AI Gateway

by Vercel

One key for many AI models.

LLM gateways and routersUp · live status

WebsitePricingGitHub

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/pricing

Checked 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

47.3M
SDK downloads a week
55
public agent repos use its SDK
28.1K
GitHub stars, vercel/ai

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

$5/month of AI Gateway credits (free-tier models, lower rate limits)

Cheapest plan

No monthly plan

Usage price

Provider list price per token, zero markup and no platform fee (also with BYOK)

Plans

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

ActionPrice
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

Free tier

Lower per-model rate limits, free-tier models only; exact numbers are not published

Paid tier (purchased credits)

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

Right now
Up

All Systems Operational

Last 30 days

3 incidents, 1 of them major

From the official status page, checked Nov 23, 2026. vercel-status.com

Key and access

How it signs in

API key as a Bearer token (or a Vercel OIDC token for apps deployed on Vercel)

Environment variable
AI_GATEWAY_API_KEY
Safe in browser code
No, keep it on your server
Card at sign-up

Yes

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.

In a paid app
With conditions

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

In monetized videos
With conditions

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

client-work
With conditions

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

Trains on what you send

“Vercel represents and warrants that it shall not use AI Gateway Customer Content to train or improve the AI Products and Services.”

Keeps your data

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

401

The API key or OIDC token is missing, invalid, or revoked.

Check AI_GATEWAY_API_KEY, create a new key if needed, then retry.

402

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.

403 customer_verification_required / free tier

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.

429

A gateway or provider rate limit was exceeded.

Retry after the retry-after time with bounded exponential backoff.

Use it from an agent

Our agent check

5 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP no, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

None found

npm
npm install @ai-sdk/gateway

Instructions in its docs to check first

The docs say

“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.

The docs say

“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.

The docs say

“npx plugins add vercel/vercel-plugin”

Ask the person first; it installs an unpinned plugin into the assistant.

Alternatives

Vercel AI Gateway This page

Free planFree tier

OpenRouter

Pick OpenRouter when you want one OpenAI-compatible key for 500+ models across 80+ providers, outside the Vercel account.

Free planFree tierOfficial MCP

LiteLLM

Pick LiteLLM when you want an open-source proxy you run yourself, with keys, budgets and logging under your control.

Free (open source)Free tier

Cloudflare AI Gateway

Pick Cloudflare AI Gateway when you already use Cloudflare and want caching, rate limiting and logs in front of your own provider keys.

Free planFree tierOfficial MCP

All llm gateways and routers APIs

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.”

  1. 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"

    From vercel.com/docs/ai-gateway/getting-started

  2. Install the AI SDK (or keep your OpenAI client and change its address).

    pnpm add ai@latest

    From vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk

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

    From vercel.com/docs/ai-gateway/getting-started

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
 }'

Mistakes to avoid

Expecting the free credit to work right after creating a key, without a payment method.
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.

Sending personal data or private code to a model labeled stealth.
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.

Treating a budget as a hard stop that also covers your own provider keys.
Also set spending limits at each provider when you use BYOK.

Budgets count only spend on Vercel's credentials; BYOK spend is metered separately.

Editing or giving up on a request that returned 429.
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.

Installing ai 7 on Node.js 20 or in a CommonJS project.
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.