Vercel AI Gateway

Sağlayıcı

Gateway that routes model requests across providers with fallbacks

Fiyat
Free tier, then paid
Erişim
AI Gateway API key

Hakkında

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.

Neler yapabilirsin

  • 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

Başlarken

  1. Create an AI Gateway API key in the Vercel dashboard
  2. Add a payment method to use the free monthly credit

Örnek kod

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

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Python
MCP sunucusu
Yok

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .