Vercel AI Gateway
Vercel's unified API to access hundreds of models through a single endpoint. Auto-discovers models via /v1/models catalog. Anthropic Messages compatible.
Vercel AI Gateway is a managed unified API that gives you access to hundreds of AI models from multiple providers through a single endpoint and API key. Built by Vercel (the company behind Next.js), it provides budget management, usage monitoring, load balancing, and automatic fallbacks — all without markup on token pricing.
The gateway supports both OpenAI Chat Completions and Anthropic Messages API formats, making it compatible with virtually any client. For OpenClaw, this means you can route requests through Vercel's infrastructure to any supported provider — Anthropic, OpenAI, Google, xAI, Meta, and more — with zero token markup. You pay the exact same per-token price as going direct to the provider.
Vercel AI Gateway stands out from other gateways with its Bring Your Own Key (BYOK) feature — you can use your existing provider API keys through Vercel's gateway to get the monitoring and fallback benefits without changing billing. It also supports text generation, image generation (Flux, Recraft), video generation (Veo, Kling), and embeddings through a single unified surface.
For OpenClaw users, Vercel AI Gateway is particularly attractive if you're already in the Vercel ecosystem or want a managed gateway with no self-hosting burden. The auto-discovery feature via /v1/models lets OpenClaw dynamically detect available models. The trade-off vs direct provider APIs is the dependency on Vercel's infrastructure, but you gain consolidated monitoring and automatic failover between providers.
Tags: gateway, vercel, unified-api, auto-discovery, zero-markup, byok
Use Cases
- Unified multi-provider access with zero token markup for OpenClaw deployments
- Automatic failover between providers (Anthropic → OpenAI → Google) for high availability
- Consolidated spend monitoring across all AI providers in one dashboard
- Teams already using Vercel who want seamless AI integration
- Image and video generation alongside text through a single API key
- BYOK setups where you want monitoring without changing existing provider billing
Tips
- Use BYOK mode with your existing Anthropic or OpenAI API keys to get monitoring without changing billing.
- Set up budget alerts to cap spending across all providers in one place.
- Model IDs use provider/model format (e.g., anthropic/claude-sonnet-4.6) — same as OpenRouter's convention.
- The /v1/models endpoint lets OpenClaw auto-discover all available models with current pricing.
- Use fallback chains: configure primary and secondary providers so requests automatically retry on failure.
- Gemini 3 Flash at $0.10/$0.40 per MTok through the gateway is one of the cheapest capable options for cron and heartbeats.
Known Issues & Gotchas
- Requires a Vercel account — gateway is tied to Vercel's platform even though you don't need to deploy apps there.
- Free plan has usage limits. Higher tiers (Pro, Enterprise) required for production workloads.
- Model availability depends on Vercel's integration status with each provider. New models may not appear immediately.
- The gateway adds routing latency (typically 50-150ms) compared to direct provider API calls.
- BYOK (Bring Your Own Key) lets you use existing provider keys but you still route through Vercel's network.
- Budget and rate limit controls are per-gateway, not per-model. Fine-grained cost control requires manual monitoring.
- Not all provider-specific features (like Anthropic's explicit prompt caching control) may be fully supported through the gateway.
Alternatives
- OpenRouter
- Cloudflare AI Gateway
- LiteLLM
- Direct Provider APIs
Community Feedback
Vercel AI Gateway with zero markup on tokens is a strong pitch. You get monitoring, budgets, and fallbacks for free. The BYOK option means you can try it without changing billing.
— Hacker News
If you're already deploying on Vercel, the AI Gateway is a no-brainer. One API key, hundreds of models, and it just works with AI SDK.
— Reddit r/nextjs
The lock-in concern is real. Vercel AI Gateway is convenient but you're adding another dependency. For OpenClaw, direct provider APIs are simpler.
— Reddit r/webdev
Configuration Examples
Basic Vercel AI Gateway setup
providers:
vercel-ai-gateway:
apiKey: your-ai-gateway-key
model: vercel-ai-gateway/anthropic/claude-sonnet-4.6Budget-friendly with Gemini Flash
providers:
vercel-ai-gateway:
apiKey: your-ai-gateway-key
model: vercel-ai-gateway/google/gemini-3-flash
# $0.10/MTok input — excellent for heartbeats/cronBYOK with existing Anthropic key
providers:
vercel-ai-gateway:
apiKey: your-ai-gateway-key
# Configure BYOK in Vercel dashboard with your
# Anthropic API key for direct billing
model: vercel-ai-gateway/anthropic/claude-opus-4.6