By API7.ai Team
Last updated: June 2026
OpenRouter and Portkey both put one API in front of many LLM providers, but they take different shapes: a fully hosted model marketplace versus an open-source gateway paired with a hosted governance platform. This guide compares them on model coverage, routing, caching, guardrails, budgets, MCP, self-hosting, and pricing so you can choose the right fit.
OpenRouter is a zero-ops hosted marketplace: 400+ models behind one key, billed via credits or BYOK, with provider and uptime-based routing. Portkey is an open-source TypeScript gateway plus a hosted governance platform, adding native guardrails, semantic caching, and an MCP gateway. The choice comes down to a zero-ops marketplace versus a self-hostable gateway with deeper governance.
OpenRouter is a hosted-only marketplace for 400+ models with provider and uptime routing; Portkey is a self-hostable OSS gateway plus a hosted platform that adds native guardrails and an MCP gateway. Neither offers semantic routing or ensemble.
| Dimension | OpenRouter | Portkey |
|---|---|---|
| Best for | Zero-ops hosted marketplace | OSS gateway + hosted governance |
| Core & runtime | Proprietary hosted SaaS | TypeScript gateway + hosted control plane |
| Open-source license | — Proprietary; not open source | MIT gateway; platform commercial |
| Model coverage | 400+ models | 1,600+ models / 45+ providers |
| Semantic routing | — Provider/uptime routing only | — Rule-based only |
| Ensemble / fusion | — Not documented | — Not documented |
| Caching | ✓ Response + prompt caching | ✓ Simple + semantic |
| Content guardrails | — Not offered | ✓ 20+ native + LLM/partner |
| MCP gateway | — Not a native feature | ✓ Documented |
| Self-host / VPC | — Hosted only | OSS self-host; VPC = Enterprise |
| SSO / SCIM | SSO Enterprise; SCIM not documented | Enterprise-only |
OpenRouter is a proprietary, fully hosted marketplace that puts 400+ models behind one API and key, with provider routing, fallbacks, and uptime-based load balancing, billed via credits or your own keys.
OpenRouter is a proprietary, fully hosted marketplace that puts 400+ models behind one API and key. It handles provider routing, fallbacks, and uptime-based load balancing, and bills through credits or your own provider keys (BYOK). It is not self-hostable or open source.
Runtime
Hosted SaaS (proprietary)
License
Proprietary; not open source
Form factor
Hosted marketplace + API
Best for
Zero-ops access to many models
Portkey is an AI gateway pairing an open-source TypeScript gateway with a paid hosted control plane for observability, prompt management, and governance, plus native guardrails and an MCP gateway.
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 and adds native guardrails and an MCP gateway.
Language
TypeScript (Node.js)
License
MIT gateway + commercial platform
Form factor
OSS gateway + hosted SaaS
Best for
Self-hostable gateway + governance
The two converge on multi-provider access, routing basics, caching, and budgets, then diverge on form factor (hosted-only marketplace vs self-hostable OSS gateway) and on native guardrails and an MCP gateway, which Portkey has and OpenRouter does not.
| Feature | OpenRouter | Portkey |
|---|---|---|
| Core & runtime | Proprietary, fully hosted SaaS; not self-hostable and not open source | Open-source TypeScript gateway (Node.js) + a separate hosted control plane |
| Model coverage | 400+ models through one API and key | 1,600+ models across 45+ providers |
| Routing | Provider routing + fallbacks + uptime-based load balancing (sort by price/throughput/latency); Auto Router uses third-party NotDiamond | Load balancing, fallbacks, retries, conditional routing (metadata/params/path), circuit breaker |
| Semantic routing | — Provider/uptime routing, not intent-based | — Rule/parameter-based only |
| Ensemble / fusion | — Not documented | — Not documented |
| Caching | Native Response Caching (beta) + Prompt Caching passthrough | Simple + semantic caching (semantic is Enterprise-tier) |
| Guardrails | No content-moderation/PII feature; "Guardrails" = spending limits, model/provider allowlists, Zero Data Retention | 20+ deterministic + LLM-based + partner checks; tiered |
| Observability | Unified Reporting and Traces | Logging, tracing, 21+ metric dashboard, OpenTelemetry; retention tiered |
| Budgets & governance | Per-key credit limits + Unified Reporting + Traces | Model Catalog: cost/token budgets, rate limits, workspaces — granular budgets Enterprise |
| MCP gateway | — Not a native feature | ✓ Documented (auth + access control for remote MCP) |
| Self-host / VPC | — Hosted only; not self-hostable | OSS self-hosts; managed VPC/hybrid is Enterprise |
| Enterprise identity | SSO (SAML) Enterprise; Admin/Member roles; SCIM not documented | RBAC from Production tier; SSO/SAML/OIDC & SCIM Enterprise |
OpenRouter charges a fee on credits (or a BYOK fee) with no inference markup; Portkey's gateway is free and open source, with governance features paywalled by tier.
OpenRouter has no inference markup: you pay for model usage at provider rates. It charges 5.5% on credit purchases (with a $0.80 minimum); bring-your-own-key requests are free for the first 1,000,000 per month, then 5%. 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, semantic caching, and custom retention. In short, OpenRouter monetizes credits and BYOK on a hosted marketplace, while Portkey gives away the gateway and gates platform governance by tier.
Choose OpenRouter for zero-ops access to many models via one key; choose Portkey for a self-hostable gateway with native guardrails, an MCP gateway, and a hosted governance UI.
Choose OpenRouter for zero-ops breadth across 400+ models; choose Portkey for a self-hostable OSS gateway with native guardrails and an MCP gateway.
For zero-ops access to 400+ models behind one key — billed via credits or your own provider keys — OpenRouter is the simpler pick; for a self-hostable open-source gateway with native guardrails, an MCP gateway, and a hosted governance UI, Portkey 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 from the creators of Apache APISIX, with semantic routing and ensemble built into the open-source core and self-hosting in your own VPC. See all AI gateway comparisons or AISIX vs LiteLLM.
Portkey vs LiteLLM · AISIX vs LiteLLM · 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.

