Skip to content

LiteLLM vs OpenRouter: which one do you need?

OpenRouter is a hosted service where one account and one API key reach hundreds of models, with provider prices passed through and a fee when you buy credit. LiteLLM is free, open-source software you run yourself, as a Python library or a proxy server, with your own provider keys. Pick OpenRouter to start fast; pick LiteLLM when a team needs its own gateway, budgets and keys on its own servers.

Updated

OpenRouter and LiteLLM both give you one way in to many AI models, which is why they get compared. They are different kinds of thing. OpenRouter is a service you sign up for. LiteLLM is software you run.

If you’re one person who wants many models behind one key, OpenRouter is the shorter path. If you run AI access for a team and want the traffic, the keys and the budgets on your own servers, LiteLLM is built for that. Every fact below comes from each project’s own docs, checked on 5 December 2026.

What OpenRouter is

OpenRouter describes itself as a unified API for the major models on the market (FAQ, checked 5 Dec 2026). Its quickstart says you reach hundreds of models through a single endpoint, and that it handles fallbacks (quickstart, checked 5 Dec 2026). By default it spreads requests across providers by weighing price against speed and reliability, not by always taking the cheapest (provider routing, checked 5 Dec 2026).

  • Hosted. Nothing to install or run. You create an account, buy credit and make a key.
  • OpenAI-compatible. The base address is https://openrouter.ai/api/v1, and the OpenAI SDK works as a drop-in by pointing it there (quickstart, checked 5 Dec 2026).
  • One key. A single OpenRouter key works across all its models.

How you pay. OpenRouter says it passes through the providers’ prices with no markup on inference. The fee is on buying credit: 5.5% with a $0.80 minimum by card on its standard pay-as-you-go plan, so $10 of credit costs $10.80 before tax, and 5% for crypto (FAQ, checked 5 Dec 2026). It also lists free models with low daily request limits.

Using your own provider keys. OpenRouter has its own BYOK feature for plugging in keys from providers. On pay-as-you-go it includes $25,000 a month of BYOK use with no fee, measured at list price, then charges 5% of what the same model would normally cost on OpenRouter (BYOK docs, checked 5 Dec 2026).

Logging. OpenRouter says it doesn’t log prompts and completions by default, and that opting in to logging earns a 1% discount (FAQ, checked 5 Dec 2026).

What LiteLLM is

LiteLLM, from BerriAI, is an open-source library with one interface to call more than 100 models (docs, checked 5 Dec 2026). You use it in one of two ways:

  • Python SDK. A library inside your own Python code, described as a drop-in replacement for the OpenAI client.
  • Proxy server. A gateway you host yourself, which the docs aim at platform teams managing model access across an organization.

The proxy is where most of the features are. The docs list virtual keys with budgets per key, team and user, spend tracking across providers, load balancing with automatic fallbacks, logging, guardrails, caching and an admin UI (docs, checked 5 Dec 2026). Replies come back in the OpenAI Chat Completions format whatever the provider.

What it takes to run. You bring the keys for each provider. Virtual keys need a Postgres database, and you create them with a master key, the proxy’s admin credential (virtual keys docs, checked 5 Dec 2026). LiteLLM’s site offers one-click deploys into your own AWS, Google Cloud or Azure account and says the self-hosted gateway sends no telemetry (litellm.ai, checked 5 Dec 2026). It doesn’t mention a hosted version.

How you pay. The gateway is free. The code is MIT-licensed, except a separate licence for the enterprise folder (LICENSE on GitHub, checked 5 Dec 2026). LiteLLM sells an Enterprise plan with SSO, audit logs and dedicated support, and doesn’t publish its price (litellm.ai, checked 5 Dec 2026). Your other costs are the providers’ bills and the server.

Side by side

OpenRouterLiteLLM
What it isHosted serviceOpen-source library and self-hosted proxy
Who runs itOpenRouterYou
Keys you needOne OpenRouter keyOne per provider, plus the proxy’s master key
Keys you hand outOpenRouter keysVirtual keys with budgets
Model pricesProviders’ prices, no markup on inferenceProviders’ prices, paid to each provider
FeesOn credit purchases; BYOK fee above the free allowanceNone for the open-source gateway; paid Enterprise plan
Where your requests goThrough OpenRouter to the providerThrough your server to the provider
SetupAn account and creditThe Python library: a package install. The proxy: a server, and Postgres for virtual keys

Which one do you need?

Pick OpenRouter if you’re one person or a small team, you want to try many models without opening an account at each company, and you don’t want to run a server. One balance covers everything.

Pick LiteLLM if you run AI access for an organization. You want to hand out keys with budgets, run the gateway on your own infrastructure, and use the provider contracts you already have.

Use both if you want LiteLLM’s gateway and OpenRouter’s catalog. LiteLLM lists OpenRouter as a provider, so OpenRouter models can sit behind your proxy as openrouter/ plus the model name (LiteLLM docs, checked 5 Dec 2026).

Our opinion: for one person on a laptop, running the LiteLLM proxy is a lot of moving parts to save a card fee. The Python library alone is light, and fine if you write your own scripts. Its strengths, virtual keys, team budgets and a self-hosted gateway, solve problems a single user doesn’t have. For a company with twenty developers and its own Anthropic and OpenAI contracts, it’s the other way round.

Where WLN fits

WLN is a Mac chat app with a coding team, and it runs on your own keys. It works with OpenRouter directly: paste an OpenRouter key in Settings › Models and API key, and the Team rows offer OpenRouter models with their prices. You can also add any OpenRouter model by its ID. WLN’s ready-made team presets (Balanced, Cheapest, Strongest) use OpenRouter models, so they need an OpenRouter key.

WLN does not connect to a LiteLLM proxy. It talks to OpenRouter, Anthropic, OpenAI and SubQ at their own addresses and has no setting for a custom server address. If your company routes all model traffic through LiteLLM, WLN can’t join that setup today.

With an OpenRouter key, WLN shows what each reply cost and refreshes model prices about every six hours. Its Usage and billing tab shows your OpenRouter balance and what this key has spent. Every new chat also starts with a $5 spending limit. Chat is free; you pay OpenRouter for what you use.

Questions

Is LiteLLM free?

The open-source gateway is. LiteLLM’s site calls it MIT-licensed and free to self-host, and sells an Enterprise plan with SSO, audit logs and support at a price you ask for (litellm.ai, checked 5 Dec 2026). You still pay your model providers, plus whatever your server costs.

Does OpenRouter mark up model prices?

OpenRouter says it passes through the providers’ prices with no markup on inference. It charges a fee when you buy credit: 5.5% with a $0.80 minimum by card on its standard pay-as-you-go plan (OpenRouter FAQ, checked 5 Dec 2026).

Can I use LiteLLM and OpenRouter together?

Yes. LiteLLM lists OpenRouter as a provider: you set your OpenRouter key and call models as openrouter/ followed by the model name (LiteLLM docs, checked 5 Dec 2026).

Can WLN connect to my LiteLLM proxy?

No, not today. WLN talks to OpenRouter, Anthropic, OpenAI and SubQ at their own addresses, and it has no setting for a custom server address. It works with an OpenRouter key.

LiteLLM, BerriAI, OpenRouter, OpenAI, Anthropic, SubQ, GitHub, AWS, Google Cloud, Microsoft Azure and PostgreSQL are trademarks of their owners. WLN is an independent app and isn’t affiliated with or endorsed by them.