Comparison
Cloudflare AI Gateway vs Portkey AI Gateway
Both let you bring your own API key and both support OpenAI, Anthropic, Google Gemini. Differences below.
Cloudflare AI Gateway Edge proxy that adds caching, rate limits and logs to your provider keys. | Portkey AI Gateway Open-source gateway that routes one API to hundreds of models, with guardrails built in. | |
|---|---|---|
| Editor score | 4.4 / 5 | 4.6 / 5 |
| Category | LLM Gateways & Routers | LLM Gateways & Routers |
| Pricing | Freemium · Core features free on all Cloudflare plans | Freemium · Gateway free & open source; hosted platform has paid tiers |
| Platforms | Web | Self-hosted, Web, CLI |
| Providers | OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Azure OpenAI, AWS Bedrock, Perplexity, Cohere | OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, OpenAI-compatible, Cohere, Together AI, Perplexity |
| Open source | No | Yes |
| Self-hostable | No | Yes |
| Local models | No | Yes |
| Key storage | Vendor servers | Vendor servers |
| Strengths |
|
|
| Drawbacks |
|
|
The verdict
Portkey AI Gateway scores higher overall.
Choose Cloudflare AI Gateway if you want nothing to host on Web.
Choose Portkey AI Gateway if you want drop-in for existing OpenAI SDK code on Self-hosted, Web, CLI.
If auditability matters, Portkey AI Gateway is open source and can be inspected end-to-end.
Cloudflare AI Gateway vs Portkey AI Gateway: FAQ
- Is Cloudflare AI Gateway or Portkey AI Gateway better?
- Portkey AI Gateway has the higher editor score (4.6 vs 4.4). The better choice depends on platform, provider and pricing needs; see the table above.
- Which is cheaper, Cloudflare AI Gateway or Portkey AI Gateway?
- Cloudflare AI Gateway is freemium (Core features free on all Cloudflare plans). Portkey AI Gateway is freemium (Gateway free & open source; hosted platform has paid tiers). With both, model usage is billed separately by your API provider.
- Which handles API keys more safely?
- Portkey AI Gateway scores higher on the BYOK Tools Key Safety Score (78 vs 28 out of 100).
- Do Cloudflare AI Gateway and Portkey AI Gateway support the same AI providers?
- Both support OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Azure OpenAI, AWS Bedrock, Perplexity, Cohere.
- Can Cloudflare AI Gateway or Portkey AI Gateway run local models?
- Only Portkey AI Gateway supports local models.