Skip to main content
📖 The AI Tool Bible
Portkey AI Gateway preview image
Portkey AI Gateway logo

Portkey AI Gateway

Open-source AI gateway that routes a single API call across 1,600+ LLMs with caching, fallbacks, and observability.

Freemium· Developer: Free Forever · Production: $49/month · Enterprise: Custom PricingAgentsMulti-model (1,600+ LLMs)7.2 / 10
Visit website →
Best for

Pick Portkey if you're shipping LLM features in production across multiple providers and need routing, caching, and cost visibility without writing it yourself.

Skip if

Skip it if you call one model from one provider in a single app and don't care about fallbacks, caching, or per-team usage tracking.

Portkey AI Gateway is a production-grade proxy layer that sits between your application and the LLM providers you actually use. With one unified API it gives you access to 1,600+ models across OpenAI, Anthropic, Google, Cohere, Mistral, Bedrock, Azure, open-source endpoints, and more, plus the routing primitives serious teams need: load balancing, automatic fallbacks, conditional routing, retries, timeouts, semantic and simple caching, and canary deployments for new models.

The gateway itself is open source (Apache-2.0, 10K+ GitHub stars) and can be self-hosted via Docker or `npx @portkey-ai/gateway`, but most teams run it through Portkey's managed cloud, which layers on a virtual-key vault, real-time observability, cost tracking, prompt management, and guardrails. It's aimed at engineering teams running multi-provider LLM workloads at scale, the kind of org that's tired of writing bespoke retry/fallback code for every SDK and wants budget controls and audit trails without building them in-house.

Pricing is freemium: a generous free tier covers solo developers and prototypes, paid plans add higher rate limits and team features, and enterprise tiers cover SSO, SOC 2, on-prem, and custom routing. It plays well with LangChain, LlamaIndex, Vercel AI SDK, and any OpenAI-compatible client by changing only the base URL.

Editor's take

Portkey is the most mature open-source AI gateway in the market right now, and the routing and observability story is genuinely useful once you have more than one provider in play. The self-host path is real, not theater, which makes it an easy recommendation even for teams that are skeptical of managed LLM middleware.

— The AI Tool Bible editorial team

Pros

  • Single unified API for 1,600+ models across every major provider
  • Open-source core (Apache-2.0) with optional managed cloud
  • Built-in load balancing, fallbacks, retries, and semantic caching
  • Real observability: latency, cost, and token usage per request
  • OpenAI-compatible, drops in by changing the base URL

Cons

  • ⚠️ Adds another network hop and a vendor dependency for managed users
  • ⚠️ Advanced features (guardrails, prompt mgmt) require the paid platform
  • ⚠️ Self-host setup still needs you to wire your own dashboards if you skip cloud

Use cases

llm-routingfallbacks-and-retriessemantic-cachingcost-observabilityprompt-managementmulti-provider-llm

Explore related

Compare with similar tools

All in Agents
LangGraph preview image
LangGraph logo

LangGraph

Featured
Agents · BYO (Claude / GPT / open)
8.8

Stateful, graph-based agent orchestration from LangChain.

Freemium· Developer: $0 / seat · Plus: $39 / seat · Enterprise: Custom pricingstateful agentshuman-in-loop
CrewAI preview image
CrewAI logo

CrewAI

Featured
Agents · BYO (Claude / GPT / open)
8.4

Python framework for multi-agent orchestration.

Freemium· Basic: Free · Enterprise: Custommulti-agentorchestration
Ernie Bot preview image
Ernie Bot logo

Ernie Bot

Agents · Baidu ERNIE 4.0 / ERNIE X1 / ERNIE Turbo (in-house)
8.7

Baidu's Mandarin-first ChatGPT rival, powered by the ERNIE model family

Freemium· Free tier for Ernie 3.5 access; Ernie 4.0 and premium features require a paid subscription (approximately CNY 59.9/month for individual plans); enterprise API pricing via Baidu AI Cloud Qianfan platform is metered per 1K tokens.Mandarin content writing and marketing copyChinese-language document Q&A and summarisation
Moveworks preview image
Moveworks logo

Moveworks

Agents · Orchestrates multiple enterprise-ready LLMs (undisclosed mix, historically including OpenAI GPT and in-house models via its Reasoning Engine)
8.7

The enterprise AI assistant that searches, answers, and takes action across your business systems

Enterprise· Enterprise-only pricing; no public tiers. Quoted per organization based on employee count, integrations, and agent scope. Contact sales for a quote.IT service desk ticket deflectionHR policy Q&A and self-service
AWS Bedrock preview image
AWS Bedrock logo

AWS Bedrock

Agents · Multi-model: Anthropic Claude, Meta Llama, Mistral, Cohere, AI21, Amazon Nova/Titan, DeepSeek, Stability, OpenAI GPT
8.6

Build and scale generative AI applications with foundation models

Paid· Standard: Contact sales · Flex: Contact sales · Priority: Contact sales · Reserved: Contact salesEnterprise RAG chatbot over private documentsMulti-step tool-using agents via AgentCore
Claude Agent SDK preview image
Claude Agent SDK logo

Claude Agent SDK

Agents · Claude Opus / Sonnet
8.6

Anthropic's official SDK for building autonomous Claude agents.

Free· Free SDK; API usage billed at Claude ratesClaude agentstool use