Skip to content
BYOK Tools

Comparison

New API vs Portkey AI Gateway

Both let you bring your own API key and both support OpenAI, Anthropic, Google Gemini. Differences below.

New API

Self-hosted LLM gateway with routing, access control and cost accounting.

Portkey AI Gateway

Open-source gateway that routes one API to hundreds of models, with guardrails built in.

Editor score4.5 / 54.6 / 5
CategoryLLM Gateways & RoutersLLM Gateways & Routers
PricingOpen source · Free & open source (AGPL-3.0)Freemium · Gateway free & open source; hosted platform has paid tiers
PlatformsSelf-hosted, WebSelf-hosted, Web, CLI
ProvidersOpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, OpenAI-compatibleOpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, OpenAI-compatible, Cohere, Together AI, Perplexity
Open sourceYesYes
Self-hostableYesYes
Local modelsYesYes
Key storageVendor serversVendor servers
Strengths
  • Very active development
  • Speaks all three major API formats
  • Drop-in for existing OpenAI SDK code
  • Very wide provider coverage
  • Runs at the edge or in your own cloud
Drawbacks
  • AGPL licence matters if you modify and offer it as a service
  • Feature-dense admin can overwhelm
  • Observability features live mostly in the hosted product
  • Config is JSON-heavy at first

The verdict

Portkey AI Gateway scores higher overall.

Choose New API if you want very active development on Self-hosted, Web.

Choose Portkey AI Gateway if you want drop-in for existing OpenAI SDK code on Self-hosted, Web, CLI.

New API vs Portkey AI Gateway: FAQ

Is New API or Portkey AI Gateway better?
Portkey AI Gateway has the higher editor score (4.6 vs 4.5). The better choice depends on platform, provider and pricing needs; see the table above.
Which is cheaper, New API or Portkey AI Gateway?
New API is open source (Free & open source (AGPL-3.0)). 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?
Both score 78/100 on the BYOK Tools Key Safety Score.
Do New API and Portkey AI Gateway support the same AI providers?
Both support OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, OpenAI-compatible.
Can New API or Portkey AI Gateway run local models?
Yes, both support local models such as Ollama.