Skip to content
BYOK Tools

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 score4.4 / 54.6 / 5
CategoryLLM Gateways & RoutersLLM Gateways & Routers
PricingFreemium · Core features free on all Cloudflare plansFreemium · Gateway free & open source; hosted platform has paid tiers
PlatformsWebSelf-hosted, Web, CLI
ProvidersOpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Azure OpenAI, AWS Bedrock, Perplexity, CohereOpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, OpenAI-compatible, Cohere, Together AI, Perplexity
Open sourceNoYes
Self-hostableNoYes
Local modelsNoYes
Key storageVendor serversVendor servers
Strengths
  • Nothing to host
  • Generous free tier
  • Global edge network
  • Drop-in for existing OpenAI SDK code
  • Very wide provider coverage
  • Runs at the edge or in your own cloud
Drawbacks
  • Closed source
  • Ties you to the Cloudflare dashboard
  • Observability features live mostly in the hosted product
  • Config is JSON-heavy at first

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.