New

Announcing AISIX: The AI-Native AI Gateway for LLMs and AI AgentsLearn More

Learn More

Portkey vs LiteLLM: Which AI Gateway in 2026?

By API7.ai Team

Last updated: June 2026

Portkey and LiteLLM are two of the most popular AI gateways for putting one API in front of many LLM providers. This guide compares them on architecture, routing, caching, guardrails, observability, governance, self-hosting, and pricing so you can choose the right fit.

TL;DR

Portkey pairs an MIT TypeScript gateway with a paid hosted control plane for observability and governance; LiteLLM is a Python SDK and proxy with broad provider coverage and OSS budgets. Both are MIT at the core, and neither does semantic routing or ensemble — so the choice comes down to provider breadth and a hosted governance UI versus a Python SDK and open-source budgets.

  • Teams wanting hosted observability + governance: Portkey
  • Python teams wanting an SDK + OSS budgets: LiteLLM
  • At a glance
  • What is Portkey?
  • What is LiteLLM?
  • Feature comparison
  • Pricing
  • When to use each
  • Bottom line
  • FAQ

Portkey vs LiteLLM at a glance

Portkey leads on provider breadth and a hosted governance UI; LiteLLM keeps more governance in open source. Neither offers semantic routing or ensemble.

DimensionPortkeyLiteLLM
Best forHosted observability + governancePython SDK + OSS budgets
Core & runtimeTypeScript gateway + hosted control planePython (SDK + proxy)
Open-source licenseMIT gateway; platform commercialMIT core; enterprise/ commercial
Provider coverage1,600+ models / 45+ providers100+ providers
Semantic routing— Rule-based only— Not documented
Ensemble / fusion— Not documented— Not documented
Caching✓ Simple + semantic✓ Exact + semantic
MCP gateway✓ Documented✓ In open source
Self-host / VPCOSS self-host; VPC = EnterpriseDocker/K8s; no managed VPC
SSO / SCIMEnterprise-onlyEnterprise-only

What is Portkey?

Portkey is an AI gateway pairing an open-source TypeScript gateway with a paid hosted control plane for observability, prompt management, and governance.

Portkey is an AI gateway that pairs an open-source TypeScript gateway (MIT) with a hosted control plane for observability, prompt management, and governance. It advertises 1,600+ models across 45+ providers.

Language

TypeScript (Node.js)

License

MIT gateway + commercial platform

Form factor

OSS gateway + hosted SaaS

Best for

Hosted observability & governance

Pros

  • 1,600+ models across 45+ providers
  • Simple and semantic caching
  • Documented MCP gateway
  • Mature observability, analytics, and prompt management

Cons

  • RBAC (Production tier), SSO/SCIM, VPC deploy, granular budgets are paid
  • Conditional routing is rule/parameter-based, not semantic
  • No documented ensemble; log/metric retention is tiered by plan

What is LiteLLM?

LiteLLM is an open-source Python SDK and proxy that exposes 100+ LLM providers through one OpenAI-compatible API, with budgets and virtual keys in open source.

LiteLLM is an open-source Python SDK and proxy server that exposes 100+ LLM providers through one OpenAI-compatible API. Its core is MIT-licensed, with a paid Enterprise tier for identity, audit, and advanced guardrail features.

Language

Python

License

MIT (core) + commercial enterprise/

Form factor

SDK + proxy server

Best for

Python teams, broad provider access

Pros

  • Broadest provider coverage (100+) in OpenAI format
  • Ships as both an SDK and a proxy
  • Virtual keys, budgets, and spend tracking in open source
  • Semantic caching and an MCP gateway in open source today

Cons

  • Python/Uvicorn runtime; key & budget features require PostgreSQL
  • No semantic routing or ensemble per its own routing docs
  • SSO/SAML, RBAC, SCIM, and audit logs are paid Enterprise

Portkey vs LiteLLM: feature comparison

The two converge on routing basics, caching, and an MCP gateway, then diverge on form factor (hosted platform vs Python SDK) and where each draws the free/paid line.

FeaturePortkeyLiteLLM
Core & runtimeOpen-source TypeScript gateway (Node.js) + a separate hosted control planePython; SDK + proxy on Uvicorn; key & budget features need PostgreSQL
Provider coverage1,600+ models across 45+ providers100+ providers in OpenAI format
RoutingLoad balancing, fallbacks, retries, conditional routing (metadata/params/path), circuit breakerSimple-shuffle, latency, least-busy, rate-limit-aware, cost-based, custom; fallbacks & retries
Semantic routing— Rule/parameter-based only— Not documented
Ensemble / fusion— Not documented— Not documented
CachingSimple + semantic caching (Redis)Exact + semantic (Qdrant, Redis, Valkey, S3, GCS)
Guardrails20+ deterministic + LLM-based + partner checks; tiered Basic/Partner/Pro/customPresidio PII + hooks in OSS; moderation & per-key scoping are Enterprise
ObservabilityLogging, tracing, 21+ metric dashboard, OpenTelemetry-compliant; retention tieredPrometheus in OSS, Langfuse, OpenTelemetry, Datadog; some team export Enterprise
Budgets & governanceModel Catalog: cost/token budgets, rate limits, workspaces — granular budgets EnterpriseVirtual keys, per-key/user/team budgets, spend tracking in OSS (needs PostgreSQL)
MCP gateway✓ Documented (auth + access control for remote MCP)✓ In OSS (access control by key/team)
Self-host / VPCOSS self-hosts; managed VPC/hybrid is EnterpriseDocker/K8s (Helm beta); no managed-VPC product
Enterprise identityRBAC from Production tier; SSO/SAML/OIDC & SCIM EnterpriseGlobal roles in OSS; SSO/RBAC/SCIM/audit Enterprise

Pricing comparison

Both have a free open-source core and paywall advanced governance — but along different lines.

Portkey's gateway is free (MIT); the hosted platform is tiered — a free Developer tier with capped logs, a paid Production tier (from about $49/month) that unlocks RBAC and service accounts, and an Enterprise tier for SSO/SCIM, VPC/hybrid deployment, granular budgets, and custom retention. LiteLLM's core is free (MIT) including budgets and virtual keys; its Enterprise license (custom-priced) adds SSO/SAML, org and team RBAC, SCIM, audit logs, and enterprise guardrails. In short, Portkey gates breadth-of-platform features by tier, while LiteLLM gates enterprise identity and audit.

When to use Portkey vs LiteLLM

Choose Portkey for breadth and a hosted governance UI; choose LiteLLM for a Python SDK and open-source budgets.

Choose Portkey if you…

  • Want the widest provider catalog behind one API
  • Want a hosted observability, analytics, and prompt-management UI
  • Are comfortable with tiered pricing and tiered log retention

Choose LiteLLM if you…

  • Want a Python SDK as well as a proxy
  • Want OSS budgets and virtual keys without a managed service
  • Want semantic caching and an MCP gateway in the open-source build

Bottom line

Choose Portkey for the widest catalog and a hosted governance UI; choose LiteLLM for a Python SDK plus open-source budgets and virtual keys.

For the broadest provider catalog and a hosted observability-and-governance UI, Portkey is the stronger pick; for a Python SDK with OSS budgets and virtual keys — plus semantic caching and an MCP gateway in the open-source build — LiteLLM fits better. If you're evaluating open-source AI gateways more broadly, AISIX is another option worth a look: a Rust, Apache-2.0 gateway with semantic routing and ensemble built in. See AISIX vs LiteLLM.

Frequently asked questions

Related comparisons

AISIX vs LiteLLM · LiteLLM alternatives · All AI gateway comparisons

Ready to get started?

For more information about full API lifecycle management, please contact us to Meet with our API Experts.

Contact Us