OpenRouter is a convenient model marketplace, but it is a routing and billing layer, not an inference host. It adds a hop between your app and the model and charges a 5.5% fee on credit purchases. The alternative that fits your stack depends on which of four needs drove you here: broader multi-provider access, enterprise governance and audit, caching, or routing control.

If you need the least expensive way to keep a unified API without a per-request fee, self-host LiteLLM. If you need a central governance and audit layer across the providers you already use, Portkey is the strongest fit. If a specific connection matters more than governance, going direct to the provider that already serves your model can beat every gateway on price. Below is the full comparison.

OpenRouter vs the leading alternatives, side by side

Tool Deployment Multi-provider access Governance and audit Caching Routing Opens the check
OpenRouter Managed marketplace Dozens of providers, 400+ models Activity logs, budgets, opt-in logging; no quality gate Response caching with per-request TTLs Auto Router plus price, throughput, latency rules; failover 5.5% credit fee; 5% BYOK fee after the monthly allowance
Portkey Managed, open-source gateway to self-host on Enterprise Universal API across 1,600+ language, vision, audio, image models Virtual keys, budgets, guardrails, audit logs, SSO on Enterprise Standard caching; semantic caching on enterprise plans Retries, fallbacks, load balancing, timeouts, canary splits Free tier, paid from $49/month
LiteLLM Self-hosted, open source 100+ providers behind one OpenAI-compatible format Virtual keys with budgets, rate limits, spend attribution; you run the database Response and semantic caching, storage you manage Fallback logic in code or YAML Free self-host; enterprise hosted separately
Vercel AI Gateway Managed, tied to Vercel Hundreds of models through one endpoint Budgets, request logs; no eval or release gate Automatic provider prompt-caching controls Provider order, load balancing, fallbacks No token markup; $5 monthly credits
Cloudflare AI Gateway Managed edge network 20+ providers, including OpenRouter itself Persistent logs, DLP profiles, analytics Edge response caching Dynamic routing by percentage or condition Core features free; 5% fee on unified-billing credits
Together AI Managed inference host Open-weight model catalog, not closed providers Usage by model and project Cached-input pricing on selected models Model selection lives in your app Prepaid, per-token, $5 minimum
Braintrust Gateway Managed; self-host on Enterprise OpenAI, Anthropic, Google, AWS, Mistral, plus custom endpoints Project credentials, traces that feed eval, CI gates AES-GCM response cache with TTLs Ordered failover, latency-based global routing Free during beta; Pro $249/month

The verdict up front: no single tool wins every row. Pick by the requirement that is slowing your team down, then confirm the price on the official pricing page, because gateway fees change often.

What OpenRouter does well

OpenRouter popularized the pattern of calling many models through one interface. It routes requests to dozens of third-party model providers through a single OpenAI-compatible endpoint and handles provider selection, fallback between providers, and consolidated billing, so you never integrate each vendor's API separately. DigitalOcean's roundup counts more than 400 models across those providers, and Braintrust's comparison puts the catalog over 500 models across more than 80 providers.

Two features make it a good starting point for teams that are still comparing models. The Auto Router picks a model based on the prompt, and provider preferences decide which upstream host serves the request. Routing rules can prioritize price, throughput, or latency, restrict which providers are eligible, and move a failed request to another endpoint without an application change. Switch models in code by changing the model slug; the client code stays put while models and providers change. Model usage follows the provider's list price, and free variants exist for early routing tests before live traffic.

For evaluation, OpenRouter ships Ori Eval, which can compare models, score open-ended answers with an LLM judge, and fail a CI job. That is more than most gateways offer out of the box.

Where OpenRouter comes up short

The limitations show up as usage scales into production. They fall into five buckets.

Pricing and fees. OpenRouter does not mark up inference. You pay the same token rate you would pay the underlying provider. The company makes money on a 5.5% fee whenever you buy credits, with an $0.80 minimum, and on bring-your-own-key traffic. DigitalOcean and Morph both describe the same structure: BYOK requests are free for the first 1 million calls a month, then a 5% fee applies. Braintrust frames it as a monthly list-price allowance of $25,000 on pay-as-you-go, with 5% charged above that. A flat markup is easier to forecast than a percentage that grows with volume. At scale, this percentage makes OpenRouter a larger recurring line item.

No availability guarantee. OpenRouter's terms describe access on an as-available basis, without a formal SLA or a published uptime percentage. DigitalOcean notes that an outage or rate limit at the underlying provider can still affect your app, and that troubleshooting means working out whether the fault sits with OpenRouter, the provider, or your code. A status page tracks incidents in real time, but there is no contractual buffer.

Evaluation stays disconnected from production. Ori Eval's repository-based eval files live separately from production logs. A low-quality live response does not become a reusable regression case and does not receive automatic online scoring. Braintrust makes the point directly: OpenRouter records model, provider, cost, and timing, but it does not make measured output quality a release requirement, so evaluation stays separate from routing.

Observability is opt-in. No prompt or completion logging happens by default, even on errors, unless you switch it on. Opting into logging earns a 1% usage discount. Multi-step traces and wider production monitoring depend on external tools connected through OpenRouter's Broadcast channel.

The free tier is tight. Without credits you get 50 requests a day. After you buy at least $10 in credits, the daily limit rises to 1,000. Free model variants are capped at 20 requests per minute.

The four needs that drive a switch

Before comparing tools, decide which need is pressing. Every alternative here solves one or two of these well and trades off the rest.

Multi-provider access. This is what OpenRouter already does: a single endpoint in front of many providers. Alternatives differ in catalog size, whether you can add custom or self-hosted endpoints, and whether the gateway routes to providers you name (Portkey, Cloudflare) or to providers the platform itself hosts (Together AI).

Enterprise governance and audit. Who may call which model, what budget applies, what data leaves your environment, and who can see the full request trail. Virtual keys, budgets, guardrails, access policies, data residency, and audit logs are the currency of this need. OpenRouter offers activity logs and budgets but leaves the deeper audit trail to you.

Caching. Response caching and cached-input pricing cut cost and latency on repeated long-context requests. OpenRouter ships response caching. Portkey adds semantic caching on enterprise plans, Cloudflare caches at the edge, and provider cached-input pricing can matter more than the headline token rate for workloads with a large fixed system prompt.

Routing control. Whether the gateway decides routing for you (an auto classifier) or you set explicit policies by cost, latency, task type, or percentage split. Portkey and Cloudflare give you policy knobs; Together AI leaves model selection to your code.

Portkey: the governance and audit layer

Portkey positions itself less as a model marketplace and more as a reliability and observability layer that sits in front of whichever providers you already use. DigitalOcean describes it as provider-agnostic by design: it can front OpenAI, Anthropic, open-weight models, or even another LLM gateway, which makes it a common companion rather than a full replacement for a marketplace. Braintrust counts more than 1,600 language, vision, audio, and image models behind its universal API.

The governance story is the selling point. Virtual keys store and manage upstream provider credentials centrally, so individual apps never touch raw API keys. Administrators assign budgets, rate limits, and permissions per key. Guardrails handle PII redaction and prompt-injection detection. The Prompt Library adds version control, labeled deployments, and rollback for prompt changes, and canary testing splits traffic between models or prompt versions for controlled rollouts. On the request path, retries, fallbacks, load balancing, and timeouts decide how traffic moves across providers, and hosted logs capture traces, feedback, metadata, and alerts.

For audit, Portkey's enterprise tier adds SSO, custom retention, data isolation, and hybrid deployment, and the open-source Gateway covers self-hosted routing when you need the proxy inside your own network. The tradeoff: the developer tier records 10,000 logs a month and keeps them for three days only, so meaningful audit trails push you toward a paid plan. Braintrust lists the free tier at 10,000 logged requests and paid plans from $49 a month, with custom enterprise pricing. DigitalOcean notes the same usage-based tiers.

Choose Portkey when the requirement is one policy and audit layer across several applications and providers, and you want to keep the providers you already use.

LiteLLM: the self-hosted, multi-provider gateway

LiteLLM is an open-source Python SDK and proxy server that translates calls to more than 100 provider APIs into a single OpenAI-compatible format, under an MIT license. Because you self-host it, the gateway stays inside your own infrastructure instead of routing traffic through a third party's servers, which matters for strict data-residency requirements. If your goal is to keep OpenRouter's unified API without the per-request fee, self-hosting LiteLLM is the direct answer.

The proxy centralizes provider credentials behind virtual keys with model permissions, budgets, rate limits, and spend attribution. An admin UI shows dashboards for usage, spend, and latency. Fallback logic is configured in code or a YAML file. Guardrail integrations cover PII masking and prompt-injection detection, and observability callbacks stream logs to tools like Langfuse, MLflow, and Prometheus.

The cost of control is operations. Virtual keys and usage tracking require PostgreSQL, and Redis handles shared caching and state in multi-worker deployments. Braintrust flags both dependencies. You own running, scaling, and securing the proxy, plus the database behind it. On the evaluation side, logging callbacks forward request data to observability integrations, but evaluation datasets, quality scoring, and CI regression gates depend on external tooling. The open-source core is free to self-host; a hosted enterprise version with support and governance features is priced separately.

Choose LiteLLM when your team treats gateway operations as part of its own infrastructure and has the capacity to run it.

Vercel AI Gateway: routing inside your existing frontend

Vercel AI Gateway brings multi-provider model routing directly into the Vercel platform, aimed at teams already deployed there. Hundreds of models sit behind a single endpoint, accessible through the AI SDK and OpenAI-compatible clients. Automated failover sends a request to the same model on a different provider when one errors, rate-limits, or times out. Bring-your-own-key works across 20-plus providers at zero markup, and paid usage passes provider token rates through without markup. New accounts start with $5 in monthly credits.

The value is tightly coupled to being on Vercel. Billing and management ride on your existing Vercel usage, and the AI SDK integration makes switching models in code almost trivial for that toolchain. Teams hosting elsewhere gain less from adopting Vercel purely for the gateway. Braintrust notes that bring-your-own-key is limited to the paid tier, and that there is no integrated dataset, experiment, or CI quality gate, so evaluation needs separate tooling. DigitalOcean adds an optional Zero Data Retention routing mode for compliance-sensitive workloads at a per-request charge.

Choose Vercel AI Gateway when your application already lives on Vercel and you want model access billed and managed beside the rest of your platform usage.

Cloudflare AI Gateway: caching and analytics at the edge

Cloudflare AI Gateway sits in front of 20-plus AI providers, including OpenAI, Anthropic, Workers AI, and even OpenRouter itself, and adds a control-plane layer of analytics, logging, response caching, rate limiting, and fallback routing. It is not primarily a model marketplace. It is built for teams that already know which providers they want and need visibility into cost, latency, and usage across them plus caching to cut redundant calls.

Requests pass through Cloudflare's edge network before reaching the configured provider. Dynamic Routing supports percentage-based traffic splits and conditional rules by budget, geography, or request attributes, which serves A/B testing models without redeploying code. Data Loss Prevention profiles scan prompts and completions for sensitive data and can flag or block. Bring-your-own-key stores and rotates credentials centrally, currently in beta.

The pricing model is the headline: core analytics, caching, and rate limiting are free on every Cloudflare plan. An optional Unified Billing feature lets you pay for third-party model usage on your existing Cloudflare invoice, passing provider rates through with no markup plus a flat 5% fee on purchased credits. A $100 credit purchase settles at $105. Persistent log storage is capped by plan, and quality experiments and regression gates require separate tooling.

Choose Cloudflare AI Gateway when AI requests should share the edge network and account boundary used by the rest of a Cloudflare-hosted application.

Together AI and going direct: the open-model price lever

Together AI runs a large catalog of open-weight models and pairs inference with fine-tuning and dedicated endpoint options. Serverless inference handles variable traffic at per-token rates, batch jobs run asynchronous workloads, and dedicated endpoints reserve GPU capacity for steady throughput. The catalog covers Llama, DeepSeek, Qwen, and similar families, but it does not broker the hosted APIs for OpenAI GPT, Anthropic Claude, or Google Gemini; those closed providers need a separate gateway. Together AI does not advertise a task-aware router, so model selection and fallback generally live in your application code. Serverless pricing runs roughly hundreds of basis points per million tokens depending on the model.

Morph makes a related point that applies to any gateway. OpenRouter is a router, not an inference provider; it passes provider token rates through, so the same model carries different direct prices at different hosts. DeepSeek V4 Pro, for example, cost $1.30 per million input tokens on DeepInfra, $1.74 on Fireworks, and $2.10 on Together in the same period. Going direct to the provider that already serves your model is often the largest lever, larger than the 5.5% credit fee. DeepInfra leads on open-model price with no free tier and no minimum, Groq optimizes for tokens per second rather than headline price, and both publish dedicated GPU rates.

The governance caveat: direct providers each carry their own compliance posture, and you give up the single billing and fallback view a gateway provides. The direct route makes sense when you are committed to one open-weight model, not when you need multi-provider resiliency.

Two more to know: Braintrust Gateway and TrueFoundry

Braintrust Gateway routes model and embedding requests to OpenAI, Anthropic, Google, AWS, Mistral, and other supported providers through a unified API that works with the existing OpenAI, Anthropic, and Google SDKs. Its defining move is connecting routing to evaluation: each request becomes a trace, a low-quality response can move from that trace into a dataset, scorers and human review measure its quality, experiments compare changes against it, and CI gates releases against regression thresholds. AES-GCM response caching, project-level credentials, and ordered failover round out the request path. The hosted gateway is free during beta, with Pro at $249 a month. Choose it when model or prompt changes must clear a measured quality threshold before they ship.

TrueFoundry bundles an LLM gateway with a broader MLOps platform, unifying access to more than 250 models behind one OpenAI-compatible endpoint for enterprises that want the gateway as one piece of a larger internal AI platform. It supports bring-your-own-cloud and on-premises deployment and, per its own statements, SOC 2, HIPAA, and GDPR readiness. Pricing starts with a free developer tier of 50,000 requests a month, then paid plans from $499 a month. Choose it when you are also evaluating internal platform-engineering tools, not just a router.

Which gateway fits your stack

Match the tool to the need that actually drives the migration.

  • You want a unified API without a per-request fee and you can operate infrastructure: self-host LiteLLM.
  • You want one governance and audit layer across the providers you already use: Portkey.
  • You are already on Vercel and want model access bundled with it: Vercel AI Gateway.
  • You are on Cloudflare and want edge caching and analytics with a low barrier: Cloudflare AI Gateway.
  • You are committed to open-weight models and want to fine-tune and serve them: Together AI.
  • You need measured quality before a model change ships: Braintrust Gateway.
  • You want the least expensive direct rate for one committed model: go straight to the serving provider.

For teams weighing several options, the same starter applies. Confirm the monthly traffic estimate, add platform fees, BYOK charges, plan fees, and cache savings, then compare on that one number instead of headline list prices.

How the migration works

An OpenAI-compatible client keeps the code change contained. Replace the gateway's base URL with the new endpoint, load the new credential, and send one basic Chat Completions request to confirm the endpoint and key work. Map every OpenRouter provider/model slug, including the free variants, to the new gateway's canonical model ID before you cut over. Validate requests that use tool calls, structured outputs, context length, and reasoning controls, because those behaviors vary across models. If the target gateway supports it, run the validation as an experiment so you keep the OpenRouter baseline for rollback and audit questions.

Frequently asked questions

Is OpenRouter reliable for production?
It depends on the providers behind it. OpenRouter operates on an as-available basis with no formal SLA, so an upstream outage can still reach your app. Teams that need a contractual availability guarantee look to platforms that either host the models themselves or back the gateway with their own SLA.

Why is the credit fee a problem at scale?
A percentage fee grows with volume. A flat markup or a fixed-price plan is easier to forecast, and at high throughput the 5.5% credit fee plus the 5% BYOK fee above the monthly allowance becomes a material line item.

Which alternative keeps OpenRouter's single API without a fee?
Self-hosted LiteLLM keeps the unified API in your own infrastructure with no per-request fee on top of provider rates.

Does any alternative cover enterprise audit trails?
Portkey and Cloudflare both add persistent logs, guardrails, and access controls. Portkey's enterprise tier adds SSO, custom retention, and data isolation, and its open-source gateway self-hosts.

Do I have to switch all at once?
No. An OpenAI-compatible gateway can run alongside OpenRouter while you compare cost and routing behavior on your own traffic, then shift traffic after the replacement meets your quality threshold.

Where to go next

If you are still deciding what this category actually does, our explainer on the LLM gateway defines the problems it solves, including routing, fallback, caching, and observability. For a wider sweep of candidates beyond OpenRouter, the roundup of the best LLM gateway platforms covers more options. If a general API gateway and an LLM gateway keep getting confused in your stack, the difference is drawn out in LLM gateway vs API gateway.

One neutral note to close: infere is the enterprise AI infrastructure company behind this guide. The comparisons above cite data from DigitalOcean, Braintrust, and Morph, with official pricing pages linked for each tool, because gateway fees change quickly.

Route every model call through one gateway

Route, cache, and govern AI traffic from one OpenAI-compatible platform.

Start Free → See Features