Vercel AI Gateway alternatives: 5 options for hosted and self-hosted routing
Vercel AI Gateway is hosted with no fee on tokens. If you need self-hosting, your own GPUs or a different catalogue, here are 5 alternatives and who each fits.
Vercel AI Gateway is a hosted API that routes requests to many models with no markup and no platform fee on tokens. Teams look elsewhere when they need the gateway inside their own network, want to serve their own GPUs, or want a different catalogue or pricing model. The main alternatives are OpenRouter and Cloudflare AI Gateway (hosted), and LiteLLM, Bifrost and AI Gateway by LayerX (self-hosted).
Facts checked between 27 November and 3 December 2026.
What Vercel AI Gateway does well
Before switching, it's worth being clear about what you'd give up. According to Vercel's docs:
- No fee on tokens. Provider list prices with no markup, including when you bring your own keys.
- Use it from anywhere. It's a hosted API at
ai-gateway.vercel.sh. You need a Vercel account, not a Vercel project. - Several API formats. OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and the AI SDK.
- Many modalities. Text, image, video, speech, transcription, realtime, embeddings and reranking.
- Budgets and logs. Budgets per team, project, API key or team member, and request logs showing provider attempts, latency, tokens and cost.
Why teams look for an alternative
- It's hosted. Every request passes through Vercel. Some data policies don't allow that.
- Your own GPUs aren't in it. It routes to hosted providers, not to vLLM or Ollama servers in your network.
- BYOK and budgets don't fully mix. Budgets cover spend billed through Vercel's keys; BYOK spend is metered separately, although a budget that's been exceeded still blocks BYOK requests in its scope with an HTTP 402 (Vercel docs).
- Add-ons cost extra. Regional hosting, region pinning and team-wide allowlists carry surcharges, and per-user reporting through Custom Reporting is priced separately (pricing).
The alternatives at a glance
| Alternative | Runs where | Cost model | Best for |
|---|---|---|---|
| OpenRouter | Hosted | 5.5% fee on credits; BYOK free up to $25,000 a month | The biggest model catalogue |
| Cloudflare AI Gateway | Cloudflare's network | Core features free; 5% on Unified Billing credits | Teams on Cloudflare who want caching |
| LiteLLM | Your servers | Open source; paid Enterprise | Widest provider coverage, self-hosted |
| Bifrost | Your servers | Apache 2.0; paid enterprise deployments | A light, fast self-hosted gateway |
| AI Gateway by LayerX | Your servers, or managed by LayerX | Commercial licence | Your own GPUs first, budgets per person |
Hosted alternatives
OpenRouter
One key for 400+ models, no markup on provider prices, and a 5.5% fee when you buy credits ($0.80 minimum). It has detailed privacy controls: prompt logging is opt-in, you can enforce zero-data-retention routing, and the Business plan offers EU in-region routing (OpenRouter FAQ). Part of Stripe since 10 November 2026.
Pick it if you want the largest catalogue and fine-grained data retention controls. Compared directly in Vercel AI Gateway vs OpenRouter.
Cloudflare AI Gateway
Available on all Cloudflare plans, with analytics, logging, caching, rate limiting, retries and model fallbacks. Core features are free; credits bought through Unified Billing carry a 5% fee (Cloudflare docs). It caches full responses at Cloudflare's edge, which Vercel leaves to your application.
Pick it if you're already on Cloudflare or want response caching in the gateway. Side by side in Vercel AI Gateway vs Cloudflare AI Gateway.
Self-hosted alternatives
If the reason you're leaving is that requests shouldn't pass through a third party, you need a gateway you run. More in self-hosted OpenRouter alternatives.
LiteLLM
The most used open-source gateway, with 100+ providers, virtual keys, budgets, rate limits, spend tracking and an admin UI in the free version (LiteLLM). It needs Postgres, and Redis at scale. Two malicious releases reached PyPI in 2026, so pin versions. See LiteLLM vs Vercel AI Gateway.
Bifrost
An Apache 2.0 gateway written in Go, with failover, load balancing, semantic caching, virtual keys and budgets. It starts with one command and has a web UI. Guardrails and clustering are part of its enterprise deployments (GitHub).
AI Gateway by LayerX
Built for companies that run their own models as well as buying tokens. AI Gateway puts your vLLM or Ollama servers and vendors like OpenAI, Groq, Together and OpenRouter behind one OpenAI-compatible endpoint, sends requests to your GPUs first and moves to vendors when needed. Each person gets their own keys, daily and monthly token budgets and a list of allowed models. Prompts and responses are never stored. It runs on your servers, or LayerX hosts and manages it.
It's narrower than Vercel's gateway: OpenAI-compatible providers only (Anthropic and Gemini through OpenRouter), chat, embeddings and model listing endpoints, and no caching. See AI Gateway vs Vercel AI Gateway.
Which one should you pick?
- You like Vercel's model but want a bigger catalogue: OpenRouter.
- You want response caching at the edge: Cloudflare AI Gateway.
- Requests must stay in your network: LiteLLM or Bifrost.
- You run your own GPUs and need budgets per person: AI Gateway.
- You're on Vercel and none of the above apply: stay. It's a good default.
Questions
Is there a self-hosted version of Vercel AI Gateway?
No. Vercel AI Gateway is a hosted API. For a gateway on your own servers, look at LiteLLM, Bifrost or AI Gateway by LayerX.
What is the cheapest alternative to Vercel AI Gateway?
Vercel already adds no fee on tokens. Cloudflare's core gateway features are free too. Self-hosted open-source gateways have no usage fee, but you pay to run them.
Can I use Vercel AI Gateway without deploying on Vercel?
Yes. It's a hosted API you can call from any server or cloud. You need a Vercel account for the API key and billing, but not a Vercel project.
Does Vercel AI Gateway support my own GPUs?
It routes to hosted providers. If you want requests to go to your own vLLM or Ollama servers first, you need a self-hosted gateway in front of them.