LLM gateways are excellent at telling you what happened at the request level: token cost, latency, model used, failover triggered. What they cannot tell you is whether the output was accurate, compliant, or fit for the business decision it informed.
For teams routing LLM calls between providers, that request-level visibility is the right starting point. For enterprises where those outputs feed into credit decisions, patient records, or regulatory filings, it is not the whole answer.
This article covers both: the six strongest LLM gateways for routing, observability, and cost control, and the governance layer that sits above them when request-level tracing is no longer sufficient.
Six LLM gateways are compared across routing intelligence, observability depth, model coverage, security features, and pricing: Inworld Router, OpenRouter, LiteLLM, Portkey, Braintrust Gateway, and Helicone.
The strongest gateways differ primarily on routing intelligence and observability depth rather than model coverage. Most support 200+ models.
Gateways solve the infrastructure problem between an application and its model providers. They do not solve the accountability problem between an LLM output and the business decision it informed.
Enterprises operating in regulated environments need both layers: a gateway for request-level routing and observability, and a governance layer for output-level accountability.

An LLM gateway is routing and observability middleware that sits between an application and multiple model providers, offering a unified API, intelligent routing, failover logic, cost controls, guardrails, and request-level tracing.
The distinction from related infrastructure matters. A generic API gateway handles any API traffic but does not understand model-specific concerns like token costs, prompt caching, or model-aware routing. An orchestration framework (LangChain, LlamaIndex) manages multi-step agent workflows but does not manage individual model calls at the infrastructure level. An LLM gateway operates at the request layer: one application, one call, routed to the right model at the right cost with the right observability.
LLM gateways matter because direct integration with model providers, without a routing and observability layer, creates three compounding risks.
Model proliferation makes direct integration fragile. Production-viable model catalogs now exceed 1,600 models across major providers, and maintaining separate API integrations, auth flows, and error handling per provider is engineering overhead that scales linearly with every new model added to the stack.
Cost volatility requires centralized routing logic. Cost volatility requires centralized routing logic. Provider pricing changes frequently, and without a gateway that can reroute traffic based on cost thresholds, teams have no systematic way to optimize spend as the market shifts.
Compliance pressure makes request logging a baseline. Enterprises deploying LLMs in regulated industries face increasing audit requirements. Request-level logging (which model was called, at what cost, with what latency, whether failover was triggered) is a minimum expectation rather than an optional feature.
The risk of operating without a gateway: vendor lock-in at the API level, no unified observability across providers, and no fallback when a provider hits rate limits or degrades.
Models supported, pricing, and feature claims sourced from each gateway's published documentation. Verified as of June 2026.
The key finding: The strongest gateways differ primarily on routing intelligence and observability depth. Model coverage is converging across the category. The right choice depends on whether the priority is cost optimization, compliance logging, developer flexibility, or quick observability.
Each review provides a concise snapshot covering core strength, primary limitation, and best-fit use case.
Inworld Router routes requests based on business-level metrics — cost, latency, engagement, revenue, or any other metric a team defines — rather than round-robin distribution or simple model selection.
Inworld Router provides access to 220+ models from leading providers through a single endpoint, and adds less than 5ms of latency to the first token when streaming. It supports multimodal inputs (text, audio, image, code, documents). Inworld Router passes through provider rates with no markup on third-party models.
Limitation: LLM pricing is billed at provider cost across all tiers, with no separate published rate card for the router itself beyond "at cost."
Best for: Engineering teams optimizing cost-quality trade-offs at scale who want intelligent routing without building the logic themselves
OpenRouter provides a unified API endpoint for 400+ models across 70+ providers. OpenRouter uses credit-based billing with per-token pricing that matches provider rates exactly, with no inference-level markup.
Cost tracking is supported through activity logs, exportable data, and budget controls. A 5.5% platform fee applies to Pay-as-you-go credit purchases. Drop-in replacement for the OpenAI SDK — change the base URL and API key.
Limitation: Routing operates on provider and endpoint attributes — price, throughput, latency, quantization, and data policy, configured per request, with no field for conditional logic based on business rules or request content.
Best for: Developers who need fast access to a broad model catalogue for experimentation and prototyping without managing multiple provider integrations
LiteLLM is an open-source Python proxy that provides a unified API across 100+ model providers. Fallback chains, budget caps, and load balancing are configurable through code. Self-hostable, meaning the team retains full control over infrastructure, data flow, and security.
Limitation: Production deployment requires the team to provision and manage their own infrastructure, including a minimum of 4 CPU cores and 8 GB RAM, plus a PostgreSQL database for virtual keys, spend tracking, and the admin UI.
Best for: Engineering teams with infrastructure capacity that need full control over their LLM routing layer and cannot use managed services due to data residency or security constraints
Security note
In March 2026, a supply chain attack compromised LiteLLM versions 1.82.7 and 1.82.8 on PyPI. The compromised packages contained a credential stealer designed to harvest environment variables, SSH keys, cloud provider credentials, Kubernetes tokens, and database passwords, then exfiltrate them to a non-official domain.
LiteLLM released a clean version (v1.83.0) built on a new, isolated CI/CD pipeline. The company also engaged Google's Mandiant security team for forensic review. Teams running self-hosted LiteLLM should verify they are on a clean post-incident release and rotate credentials that were accessible on machines where the compromised versions were installed.
Portkey combines gateway routing with governance features, such as guardrails for content filtering, support for 3,000+ models, and observability dashboards.
Compliance-focused features including audit logging and policy enforcement position it as the most governance-capable gateway on this list.
Limitation: Developer tier is free and Production tier is $49/month, but enterprise pricing is custom-quoted, making cost comparison difficult during evaluation.
Best for: Enterprises in regulated industries that need compliance-grade logging and guardrail enforcement at the gateway layer
Braintrust Gateway focuses on observability and evaluation: every gateway request can be logged as a structured trace linked to the model, inputs, outputs, timing, metadata, and cache status. Scores and feedback can be attached to a logged request after it completes, and evaluation loops score outputs against defined quality criteria.
The free (Starter) tier includes 1 GB of processed data and 10,000 scores per month. The hosted gateway itself is currently in beta and free to use.
Limitation: Still in beta, with gateway pricing not yet finalized — Braintrust states pricing will be announced before general availability.
Best for: Teams that need detailed observability with built-in output scoring and are willing to work with a maturing product
Helicone is an observability-first LLM proxy that provides drop-in request logging, cost dashboards, and usage analytics with one line of code. Open-source under the Apache 2.0 licence with a free tier of 10,000 requests per month.
Teams can choose between EU and US regions for where request data is stored, to meet data residency and compliance requirements.
Limitation: Routing relies on automatic failover across providers rather than conditional logic based on request content or business rules.
Note on acquisition: Helicone was acquired by Mintlify in March 2026. Helicone's services remain live in maintenance mode, with security updates, new models, and bug fixes continuing to ship, but the company's own announcement does not describe active feature development continuing.
Best for: Startups and small teams that need a quick analytics layer over their LLM calls without committing to a full gateway platform
A gateway can confirm that a request completed successfully, cost $0.003, and returned in 340 milliseconds. It cannot confirm that the response was accurate, compliant with internal policy, or appropriate for the regulated decision it informed.
That is the gap Dataiku, the Platform for AI Success, fills. The Dataiku LLM Mesh addresses. It sits at the application layer above the gateway, connecting to model providers through whichever gateway infrastructure is already in place (LiteLLM, Portkey, OpenRouter, or a direct provider integration) and applies business-rule guardrails before outputs reach users or downstream systems.
The key distinction: Gateways operate at the request level. Dataiku operates at the output level.
Output quality monitoring: Continuous evaluation of whether LLM outputs meet defined quality thresholds as model versions change and prompt distributions shift; a gateway logs that the model responded. Dataiku evaluates whether the response was good enough.
Audit trails at the output level: Not just which model was called and at what cost, but what the output was, who received it, and whether it met compliance standards; Cost Guard, Safe Guard, and Quality Guard screen every interaction before it reaches production.
Compatibility with existing gateways: Dataiku does not replace the gateway infrastructure already in place. It adds a governed application layer above it. Teams running LiteLLM for routing, Portkey for compliance logging, or OpenRouter for model access add Dataiku for the accountability layer that sits between the gateway and the business decision.
Gateways are the infrastructure answer and Dataiku is the accountability answer. Enterprises operating in regulated environments need both.
Four steps structure the selection of the LLM gateway that would work for you.
Step 1: Define scale: Estimated request volume and model diversity requirements determine whether a managed gateway or self-hosted proxy is the right fit.
Step 2: Assess routing requirements: Cost optimization points to Inworld Router. Compliance logging points to Portkey. Developer flexibility and infrastructure control point to LiteLLM. Quick observability points to Helicone or Braintrust.
Step 3: Determine hosting preference: Managed cloud for teams that want to minimize infrastructure burden, self-hosted for teams with data residency constraints or security requirements that managed services cannot satisfy
Step 4: Map compliance requirements: For teams where compliance extends beyond request logging into output quality and business accountability, a gateway alone covers the infrastructure layer. Pairing with Dataiku covers the output accountability layer.
The right gateway depends on whether the priority is routing intelligence, observability depth, compliance logging, or developer control. No single gateway wins across all four.
Use the comparison table and decision matrix above to shortlist two candidates for proof-of-concept testing. The gateway question and the governance question are related but distinct. Getting the gateway right is the infrastructure decision. Getting governance right is the accountability decision. For enterprises where LLM outputs inform regulated business decisions, both decisions need answers.
Discover Dataiku for governed LLM operations
Add output-level governance to your LLM stack with the Dataiku LLM Mesh
Yes. Most LLM gateways support the OpenAI SDK protocol. Integration typically requires changing only the base URL and API key in existing code. No application logic changes are needed to route through the gateway.
Most gateways add single-digit to low double-digit milliseconds of overhead per request. The routing decision, logging, and any guardrail checks account for the majority of that overhead. For real-time, user-facing applications, benchmark latency under production conditions with your actual request patterns. Gateway overhead is typically negligible compared to model inference time.
LiteLLM (fully self-hosted) and Helicone (open-source, self-hostable) support on-premises deployment. Portkey offers hybrid VPC and fully air-gapped deployment options for Enterprise customers. Inworld Router also offers on-prem deployment and data residency (EU and India) at its Enterprise tier, despite being a managed gateway by default.
OpenRouter is the one gateway in this set with no self-hosted or in-VPC option; it's SaaS-only. Enterprise accounts can route through EU-based providers and use Zero Data Retention controls, but the gateway itself always runs on OpenRouter's infrastructure.
SOC 2 Type II is the baseline for enterprise deployments. HIPAA compliance matters for healthcare use cases. GDPR alignment matters for organizations processing EU personal data. Evaluate whether the gateway stores request content (prompts and responses) or only metadata, and where that storage resides. For gateways that log full request content, data residency and encryption at rest are non-negotiable requirements.
Gateways provide request-level tracing: which model was called, at what cost, with what latency. Regulated decisions require output-level accountability: what the model said, whether it was accurate, who received it, and whether it met compliance standards. That output-level layer includes quality monitoring over time, audit trails that connect outputs to business decisions, and governance workflows that route compliance issues to the right reviewer. The Dataiku LLM Mesh provides this layer above existing gateway infrastructure.
Inworld Router is a product of Inworld AI, Inc. OpenRouter is a product of OpenRouter, Inc. LiteLLM is a product of BerriAI. Portkey is a trademark of Portkey AI. Braintrust is a trademark of Braintrust Data, Inc. Helicone is a trademark of Helicone Inc. Dataiku is not affiliated with or endorsed by any of the above companies. All product capabilities, pricing, and feature availability referenced in this article are sourced from publicly available vendor documentation as of May 2026.