An AI gateway is a single doorway between your app and many AI models. Your app sends every request to one address in one format, and the gateway passes it on to the right model company. OpenRouter, LiteLLM and Vercel AI Gateway are three well-known gateways. They do the same basic job, but they differ in who runs the doorway, whose keys pay for the models, and what you pay on top.

What every gateway does

All three share the same core:

  • One address and one format. Each one accepts the OpenAI-style request format that most apps and agents already speak. Switching models usually means changing a name, not code.
  • Fallbacks. If one provider fails, the gateway can try another provider or another model.
  • Spend tracking and limits. You can see what each model costs and set a budget.

Your prompts also pass through the gateway on their way to the model, so whoever runs it can, in principle, see them.

OpenRouter: hosted, with one balance

is a company that runs the gateway for you. You open one account, buy credit and get one key for more than 600 models.

From its pricing page on 29 November 2026: model use is billed at the provider’s list price, and OpenRouter charges a 5.5% fee when you buy credits on the Standard plan. A free tier allows 50 requests a day on free models. You can also bring your own provider keys; the first $25,000 of use per month that way has no OpenRouter fee.

LiteLLM: free software you run yourself

LiteLLM is open-source software under the MIT licence. There is no company in the middle: you install it on your own computer or server, often with Docker, and it becomes your private gateway. It comes in two forms, a Python library for developers and a proxy, a small server that any OpenAI-compatible app can talk to.

The big difference is the keys. LiteLLM does not sell model access. You still open an account and get a key from each model company you want, and LiteLLM uses those keys for you. It supports more than 100 providers, and it can also put a local model, for example one running in Ollama, behind the same address.

LiteLLM costs nothing to use. Your costs are the computer it runs on and your time to install updates. Its team keys with hard budgets, called virtual keys, need a Postgres database. Because it holds all your provider keys, it should never be open to the internet without protection.

Vercel AI Gateway: hosted, without a token fee

Vercel is a website-hosting company. Its product in this comparison is Vercel AI Gateway, a hosted gateway like OpenRouter. Do not confuse it with the AI SDK, Vercel’s free, open-source TypeScript library for writing AI code. The AI SDK can call AI Gateway, but it is a toolkit inside your app, not a router.

AI Gateway lives at ai-gateway.vercel.sh. You need a Vercel account to create a key, but your app does not have to run on Vercel. It speaks the OpenAI request formats and Anthropic’s format too.

From Vercel’s pricing docs on 29 November 2026: there is no markup and no platform fee on model tokens, also when you bring your own keys. You buy credits and pay each provider’s list price; payment processing fees may apply. Every account gets a monthly free credit ($5, according to Vercel’s own gateway comparison) for a smaller set of models, with lower rate limits; it needs a payment method on file and stops once you buy credits. Budgets can be set per team, project, key or team member. Some extras cost money, for example the EU or US regional address, which adds 5% of the inference cost.

Side by side

OpenRouter LiteLLM Vercel AI Gateway
Who runs it OpenRouter You Vercel
Keys you need One OpenRouter key One key per model company One Vercel key
Cost on top of model prices 5.5% when buying credits (Standard) None; your server and time None on tokens; paid extras
Setup Minutes An evening or more Minutes

Which one fits which job

  • You want to try many models quickly and run nothing yourself: OpenRouter.
  • You want your keys and logs to stay on your own machine, or to mix local and paid models behind one address: LiteLLM, if you are happy to maintain it.
  • You are building a web app, especially with the AI SDK or on Vercel, and want no token fee: Vercel AI Gateway.
  • You have settled on one model from one company: a direct key from that company may be simplest of all.

Sara picks a gateway

Sara, the freelance designer, runs a self-hosted inbox agent. A small local model in Ollama sorts her emails for free. For client replies she wants a stronger paid model as a backup.

She weighs two options. LiteLLM on her laptop could put the local model and one paid key behind one address, with a hard budget and no fee. But she would have one more program to install, update and secure. An OpenRouter key with a $10 limit takes five minutes and costs a small fee only when she buys credit. She chooses OpenRouter for now.

Months later, a developer builds a chat helper for her portfolio website with the AI SDK. For that project, Vercel AI Gateway fits: no token fee and a budget just for the website. Because all three speak the same OpenAI-style format, changing gateway later means a new address and key, not a new agent.

Recap

  • An AI gateway gives your app one address and one format for many AI models, with fallbacks and spend limits.
  • OpenRouter is hosted: one key and one balance, with a 5.5% fee on credit purchases (Standard, November 2026).
  • LiteLLM is free, open-source software you run yourself, with your own keys from each provider; it can include local models.
  • Vercel AI Gateway is hosted with no fee on tokens; the AI SDK is a separate coding library, not a gateway.
  • Your prompts pass through whichever gateway you pick, so check who runs it.

Sources