Submit projectSubmit

THE SOTA COMPARISON

OpenRouter vs LiteLLM vs Portkey: choosing an LLM gateway

Compare hosted model access, self-hosted gateways, pricing, routing, caching and privacy controls across OpenRouter, LiteLLM and Portkey.

By SOTA · Updated 2026-11-01 · Researched with AI assistance; facts checked against the linked sources · Not a hands-on benchmark · How we work

The short answer

OpenRouter, which Stripe agreed to acquire in August 2026, combines hosted model access with unified billing. LiteLLM offers a Python SDK and a self-hosted proxy. Portkey, now owned by Palo Alto Networks, combines a hosted gateway with observability and prompt management, and publishes an open-source gateway. Start with who should operate the gateway, then compare billing and the controls your application needs.

Decision points from the linked documentation
DecisionOpenRouterLiteLLMPortkey
What it isHosted model marketplace API with unified billingPython SDK or self-hosted AI Gateway (proxy server)Hosted AI gateway and production tools; open-source gateway available
License and self-hostingHosted API; Enterprise Private Endpoints add-on can route your provider deploymentsMIT outside enterprise/; enterprise/ has separate license termsMIT-licensed gateway; can run locally or be self-hosted
Free and paid optionsFree models; Standard platform fee 5.5%, Business 8%; Enterprise discounts availableOpen-source self-hosting has no license fee; Enterprise requires a sales quoteFree Developer plan for evaluation; Production $49/month; Enterprise custom pricing
Provider credentialsCredits or BYOK; pay-as-you-go BYOK includes $25,000/month of list-price inference without a fee, then 5%Configure your provider API keys in the SDK or gatewayUse provider credentials through the gateway
Routing and failoverProvider ordering, load balancing and provider fallbacks; default routing weighs price, speed and reliabilityRouting across deployments, load balancing and LLM fallbacksProvider/model fallbacks, conditional routing, load balancing and retries
CachingPrompt caching on supported providers/models; opt-in response caching, disabled with account-level ZDRConfigurable exact-match and semantic response cachesSimple caching on Developer; simple and semantic caching on Production
Budgets and observabilityBudgets and spend controls on Standard; activity logs and exportVirtual keys, budgets, rate limits, spend tracking, request/response logging and Prometheus metricsLogs and traces; granular budgets and rate limits listed on Enterprise
GuardrailsSpending, model/provider restrictions, prompt injection checks and sensitive-data filtersConfigurable integrations with pre-call and post-call hooksBasic guardrails on Developer; partner and PRO guardrails on Production; custom guardrails on Enterprise
Data controlsPrompt retention is opt-in, except content flagged for CSAM review; routing can restrict requests to ZDR endpointsSelf-hosted deployment: usage telemetry is off by default and has no default endpoint; nothing is stored on LiteLLM servers unless you point it thereEnterprise organization-level Metrics Only mode omits request/response content; existing logs are not deleted
Consider whenYou want hosted model access and one billing accountYou want a Python library or to operate your own gatewayYou want a gateway with logs, traces and prompt management

Choose who operates the gateway

OpenRouter provides model access through a hosted API and combines billing across providers. Stripe announced an agreement to acquire OpenRouter on August 19, 2026; OpenRouter says it will keep the same name, product and roadmap. On October 14, 2026, it launched Private Endpoints as an Enterprise add-on for fine-tuned models and dedicated or reserved provider capacity. These require a supported BYOK provider and a model already in OpenRouter’s catalog, with visibility restricted to approved organizations. LiteLLM can sit inside Python code as an SDK or run as a centralized proxy. Portkey offers a hosted gateway with logs, traces and prompt management, plus a gateway you can self-host. Palo Alto Networks completed its acquisition of Portkey on May 29, 2026 and made Prisma AIRS Gateway, which incorporates Portkey’s gateway capabilities, generally available on July 16; Portkey’s pricing page now says Portkey is now Prisma AIRS AI Gateway and still lists its plans and the open-source gateway.

LiteLLM’s root license puts code outside enterprise/ under MIT and gives enterprise/ separate terms. Portkey’s gateway repository uses MIT. Treat those gateway licenses separately from the paid platform plans.

Compare the gateway bill

OpenRouter charges a fee when credits are purchased and passes through provider inference prices. Its pricing page lists Standard at 5.5% and Business at 8%. For pay-as-you-go BYOK, the fee-free allowance is $25,000 of list-price inference per month; usage above it incurs a 5% fee deducted from OpenRouter credits. This allowance is measured in inference cost, not requests.

LiteLLM’s open-source gateway has no self-hosting license fee. Enterprise pricing depends on annual gateway request capacity, deployment architecture and support. Portkey lists a free Developer plan for evaluation, a $49/month Production plan and custom Enterprise pricing. Budget for your model usage and any infrastructure alongside the gateway plan.

Match features to the workload

All three document routing and fallbacks. OpenRouter supports provider ordering and provider/model prompt caching; since October 28, 2026 its default routing weighs price, latency and reliability rather than price alone, and price-only routing remains available. It also offers opt-in response caching for identical requests under the same API key, with free cache hits; account-level ZDR disables response caching. LiteLLM routes across deployments and supports exact-match and semantic response caching. Portkey documents conditional routing, retries and load balancing; its Production plan adds semantic caching to simple caching.

For team controls, LiteLLM’s open-source plan lists virtual keys, budgets, rate limits and request logging. OpenRouter lists budgets on Standard and documents guardrails for spending, model access and sensitive data. Portkey lists logs and traces, with granular budgets and rate limits on Enterprise. Check the plan and configuration for the controls you need.

Check logging and decide on fit

OpenRouter makes prompt retention opt-in and lets requests target only zero data retention (ZDR) endpoints; since October 27, 2026 it screens all traffic, including ZDR requests, for CSAM and may retain flagged content for review and legal preservation. LiteLLM says usage telemetry is off by default on self-hosted instances and has no default endpoint, so nothing reaches its servers unless you configure one that points there. Portkey’s Enterprise logging settings include Metrics Only mode, which retains operational metrics without request or response content. Switching to this mode does not delete previously logged data. These statements describe gateway controls; review the selected model provider’s data policy too.

As a decision guide, consider OpenRouter for hosted model access and unified billing, LiteLLM for a Python SDK or a gateway you operate, and Portkey for a gateway with observability and prompt management. Test your own failure handling, cache behavior and logging configuration before choosing.

Sources & method

Official documentation was checked on 2026-11-01. Selection advice is our assessment. Interfaces and requirements may change; check the linked source for the version you intend to use.

How SOTA reviews projects · Suggest a correction · Download the evaluation checklist

Explore the projects