Vercel AI Gateway
ProviderGateway that routes model requests across providers with fallbacks
- Price
- Free tier, then paid
- Access
- AI Gateway API key
About
Vercel's managed gateway for calling models from many providers with one key. It adds fallbacks, budgets and request logs, and bills tokens at provider list price. It works from any cloud, not only Vercel; the free monthly credit covers a subset of models.
What you can do with it
- Call OpenAI, Anthropic, Google and other models through one OpenAI-compatible API
- Fall back to another provider or model automatically when a request fails
- Set spend budgets and inspect cost, latency and tokens for every request
Get started
- Create an AI Gateway API key in the Vercel dashboard
- Add a payment method to use the free monthly credit
Example
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": "Explain AI Gateway in one sentence."}]
}'Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- JavaScript/TypeScript, Python
- MCP server
- None