OpenRouter is a hosted API putting 600+ models behind 1 key and 1 bill (5.5% Standard credit fee, 8% Business), with no self-hosted edition listed on its pricing or enterprise pages. LiteLLM is an open-source Python SDK and self-hosted proxy (MIT outside its enterprise directory) run on your own keys with no token fee, where you run ops. LiteLLM can also route to OpenRouter.
OpenRouter became part of Stripe on November 10, 2026, following Stripe's August 19 agreement, with both companies confirming the close and OpenRouter stating its commitment to neutrality stays the same. LiteLLM is built by Berri AI and offers a self-hosted open-source gateway, a commercial Enterprise license and a sign-up-gated LiteLLM Cloud Beta.
We build Experiential, an open-source and hosted gateway included in the cost and decision tables below. Product claims come from live vendor pricing pages, docs and repositories checked through November 23, 2026 (Stripe closing posts checked November 16); the cost math and workload recommendations are our analysis.
OpenRouter vs LiteLLM side by side
OpenRouter and LiteLLM both expose an OpenAI-compatible API across many model providers, yet they differ on who holds the provider accounts, who runs the servers and how you pay.
| Dimension | OpenRouter | LiteLLM |
|---|---|---|
| What it is | Hosted multi-provider API and marketplace | Open-source Python SDK and self-hosted proxy server |
| Hosting and ops | Managed by OpenRouter; pricing and enterprise pages list no self-hosted edition | Self-hosted on your machines via Python, Docker or Kubernetes; LiteLLM Cloud Beta exists behind a work-email sign-up form |
| Pricing and fees | Provider list price + 5.5% on Standard credit purchases ($0.80 min), 8% on Business; BYOK free to $25,000/mo then 5% | Open-source gateway $0 forever; Enterprise priced by annual request capacity, never per token; you pay servers and provider bills |
| Keys and billing | 1 OpenRouter key and 1 prepaid credit balance, or BYOK on Standard and up | Your own direct provider API keys and provider bills; proxy issues virtual keys to internal users and teams |
| Model and provider coverage | 600+ models from 80+ providers on paid plans; 25+ free models on Free | 100+ providers, including OpenAI, Anthropic, Bedrock, Azure, Vertex, Ollama, vLLM and OpenRouter |
| Routing and fallbacks | Automatic weighted routing on effective price, speed, TTFT, rate limits and reliability; per-request provider and models controls | Config-driven load balancing (simple-shuffle, least-busy, latency or usage) plus fallbacks, context_window_fallbacks and content_policy_fallbacks |
| Data path and prompt storage | Traffic transits OpenRouter servers; metadata only by default, except Safety Retention endpoints, where OpenRouter or the provider may retain prompts to prevent abuse (ZDR only excludes them); CSAM screening and related retention obligations still apply, including to ZDR traffic (opt-in logging also stores prompts) | Proxy and keys stay in your network (calls to external provider APIs still leave your network; air-gapped setups need Enterprise plus internal model endpoints); spend metadata in Postgres; prompts not stored unless store_prompts_in_spend_logs is enabled |
| Enterprise features | EU/US in-region routing and 1,000 workspaces on Business (custom on Enterprise); SSO/SAML, SCIM, Private Endpoints add-on, SLAs and SOC 2 Type II on Enterprise | SSO up to 5 users free; Enterprise adds SSO past 5 users, SCIM, JWT auth, audit logs, Vault/KMS secret managers, air-gapped, multi-region, SLAs and SOC 2 Type II |
| License | Proprietary hosted service | MIT outside litellm/enterprise/; commercial license inside litellm/enterprise/ |
How the architectures differ
OpenRouter replaces your provider accounts with 1 hosted endpoint, while LiteLLM sits inside your code or VPC and routes to provider accounts you already hold.
Is LiteLLM like OpenRouter?
LiteLLM and OpenRouter both expose 1 OpenAI-compatible API across many models, but OpenRouter is a hosted marketplace while LiteLLM is self-hosted software you run on your own keys. Per its Enterprise docs, LiteLLM ships in 2 forms, starting with an in-process Python SDK that translates calls across 100+ providers with no extra server.
The LiteLLM Proxy is a standalone server you self-host for any language, compatible with the OpenAI and Anthropic SDKs. It adds virtual keys, budgets, rate limits, spend tracking, load balancing and an Admin UI on top of your own provider credentials.
OpenRouter, by contrast, is a managed service. You create 1 account, buy credits and send OpenAI-compatible requests to /api/v1/responses, /api/v1/chat/completions or /api/v1/completions per its FAQ, or Anthropic Messages calls to /api/v1/messages per its model fallbacks docs, without provisioning accounts across 80+ model providers.
What running LiteLLM in production requires
Running the LiteLLM proxy in production requires provisioning compute, PostgreSQL, Redis for multi-worker deployments and database schema upgrades alongside the proxy itself. A basic CLI launch needs no database, but virtual keys, spend tracking and the Admin UI require a database, per the CLI quick start; PostgreSQL is the primary supported production database, per the production checklist.
That checklist recommends starting load testing with 1 vCPU and 4 GiB of memory per worker, batches spend writes every 60 seconds (proxy_batch_write_at: 60) and runs prisma migrate deploy on startup unless you set DISABLE_SCHEMA_UPDATE=true and run migrations from a Helm pre-upgrade Job. Per the CLI quick start, LiteLLM 1.84.0+ also requires Python 3.10 or higher.
Once you run more than 1 worker or replica, LiteLLM's checklist says to run Redis 7.0 or newer. Per What Needs Redis, without Redis a 100 requests/minute cap across 4 workers lets 400 through and key revocations lag across pods. Past about 1,000 requests/second or 10+ instances, the checklist routes spend writes through use_redis_transaction_buffer: true.
Cost compared at $1,000, $10,000 and $50,000 a month
OpenRouter's percentage fee is small at low spend and increases proportionally as monthly token volume climbs, while LiteLLM charges no per-token fee but adds server, database and engineering costs.
OpenRouter bills tokens at each provider's list price and charges its platform fee when you buy credits: 5.5% on Standard ($0.80 minimum per the docs FAQ, crypto 5%) and 8% on Business, per its pricing page. Refunds for unused credits must be requested within 24 hours (cryptocurrency payments are never refundable), platform fees are non-refundable and unused credits may expire after 1 year.
Using your own provider keys (BYOK) on OpenRouter Standard or Business carries no fee for the first $25,000 of list-price inference a month, then 5% deducted from your OpenRouter credits. On Standard, buying $1,250 of credits to cover 5% on a $25,000 overage adds 5.5%, costing $1,318.75. These totals assume the fee is added on top of the credits you buy, which OpenRouter's pricing page doesn't spell out.
Can you use LiteLLM for free?
You can use LiteLLM's open-source Python SDK and self-hosted proxy for free in production with no license fee. LiteLLM's pricing page states the open-source gateway is free to self-host forever, and its LICENSE places everything outside litellm/enterprise/ under MIT.
Free software still carries operating costs. You pay direct provider bills, hosting infrastructure for compute, Postgres and Redis, and engineering time for upgrades (the SDK alone needs no database; the proxy needs PostgreSQL for virtual keys and spend tracking, and Redis once it runs several workers), plus a custom capacity-based Enterprise license if you need SSO beyond 5 users, audit logs, secret managers or SLAs.
Worked monthly totals across 3 spend levels
At $1,000 a month OpenRouter's Standard fee is $55, while at $50,000 a month it reaches $2,750 ($4,000 on Business); self-hosted LiteLLM costs less only when your incremental infrastructure, operations and optional Enterprise licensing stay below OpenRouter's percentage fee.
| Setup | $1,000/mo tokens | $10,000/mo tokens | $50,000/mo tokens | What else you pay |
|---|---|---|---|---|
| OpenRouter Standard (credits) | $1,055 ($55 fee) | $10,550 ($550 fee) | $52,750 ($2,750 fee) | No self-hosted proxy infrastructure; assumes 1 monthly top-up |
| OpenRouter Business (credits) | $1,080 ($80 fee) | $10,800 ($800 fee) | $54,000 ($4,000 fee) | Adds EU/US in-region routing and 1,000 workspaces |
| OpenRouter Standard (BYOK) | $1,000 ($0 fee) | $10,000 ($0 fee) | $51,318.75 ($1,318.75 fee) | 5% above $25,000/mo, paid from Standard credits (5.5% fee) |
| LiteLLM OSS (self-hosted) | $1,000 + infra | $10,000 + infra | $50,000 + infra | Compute, Postgres, Redis and ops; Enterprise license if needed |
| Experiential (hosted credits, 0% markup) | $1,000 ($0 fee) | $10,000 ($0 fee) | $50,000 ($0 fee) | Models we serve through OpenRouter are a passthrough at OpenRouter's price plus its 5.5% fee; the $0 fee covers every other route. Top-ups without a paid plan stay on Free (default storage, and the Section 7.4 Data Licensing Program: de-identified content may train AI models and be licensed to third parties). ZDR and turning storage off require Pro ($20/mo, includes $20 credits), and BYOK for paid provider accounts generally does; upgrading does not auto-disable storage, and paid plans are excluded from Data Licensing unless opted in |
At $10,000 a month, OpenRouter Standard fees reach $550 ($6,600 a year), and at $50,000 a month they reach $2,750 ($33,000 a year) on Standard or $4,000 ($48,000 a year) on Business. Self-hosting LiteLLM saves money only when your compute, PostgreSQL, Redis, engineering upkeep and any Enterprise license cost less than those fees.
Routing, fallbacks and BYOK behavior
OpenRouter automates provider selection across 80+ upstreams using live traffic metrics, while LiteLLM executes explicit routing and fallback rules across the deployments you configure.
How OpenRouter routes and falls back
OpenRouter's default routing weighs each provider's effective price, throughput, time to first token, rate limits, reliability and tool-call quality from recent traffic, keeping follow-up turns on the same provider while its prompt cache is warm. Failed attempts on OpenRouter credits are not billed for model tokens, per its pricing FAQ.
You can override routing per request with provider (order, only, ignore, sort, allow_fallbacks, zdr) and pass an ordered models array for model fallbacks. On BYOK, note 2 defaults: if your keys fail or rate-limit, OpenRouter falls back to its shared capacity (spending credits) unless you tighten Shared capacity fallback, and BYOK spend is excluded from guardrail and workspace budgets unless Include BYOK spend is enabled.
How LiteLLM routes and falls back
LiteLLM routes strictly across deployments declared in your config.yaml or database using strategies such as simple-shuffle (default), least-busy, usage-based-routing or latency-based-routing, with configurable retries and deployment cooldowns (allowed_fails, cooldown_time).
Its reliability docs split failover into 3 separate chains: fallbacks (general errors like 429 and 500), context_window_fallbacks and content_policy_fallbacks, plus default_fallbacks. Before trying a fallback target, the proxy enforces the calling virtual key's model allowlist and re-checks key and user max_budget, and callers or keys can set disable_fallbacks: true.
Data path, prompt retention and compliance
By default neither OpenRouter nor LiteLLM logs prompt or response content, with 2 OpenRouter exceptions: on Safety Retention endpoints, OpenRouter or the provider may retain prompts and responses to prevent abuse, and content can be kept for CSAM review, reporting and related legal preservation. Upstream model providers still apply their own retention policies, so check the selected endpoint's zero data retention (ZDR) terms; a private deployment alone doesn't guarantee zero retention.
The network hop differs too: OpenRouter routes every call through its hosted servers, while LiteLLM's Python SDK adds zero extra network hops and the self-hosted LiteLLM proxy keeps the proxy hop inside your own VPC.
OpenRouter data handling
Every OpenRouter request transits OpenRouter's hosted infrastructure. Per its data collection docs, OpenRouter logs metadata only and keeps prompts only if you opt in (Private Input & Output Logging, or OpenRouter Use of Inputs/Outputs for a 1% usage discount), or where retention is required for CSAM review, reporting and legal preservation. On Safety Retention endpoints, OpenRouter or the provider may also keep prompts and responses to prevent abuse, never for training.
Self-serve accounts can route to Safety Retention endpoints until you enforce ZDR and choose ZDR only, which excludes them. CSAM screening and related retention obligations still apply, including to ZDR traffic. OpenRouter also samples a small share of prompts for anonymous categorization, done by a model with a zero-data-retention policy and never linked to your account.
EU (eu.openrouter.ai) and US (us.openrouter.ai) in-region routing require Business or Enterprise; EU shared routing uses Europe (EU/EEA, UK and Switzerland), while account and billing data may still be processed in the US, per the FAQ.
LiteLLM data handling
Self-hosted LiteLLM keeps the proxy, credentials and logs inside your VPC or on-premises environment. Traffic to external provider APIs still leaves your network to reach those providers; air-gapped deployments require LiteLLM Enterprise paired with model endpoints hosted inside the isolated environment. Both OpenRouter Enterprise and LiteLLM Enterprise report SOC 2 Type II audits on their enterprise pages.
Per LiteLLM's UI logs docs, the proxy records spend and error metadata in your Postgres database and does not store request or response content unless you opt in with store_prompts_in_spend_logs. Even when enabled globally, admins can disable prompt storage per key or per team, and token-shaped secrets are masked by default.
Using LiteLLM and OpenRouter together
LiteLLM natively supports OpenRouter as an upstream provider, so you can run LiteLLM as your internal gateway while calling OpenRouter for long-tail models or backup capacity.
High-volume models run on your direct OpenAI, Anthropic, Bedrock or Azure keys at 0% gateway fee, while internal apps fall back to OpenRouter (or another OpenAI-compatible gateway) on rate limits or for models outside your direct contracts.
This minimal routing config.yaml configures those routes without a database. Prefix OpenRouter models with openrouter/ and set OPENROUTER_API_KEY; for any OpenAI-compatible gateway, LiteLLM's config docs use openai/ with api_base and api_key:
model_list: # Primary route: your direct OpenAI key (0% gateway fee) - model_name: chat-primary litellm_params: model: openai/gpt-6.2-sol api_key: os.environ/OPENAI_API_KEY # Backup route 1: OpenRouter as an upstream provider - model_name: chat-openrouter litellm_params: model: openrouter/anthropic/claude-sonnet-5.5 api_key: os.environ/OPENROUTER_API_KEY # Backup route 2: an OpenAI-compatible gateway (Experiential example) - model_name: chat-experiential litellm_params: model: openai/gpt-6.2-sol api_base: https://api.experientiallabs.ai/v1 api_key: os.environ/EXPLABS_API_KEY router_settings: routing_strategy: simple-shuffle num_retries: 2 allowed_fails: 3 cooldown_time: 30 fallbacks: - chat-primary: [chat-openrouter, chat-experiential] general_settings: master_key: os.environ/LITELLM_MASTER_KEY store_prompts_in_spend_logs: false
Running the config
Start the proxy with litellm --config config.yaml after exporting LITELLM_MASTER_KEY (a long random value; LiteLLM's production checklist says it must start with sk-, and the proxy won't start without a key). Point an OpenAI SDK client at http://localhost:4000 with model="chat-primary" and pass that master key as api_key (the proxy answers 401 to an invalid key); issuing virtual keys, tracking spend and using the Admin UI require adding a PostgreSQL database_url under general_settings, per the CLI quick start.
We checked that this file parses as YAML (Ruby 2.6.10, Psych 3.1.0) and matched each key to LiteLLM's config, routing and OpenRouter provider docs as read on November 23, 2026, when the current release was 1.110. Before v1.109.0 the router treats allowed_fails: 3 as unset. We did not run it against a live proxy server or live provider keys.
Decision table: which setup fits your workload
Picking between OpenRouter, LiteLLM, a hybrid architecture, a zero-markup hosted gateway or direct provider SDKs comes down to monthly spend, network boundaries and operational appetite.
| Situation | Best fit | Why |
|---|---|---|
| Solo builder or small team testing many models at low to moderate monthly spend | OpenRouter | 600+ models on 1 key and 1 bill; when spend is low, the 5.5% Standard fee can stay below the cost of running Postgres, Redis and proxy upkeep. |
| Enterprise using AWS Bedrock, Azure OpenAI or Vertex credits in a VPC | LiteLLM (self-hosted) | Keeps the proxy and provider credentials inside your cloud network on existing commitments (traffic still goes to your chosen Bedrock, Azure or Vertex endpoints), with virtual keys, budgets and Enterprise SSO/SCIM. |
| Regulated or air-gapped environment where no third-party SaaS gateway may touch prompts | LiteLLM (self-hosted) | OpenRouter's pricing and enterprise pages list no self-hosted edition; LiteLLM keeps the proxy inside your VPC, and Enterprise supports air-gapped setups paired with internally hosted model endpoints. |
| Python service calling 2 or 3 providers with no need for central virtual keys | LiteLLM Python SDK (or direct SDKs) | Normalizes provider APIs in-process with zero proxy servers, databases or gateway fees. |
| App using 1 model family from 1 provider | Direct provider SDK | A hosted gateway or standalone proxy adds a network hop with no multi-provider benefit; LiteLLM's Python SDK runs in-process without a separate proxy hop, though a direct SDK keeps dependencies minimal. |
| Platform team needing internal budgets plus access to long-tail or day-0 models | LiteLLM in front of OpenRouter | Direct keys handle core volume at 0% fee; OpenRouter serves overflow and niche models behind the same virtual keys. |
| Growing product at higher hosted credit spend that wants 0% markup and no self-hosted proxy infrastructure to maintain | Zero-markup hosted gateway (such as Experiential) | Removes the 5.5% to 8% credit fee on every model the gateway doesn't serve through OpenRouter, without asking your team to maintain Postgres, Redis and proxy upgrades. |
| Team that wants a hosted gateway today with an Apache-2.0 self-hosted path later | Experiential (hosted + Apache-2.0 gateway) | Starts on hosted credits with no markup of our own, or BYOK, with an Apache-2.0 open-source gateway you can run on your own infrastructure. |
When OpenRouter or LiteLLM wins
OpenRouter wins on catalog breadth across 80+ providers with no self-hosted proxy infrastructure to maintain, while LiteLLM wins on self-hosted proxy control and direct cloud commitments.
When OpenRouter is the right call
- You use many models across 80+ providers and want 1 key, 1 bill and automatic failover with no self-hosted proxy infrastructure to maintain.
- Your monthly spend is small enough that 5.5% on Standard credits ($55 on $1,000) stays below what your team would spend operating a database-backed proxy.
- Your BYOK traffic stays under $25,000 of list-price inference a month on Standard or Business, which incurs $0 in OpenRouter fees.
- You want a hosted gateway that logs metadata only by default on every tier (Safety Retention endpoints may retain prompts for abuse prevention until you choose ZDR only, while CSAM screening and related retention obligations still apply, including to ZDR traffic).
When LiteLLM is the right call
- Security or compliance policies require the gateway proxy and credentials to stay inside your VPC or on-premises cluster, or require an air-gapped deployment paired with internally hosted model endpoints.
- Your spend runs through negotiated OpenAI, Anthropic, AWS Bedrock, Azure OpenAI or Vertex AI contracts that you want behind 1 internal gateway.
- You have platform engineers ready to run Postgres, Redis and upgrades in exchange for $0 per-token fees and granular virtual keys, budgets and guardrails.
- Your monthly spend is high enough that OpenRouter's 5.5% to 8% credit fees exceed your incremental infrastructure, operations and optional Enterprise licensing costs.
Where Experiential fits
Experiential is an OpenAI-compatible (and Anthropic Messages) gateway we build at https://api.experientiallabs.ai/v1, offering hosted routing with no token markup of our own and an Apache-2.0 gateway you can self-host.
Experiential adds no markup of its own on routed tokens bought with platform credits (1 credit is $0.01, and top-ups require no paid plan, though accounts without a paid plan stay on Free's data terms) or on requests using your own provider keys. Plans are $0, $20, $200 and $2,000 a month; every paid plan includes its monthly price in credits, and BYOK for paid provider accounts starts on Pro ($20/mo).
Free includes 1M tokens a day shared across GPT-6 Luna, DeepSeek V4.1 Flash and the Clef decision endpoint with per-minute limits of 10 requests and 250K tokens, after a $1 card verification. Our gateway is open source under Apache-2.0, and you can self-host it (uvx --from experiential exp run), where Experiential Labs does not process your traffic under Terms Section 1.8.
What Experiential keeps of your prompts
Experiential stores prompts and responses by default on Free accounts, and Free accounts cannot turn storage off (Terms, Section 1.7). Paid subscribers (Pro and up) can manually turn storage off and enable ZDR in Settings; subscribing does not automatically turn prompt storage off.
Using your own provider key does not automatically stop Experiential from storing your prompts and responses. Those requests follow your account's content-storage setting, just like requests paid for with Experiential credits.
Under our November 17, 2026 Terms (Section 7.4), content on Free accounts may be stored, de-identified, used to train AI models and sold or licensed to third parties (the Data Licensing Program); paid-plan content is excluded unless you affirmatively opt in. Requests to uncensored models may still be stored for safety review after storage is off (Terms, Section 1.7); subscribers can enable ZDR for those models, and content moderation still applies.
For deeper breakdowns, see OpenRouter alternatives in 2026 and What is OpenRouter?.
Questions answered
Is LiteLLM like OpenRouter?
They overlap on giving you 1 OpenAI-compatible API across many models, but they work differently. OpenRouter is a hosted service with 600+ models on 1 bill and a 5.5% Standard credit fee (8% Business), with no self-hosted edition listed on its pricing or enterprise pages. LiteLLM is an open-source Python SDK and self-hosted proxy you run on your own provider keys with no per-token fee.
Can you use LiteLLM for free?
Yes for the open-source Python SDK and self-hosted proxy. LiteLLM's pricing page states the open-source gateway is free to self-host forever, and everything outside litellm/enterprise/ is MIT-licensed. You still pay your direct model providers for tokens plus your own compute. The SDK needs no database; the proxy needs PostgreSQL for virtual keys, spend tracking and the Admin UI, and Redis once it runs several workers or replicas. Enterprise features such as SSO past 5 users, audit logs and secret managers require a paid license.
Can you use LiteLLM with OpenRouter?
Yes. LiteLLM includes OpenRouter as a built-in upstream provider in both the Python SDK and proxy config.yaml. Prefix any OpenRouter model ID with openrouter/ and set OPENROUTER_API_KEY so your apps can call direct provider keys for primary traffic while using OpenRouter for long-tail models or fallback capacity behind LiteLLM virtual keys.
Which is cheaper, OpenRouter or LiteLLM?
It depends on whether OpenRouter's percentage fee exceeds your cost to run LiteLLM. At $1,000 a month in token spend, OpenRouter Standard adds $55 with no self-hosted proxy infrastructure to maintain. At $10,000 a month OpenRouter Standard adds $550 ($6,600 a year), and at $50,000 a month it adds $2,750 ($33,000 a year) or $4,000 on Business ($48,000 a year); LiteLLM costs less once your compute, Postgres, Redis, engineering time and any Enterprise license stay below those figures. On BYOK, OpenRouter Standard charges $0 up to $25,000 a month and $1,318.75 at $50,000 a month.
Does OpenRouter or LiteLLM store my prompts?
Neither stores prompts by default in its own logs, though upstream model providers still apply their own retention policies unless ZDR is enforced. OpenRouter processes requests on its own servers and logs metadata only unless you opt in, apart from CSAM review and Safety Retention endpoints. ZDR-only selection excludes Safety Retention endpoints; CSAM screening and related retention obligations still apply, including to ZDR traffic. Self-hosted LiteLLM runs the proxy inside your network, writes metadata to your Postgres database, and stores prompts only if you enable store_prompts_in_spend_logs (calls to external model APIs still travel to those providers).
When should I look at OpenRouter or LiteLLM alternatives?
Look at alternatives when you outgrow OpenRouter's 5.5% to 8% credit fee (or $25,000 monthly fee-free BYOK allowance) but do not want to maintain LiteLLM's Postgres, Redis and upgrade stack. Zero-markup hosted gateways remove the percentage fee without self-hosting; Experiential, for example, charges no token markup of its own on hosted credits or BYOK (BYOK for paid provider accounts generally needs Pro, $20/month and up; models it serves through OpenRouter carry OpenRouter's 5.5% fee) and also ships an Apache-2.0 gateway you can self-host.
