Pyyan / Compare / LiteLLM vs OpenRouter vs Portkey vs Cloudflare AI Gateway
Routers & Gateways · verified 13 Aug 2026
| Specification | LiteLLM | OpenRouter | Portkey | Cloudflare AI Gateway |
|---|---|---|---|---|
| Summary | The self-hosted standard. | Biggest catalogue, simplest start. | Routing plus guardrails and compliance. | Edge gateway with free core features. |
| Added latency | Self-hosted | 40–55ms | 8–20ms | Edge |
| Hosting | Self | Managed | Both | Managed |
| Caching | Redis | — | Semantic | — |
| Category | Routers & Gateways | Routers & Gateways | Routers & Gateways | Routers & Gateways |
| Official | BerriAI ↗ | OpenRouter ↗ | Portkey ↗ | Cloudflare ↗ |
Highlighted rows are where these differ.
Best for production.
Best for prototyping.
Best for regulated teams.
Best for Cloudflare stacks.