Head to head

LiteLLM vs Vercel AI Gateway: run it yourself or let Vercel run it?

LiteLLM is an open-source proxy you host. Vercel AI Gateway is a hosted API with no markup on tokens. We compare cost, budgets, privacy and setup.

LiteLLM and Vercel AI Gateway both give your apps one API for many models, with budgets, logs and failover. The difference is who runs it. LiteLLM is open source and runs on your servers, so requests stay in your network and you operate it. Vercel AI Gateway is a hosted API with no markup on tokens and nothing to operate, but every request passes through Vercel.

Facts checked between 27 November and 3 December 2026.

At a glance

LiteLLMVercel AI Gateway
Where it runsYour serversVercel, at ai-gateway.vercel.sh
CostFree open source, plus hosting; Enterprise quote-basedNo markup on tokens; some add-ons charged
Providers100+Vercel's catalogue
API formatsOpenAI format (and more endpoints)OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, AI SDK
BudgetsPer key, user and team (free)Per team, project, API key or team member
Your own GPUsYes, as providersNot its purpose
LoggingSpend logs; prompts only if you opt inRequest logs with provider attempts, latency, tokens and cost
OperationsYou run Python, Postgres, RedisNone

Sources: LiteLLM, Vercel.

Cost

LiteLLM has no usage fee. You pay for servers and the people who run them, and an Enterprise licence if you need SSO beyond 5 users, audit logs or secret managers (LiteLLM Enterprise pricing).

Vercel adds no markup to provider token prices, including with your own keys. Costs come from add-ons: regional hosting, region pinning and team-wide allowlists carry surcharges, Custom Reporting is priced separately, and turning off fallback to Vercel's keys makes BYOK requests cost $0.20 per 1,000 (Vercel pricing).

Budgets and controls

Both handle budgets. LiteLLM's free proxy sets budgets and rate limits per key, user and team. Vercel sets budgets per team, project, API key or team member and returns HTTP 402 once one is exceeded; budgets are soft caps and cover spend billed through Vercel's keys, though an exceeded budget also blocks BYOK requests in its scope (Vercel docs).

Privacy and where requests go

With LiteLLM, requests go from your network to the provider, or stay inside your network if you serve your own models. LiteLLM doesn't store prompts unless you enable store_prompts_in_spend_logs.

With Vercel, requests pass through Vercel's infrastructure first. Vercel offers data-handling settings, regional inference and allowlists, some as paid add-ons. Check them against your data policy.

Which one should you pick?

  • Pick Vercel AI Gateway if you want nothing to run, you build with the AI SDK, or you need OpenAI Responses or Anthropic Messages formats out of the box.
  • Pick LiteLLM if requests must stay in your network, you serve your own models, or you need providers outside Vercel's catalogue.
  • See more options in LiteLLM alternatives and Vercel AI Gateway alternatives.

For teams sharing their own GPUs

AI Gateway by LayerX sits between the two: it runs on your servers, or LayerX hosts and manages it for you. Requests go to your vLLM or Ollama servers first and move to vendors when needed. Every person has their own keys and token budgets, limited to the models they're allowed, and no prompt is ever stored. It supports OpenAI-compatible providers only and has no caching. See AI Gateway vs Vercel AI Gateway and AI Gateway vs LiteLLM.

Questions

Is Vercel AI Gateway cheaper than LiteLLM?

Vercel adds no fee on tokens, and LiteLLM has no usage fee either. The real cost difference is operations: LiteLLM needs servers and maintenance; Vercel charges for some add-ons.

Can LiteLLM use Vercel AI Gateway as a provider?

Vercel's docs list LiteLLM among framework integrations for Python, so you can call Vercel's gateway from LiteLLM.

Which one is better for the AI SDK?

Vercel AI Gateway is built to work with Vercel's AI SDK. LiteLLM works with any OpenAI-compatible client.

Can I self-host Vercel AI Gateway?

No. It's a hosted API. LiteLLM is the self-hosted option.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?