Portkey 2026: The AI Gateway Layer Built for Production LLM Workloads
Portkey is the production-grade AI Gateway that wraps 200+ LLM providers behind a single OpenAI-compatible endpoint. Verified 2026-07-29: Portkey serves 50,000+ developers and 500+ companies (including Postman, Hike, and MakeBetter), processes 1B+ LLM calls monthly, and ships an Apache 2.0 open-source gateway (GitHub 9k+ stars) alongside the managed SaaS. It is the strongest "AI Gateway + Observability" combo in 2026, and the only one that bundles gateway routing, prompt management, full request tracing, and Guardrails safety checks in a single console without a separate vendor per concern.
This review covers Portkey's four core surfaces (AI Gateway, Observability, Prompt Management, Guardrails), 2026 pricing for Free / Hobby / Growth / Enterprise tiers verified on the live site, the 200+ provider routing matrix (OpenAI, Anthropic, Google, Mistral, Cohere, Bedrock, Vertex, Together, Groq, Fireworks, DeepInfra, xAI, Perplexity, Replicate, OpenRouter, Hugging Face, custom), and Portkey's positioning alongside OpenRouter, LiteLLM, Cloudflare AI Gateway, Vercel AI Gateway, and Helicone for production LLM infrastructure.
TL;DR
- Unified API: one OpenAI-compatible endpoint covers 200+ LLMs from 30+ providers; BYOK (Bring Your Own Key) at zero markup
- Four products in one console: AI Gateway + Observability (logs, traces, costs) + Prompt Studio + Guardrails
- Free tier: 10,000 requests/month + 100K log retention + community Slack, no credit card required
- Hobby: $49/month — 100K requests + 1M log retention + Slack/Discord/Email alerts
- Growth: $249/month — 1M requests + 10M log retention + SSO + custom Webhooks
- Enterprise: contract — custom QPS, dedicated tenancy, SOC 2 Type II, HIPAA BAA, on-prem option
- Open-source self-hosted: Apache 2.0, Docker one-liner, full feature parity for indie / CN / regulated teams
- Routing strategies: Fallback, Load Balancing, A/B Testing, Canary, Conditional routing by metadata
- Guardrails: 50+ built-in checks (PII, jailbreak, NSFW, prompt injection, toxicity) — async, sub-50ms overhead
- Prompt Studio: version control, A/B test prompts in prod, multi-user review workflow
- Best for: 2-50 person teams running multi-provider LLM workloads in production; teams that need cost attribution / failover / observability without stitching 5 vendors
- Avoid when: you're a solo dev doing 1 provider / < 10K req/mo (OpenRouter free is simpler); or you already have Datadog + LangSmith + custom routing (Portkey duplicates your stack)
Why Portkey Matters in 2026
The AI Gateway category exploded in 2025-2026 as production LLM workloads outgrew "single provider + direct API." By 2026, the median production LLM app routes across 2.4 providers on average (per Portkey's State of AI Agents report), and the failure modes of vanilla direct API access — single-provider outage, no cost attribution across teams, no prompt versioning, no PII redaction, no failover — became operationally untenable. Portkey is the cleanest single-vendor answer to those problems.
First, four products in one console, not four vendors. The naive production stack in 2024 was OpenRouter (gateway) + LangSmith (observability) + Humanloop (prompts) + a separate Guardrails vendor (or DIY regex). Portkey collapses all four into one console with one bill, one auth, one UI. For a 5-person team this saves 4 vendor negotiations, 4 contracts, 4 SDKs, and roughly $500-2,000/month in subscription overlap.
Second, BYOK at zero markup. Portkey does not mark up tokens — you bring your own OpenAI / Anthropic / Google API key, and Portkey adds the gateway / observability / guardrails layer on top for a flat per-request fee. Compare OpenRouter (5-30% markup depending on provider), Cloudflare AI Gateway (free but you pay Cloudflare Workers cost), Vercel AI Gateway (5% markup). BYOK is meaningfully cheaper at scale.
Third, the open-source self-hosted edition is genuinely production-grade. The same codebase that powers the SaaS is available under Apache 2.0, deployable via docker run -d -p 8787:8787 portkeyai/gateway, with full feature parity (observability, prompt management, guardrails all work self-hosted). This matters for: (a) CN teams behind GFW, (b) regulated industries (HIPAA / finance / defense) that need data residency, (c) teams that simply prefer OSS over SaaS.
Pricing Details (Verified 2026-07-29)
Portkey uses a subscription + BYOK model. You bring your own provider API keys (OpenAI / Anthropic / Google / etc.), pay those providers directly at their standard rates, and pay Portkey a flat subscription for the gateway / observability / guardrails layer. There is no per-token markup on top.
Free Tier (Permanent, No Credit Card)
- 10,000 LLM requests per month (across all providers, combined)
- 100,000 log retention (request + response + metadata)
- Community Slack support
- Unlimited team members (no per-seat charge)
- BYOK free; no per-token markup
- Single workspace
Hobby ($49/month, Pay-as-You-Go)
- 100,000 LLM requests per month
- 1,000,000 log retention
- Slack / Discord / Email alerts (cost spike, error rate, latency)
- 5 workspaces
- Webhook integrations (Slack, Teams, PagerDuty)
- 7-day log retention beyond the active window
Growth ($249/month, Pay-as-You-Go)
- 1,000,000 LLM requests per month
- 10,000,000 log retention
- SSO (SAML / Google Workspace / Okta)
- Audit logs (who changed what config when)
- Custom Webhook triggers (e.g. fire on 5xx rate > 2%)
- 30-day log retention beyond active window
- Priority email support (12-hour response)
Enterprise (Contract, Typically $2,000-25,000/month)
- Custom request volume (10M-1B+ requests/month typical)
- Dedicated single-tenant deployment (or self-hosted on your VPC)
- SOC 2 Type II, HIPAA BAA, GDPR DPA, PCI DSS (regulated industries)
- 99.95% SLA + 24/7 priority support + dedicated Slack channel
- Custom integrations (private LLMs, on-prem models, internal endpoints)
- Volume discounts past 100M requests/month
- Custom contract terms + invoicing
BYOK cost example: 1M requests/month at average 1,500 input tokens + 500 output tokens through OpenAI GPT-4o costs roughly $4,500 in OpenAI fees (paid directly to OpenAI) + $249 Growth Portkey fee = $4,749 total. The same workload through OpenRouter would be ~$4,725 in OpenAI-equivalent fees + 5-15% OpenRouter markup + $0 OpenRouter subscription = ~$4,960-5,440. Portkey BYOK wins on cost for high-volume production.
The Four Surfaces: Gateway, Observability, Prompts, Guardrails
Portkey's distinctive architecture is the unified console covering four production surfaces. Each is a first-class product, not a bolt-on.
1. AI Gateway — Unified 200+ Provider Routing
The Gateway is the routing layer. You set up Configs that map a request to a provider based on metadata (user ID, region, prompt size, cost ceiling, model preference), with strategies like Fallback (if Provider A 5xx, try B), Load Balancing (round-robin across providers), A/B Testing (50% Provider A / 50% Provider B), or Conditional (if prompt < 8K tokens use Haiku, else use Sonnet).
import Portkey from 'portkey-ai'
const portkey = new Portkey({
apiKey: 'pk-...', // Portkey virtual key
virtualKey: 'vk-openai-prod' // your OpenAI BYOK key, encrypted
})
const response = await portkey.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello' }],
// Portkey config attached as metadata
metadata: { _config: 'prod-fallback-v3', user_id: 'u_123' }
})
// If OpenAI 5xx, Config 'prod-fallback-v3' auto-retries Anthropic Claude Sonnet 5
// Logs the entire request + response + latency + cost to Portkey Observability
Routing strategies are configured in the Portkey console as JSON Configs, attached per-request via metadata._config. A Configs can chain: a fallback target list with provider + model pairs. Sub-millisecond routing overhead — invisible in production traces.
2. Observability — Full Request Tracing + Cost Attribution
Every request through Portkey logs: full request + response payloads, latency, token usage, cost (computed from per-provider rate cards), cache hit/miss, fallback chain if any, and any errors. Logs are queryable in the Observability dashboard by user_id, workspace, model, cost, latency, or any custom metadata you tag requests with.
Cost attribution is the killer feature for teams > 5 people. Tag each request with the user_id / team / feature that triggered it, then query "show me total cost by feature for the last 30 days." Per-team / per-feature / per-customer cost breakdowns that would require a custom data pipeline with raw provider APIs come out of the box in Portkey.
Compared to Helicone (also observability-focused): Helicone is cheaper ($0 per request vs Portkey's tiered pricing) but lacks the routing gateway. Compared to LangSmith: LangSmith is built around LangChain pipelines, Portkey is provider-agnostic. Compared to OpenLLMetry / Phoenix: those are open-source observability frameworks you self-host; Portkey adds the routing + guardrails + prompt management on top.
3. Prompt Studio — Versioning, A/B, Collaboration
Prompt Studio is a git-for-prompts: edit a prompt in the web editor, attach a version (v1, v2, v3), tag a model + Config, run an A/B test against the previous version with live traffic split, and promote the winner. Multi-user review workflow lets non-engineers (PM, content, legal) propose prompt changes that engineers approve before they go live.
// Reference a Prompt Studio template by ID + commit hash
const response = await portkey.chat.completions.create({
model: 'gpt-4o',
messages: [{
role: 'user',
content: 'Summarize this article: {{article}}' // template variable
}],
metadata: {
_prompt: { id: 'summarizer', version: 'v7' } // pinned to a specific version
}
})
// A/B v6 vs v7 in production: 50/50 traffic split, tracked in Observability
For teams using raw provider APIs, the equivalent workflow is git commits + custom feature flags + manual traffic splitting — 5-10x the engineering effort. Prompt Studio turns prompt iteration from a developer task into a content-team task.
4. Guardrails — Async Safety Checks with 50+ Built-Ins
Guardrails are checks run on every request/response: PII redaction (emails, phone numbers, SSN, credit cards), jailbreak detection (DAN-style prompts), NSFW filtering, prompt injection detection, toxicity scoring, custom regex / keyword rules. They run asynchronously (sub-50ms typical) and can be configured to: log only, block (return 4xx to user), or rewrite (strip PII before logging).
For regulated industries (healthcare, finance, legal), Guardrails replace a separate PII-redaction vendor (e.g. Private AI, Cloudflare DLP) and a separate prompt-injection-detection vendor (e.g. Lakera, Prompt Armor) at zero incremental cost on Hobby / Growth tiers.
Provider Coverage — The 200+ Model Matrix
Portkey's provider matrix is the most comprehensive in 2026. Verified coverage (subset):
| Provider | Models Available | BYOK |
|---|---|---|
| OpenAI | GPT-4o, GPT-5, GPT-5.6, o1, o3, GPT-4.1 | Yes |
| Anthropic | Claude Opus 5, Sonnet 5, Haiku 4.5, Fable 5 | Yes |
| Gemini 2.5 Pro, 3.0 Pro, 3.6 Flash, Gemma 3 | Yes | |
| Mistral | Mistral Large 3, Small 4, Codestral, Pixtral | Yes |
| DeepSeek | DeepSeek V3, V4, R1, Coder V2 | Yes |
| xAI | Grok 3, Grok 4, Grok Code Fast | Yes |
| Cohere | Command R+, Rerank 3.5, Embed v3 | Yes |
| AWS Bedrock | Claude, Titan, Llama 3.3, Mistral via AWS | Yes |
| Azure OpenAI | All Azure-deployed OpenAI models | Yes |
| Together AI | Llama, Qwen, DeepSeek, Mixtral | Yes |
| Fireworks AI | Llama 3.3, Qwen, DeepSeek, function-calling models | Yes |
| Groq | Llama 3.3 70B, Mixtral, Gemma 2 | Yes |
| DeepInfra | 200+ OSS models, serverless | Yes |
| Perplexity | Sonar Pro, Sonar Reasoning | Yes |
| OpenRouter (as fallback) | All 300+ OpenRouter models as one target | Yes |
| Hugging Face | Inference Endpoints, Inference API | Yes |
| Custom / Private LLMs | Any OpenAI-compatible endpoint (vLLM, TGI, Ollama, LM Studio) | Yes |
The "use OpenRouter as one of Portkey's fallback targets" pattern is particularly clever: Portkey users get the routing/observability layer, OpenRouter users get access to 300+ models (including ones Portkey doesn't natively support) — both win.
Self-Hosted Open-Source Edition (Apache 2.0)
Portkey's open-source edition is not a crippled version of the SaaS — it's the same core gateway with full feature parity (gateway, logs, prompt management, guardrails). Self-hosting is one Docker command, plus a Postgres + Redis for persistence. The full open-source repo at github.com/Portkey-AI/gateway has 9k+ stars as of 2026-07-29.
Three deployment scenarios where self-hosting is the right choice:
- Mainland China teams: portkey.ai SaaS is unreliable from CN, but self-hosted on Aliyun/Tencent Cloud/Huawei Cloud works perfectly with zero external dependencies
- Regulated industries: HIPAA / finance / defense teams that need data residency + on-prem deployment can run the gateway inside their VPC with no data leaving the network
- Indie devs / hobbyists: zero subscription fee; pay only for the Postgres + Redis + compute you self-host (often $20-50/month for a small workload)
When to Choose Portkey vs Alternatives
Choose Portkey when:
- You're running production LLM workloads across 2+ providers and need failover, A/B testing, or cost attribution
- You need prompt versioning + multi-user review workflow (PM / content / legal approving prompt changes)
- You're in a regulated industry and need PII redaction / jailbreak detection / Guardrails as a first-class feature
- You want OpenRouter's model coverage but need cost attribution and observability that OpenRouter doesn't provide
- You're a CN team that needs a gateway that works without proxy (self-hosted edition)
Choose OpenRouter when: you want zero-config access to 300+ models with built-in free models and don't need enterprise observability. OpenRouter's per-token markup is acceptable for low-volume hobby / prototype work.
Choose LiteLLM when: you're Python-only, want a self-hosted OSS proxy, and don't need Portkey's prompt management / observability dashboard / Guardrails. LiteLLM is simpler but lacks the full production toolchain.
Choose Cloudflare AI Gateway when: you're already on Cloudflare Workers and want gateway routing at near-zero marginal cost (Workers pricing only). Cloudflare AI Gateway lacks observability / prompt management / Guardrails.
Choose Helicone when: you need just observability (logs + cost tracking) without the routing gateway. Helicone is $0/request vs Portkey's tiered pricing but lacks failover / Guardrails / Prompt Studio.
Choose Vercel AI Gateway when: you're a Next.js / Vercel shop and want one-click AI Gateway integration. Vercel AI Gateway is the simplest for Vercel-deployed apps but has 5% markup and lacks observability depth.
Summary
Portkey is the strong recommendation in 2026 for any team running production LLM workloads across multiple providers. The combination of AI Gateway + Observability + Prompt Studio + Guardrails in one console, with BYOK at zero markup and an Apache 2.0 open-source self-hosted edition, puts it ahead of OpenRouter in production-readiness, ahead of LiteLLM in observability depth, ahead of Cloudflare AI Gateway in Guardrails, and uniquely positioned as the single-vendor answer to the "AI infrastructure stack" question.
Tradeoffs are real: Free tier is only 10K requests/month; Hobby $49/mo and Growth $249/mo are non-trivial costs that solo devs may find excessive; the SaaS console is unstable from mainland China (mitigated by self-hosted OSS); and if you're only running a single provider with < 10K req/mo, the BYOK + subscription overhead isn't worth it vs direct OpenAI / Anthropic API access.
For 2-50 person teams running multi-provider production LLM workloads that need cost attribution, failover, A/B testing, prompt versioning, and safety Guardrails — Portkey is the right answer. The combination of zero-markup BYOK + comprehensive observability + Apache 2.0 self-hosted option is unmatched in 2026.
Try Portkey Free
Production-grade AI Gateway + observability + guardrails, BYOK at zero markup. 10K free requests/month, no credit card.