OpenRouter vs Portkey: Which LLM Gateway Is Cheaper for Coding Teams in 2026?
June 21, 2026 · 8 min read
Two Gateways, Two Billing Models
OpenRouter and Portkey both sit between your AI coding agent and the model providers, giving you one API, failover, and observability across many models. But they charge for that in fundamentally different ways — and which one is cheaper depends almost entirely on how much your team spends per month.
OpenRouter resells model access. You pay OpenRouter, and it adds a 5.5% platform fee on top of the underlying model price (the first 1 million requests are free). It supports 300+ models, including 20+ free ones, with automatic failover across providers.
Portkey is an AI control plane. You bring your own provider API keys — so you pay Anthropic, OpenAI, or Google directly with no markup — and Portkey charges a flat subscription for the gateway, observability, guardrails, and governance. As of mid-2026 its paid Production tier starts around $49/month (verify current pricing before committing); the developer tier is free.
The Crossover Math
Strip it to the essentials. With OpenRouter, your gateway cost is 5.5% of your model spend. With Portkey, your gateway cost is a flat monthly fee and your model spend goes to providers at list price. The crossover is where 5.5% of your spend equals Portkey's subscription.
At a $49/month Portkey subscription, breakeven is $49 ÷ 0.055 ≈ $890 of monthly model spend. Below that, OpenRouter's 5.5% costs less than Portkey's flat fee — a team spending $300/month pays roughly $16 in OpenRouter fees versus $49 for Portkey. Above ~$890, the percentage fee overtakes the subscription: at $5,000/month of spend, OpenRouter's markup is ~$275 versus Portkey's flat $49.
So the rule of thumb inverts the usual self-hosting logic: OpenRouter is cheaper at low spend, Portkey is cheaper at high spend. The more you spend on models, the more a percentage markup hurts and the more a flat subscription looks like a rounding error.
Why the Fee Isn't the Whole Story
Two factors override the raw crossover number for most teams.
Setup friction. OpenRouter is genuinely zero-config — one key, no provider accounts, instant access to 300+ models. Portkey's bring-your-own-key model means you provision and manage accounts with each provider you use. For a team experimenting across many models, OpenRouter's convenience can be worth its markup well past $890/month.
Governance needs. Portkey leans into the control-plane role — detailed logging, guardrails, cost attribution per user or project, and enterprise features like SSO and private deployment. If you need that governance anyway, the subscription buys more than just routing, and comparing it purely on fee-versus-markup undersells it.
A Practical Decision Framework
Under ~$900/month in model spend: OpenRouter. The 5.5% fee is smaller than Portkey's subscription, and you skip per-provider account setup entirely.
$900–$5,000/month: It depends on whether you value convenience or governance. If you just want models to work, OpenRouter's markup is tolerable. If you need cost attribution and guardrails, Portkey starts paying for itself.
Above ~$5,000/month: Portkey's flat fee plus direct-to-provider pricing is meaningfully cheaper than a 5.5% markup on five-figure spend, and you get the governance layer as a bonus.
The deeper point: a gateway fee is a thin slice of total AI coding cost compared to which models you route to. A 5.5% markup is trivial next to the 10x gap between a frontier model like Claude Opus 4.8 ($5/$25 per million tokens) and a budget model like DeepSeek V4 Pro ($0.435/$0.87). Get model selection right first with our cost calculator, then pick the gateway whose billing model matches your spend.
Frequently Asked Questions
At what spend does Portkey beat OpenRouter on cost?
Roughly where OpenRouter's 5.5% markup equals Portkey's subscription. At a $49/month Portkey plan that's about $890 of monthly model spend. Below that OpenRouter's percentage fee is cheaper; above it Portkey's flat fee plus direct-to-provider pricing wins.
How is OpenRouter's billing different from Portkey's?
OpenRouter resells model access and adds a 5.5% platform fee on top of model prices. Portkey has you bring your own provider keys — so you pay providers directly at list price — and charges a flat subscription for the gateway and governance features. One scales with spend, the other is fixed.
Does the gateway choice matter more than the model choice?
No. A 5.5% markup or a $49/month subscription is small next to the roughly 10x cost difference between frontier and budget coding models. Optimize model selection and routing first, then choose the gateway whose pricing structure fits your monthly spend.
Is OpenRouter ever worth it above the breakeven point?
Yes. OpenRouter's zero-config access to 300+ models with no per-provider account setup is a real convenience, and for teams experimenting widely that can justify the markup well past the nominal $890/month crossover.
Want to calculate exact costs for your project?
Related Articles
OpenRouter Explains LLM Gateways: How a Routing Layer Cuts AI Coding Costs 30-60%
OpenRouter details how LLM gateways with intelligent routing, semantic caching, and per-key spending caps help AI coding teams reduce token costs by 30-60% without sacrificing quality.
OpenRouter vs Direct API: Which Is Cheaper for AI Coding in 2026?
Compare OpenRouter's aggregated routing with direct API access for AI coding costs. We break down the real markup, calculate when each approach saves money, and explain when the convenience is worth it.
Cloud AI vs Local LLM for Coding: A Complete Cost Breakdown in 2026
Compare the total cost of cloud AI APIs versus self-hosted local LLMs for coding in 2026. GPU hardware costs, electricity, and maintenance vs pay-per-token pricing analyzed.