An LLM gateway can centralize model access, credentials, fallbacks, and spending controls. In a production voice agent, it also sits on a caller's response path. A successful retry that arrives too late can still ruin the conversation. Compare six gateways by deployment, streaming behavior, recovery boundaries, governance, and actual cost structure, then separate the gateway decision from the voice runtime it serves.
LLM gateway comparison at a glance
An LLM gateway is a service between your application and large language model providers. It centralizes requests, provider credentials, routing, and policies. Some gateways also supply caching, usage accounting, and observability.
A virtual key is a scoped gateway credential used in place of underlying provider keys. Guardrails apply rules to requests or model outputs. A fallback sends a failed request to another configured target.
The best LLM gateway for a production voice agent depends on who should operate that service and what happens when a live response stalls. Model count alone says little about either requirement.
| Gateway | Operating model | Relevant control focus | Commercial starting point |
|---|---|---|---|
| LiteLLM | Self-hosted proxy | Model groups, virtual keys, budgets, retries | Free open-source gateway; paid Enterprise |
| Portkey | Hosted service or self-hosted gateway | Routing configs, traces, guardrails | Published comparison: free Dev; Pro $49/month for 100,000 monthly requests, plus overages; custom Enterprise |
| Bifrost | Self-hosted gateway | Provider routing, virtual keys, request deadlines | Free open-source gateway; custom Enterprise |
| Cloudflare AI Gateway | Managed Cloudflare service | Provider access, logs, caching, routing | Core features free; other services and usage can add charges |
| OpenRouter | Hosted model and provider router | Provider selection, fallbacks, consolidated access | Model usage plus credit-purchase fees |
| Kong AI Gateway | Hosted, hybrid, or on-premises options | Central API and AI traffic governance | Deployment-specific platform and usage charges |
These are different purchasing decisions. Self-hosting puts placement and operation in your hands. A hosted gateway removes proxy infrastructure work while adding a service dependency. A model router can also consolidate provider access and billing.
A gateway does not, by itself, supply phone connectivity, turn-taking, speech playback, or recovery of a business action. Those remain separate parts of the voice-agent architecture.
Six gateways and their voice-agent tradeoffs
LiteLLM: self-hosted model access and spend controls

LiteLLM provides an open-source proxy with an OpenAI-format interface, virtual keys, spend tracking, budgets, and rate limits. Its routing model separates a named model group from the deployments serving it. A retry can select another deployment in that group; a fallback moves to another group.
That distinction matters when a voice product must retain a model's behavior while moving between endpoints, rather than immediately switching to a different model.
Its stream recovery behavior also has explicit limits. Before content reaches the client, a broken stream can enter retry or fallback handling. After content arrives, the stream fails unless eligible mid-stream continuation is enabled. That continuation supports particular plain-text cases and excludes streams that have emitted tool calls, thinking blocks, audio, or images.
Tradeoff: running the proxy means owning its availability, upgrades, credentials, and supporting state. OpenAI-format access does not make every provider feature interchangeable.
Cost: the open-source gateway has no license fee. Enterprise adds paid governance, security, and support, priced by annual request capacity, deployment architecture, and support requirements. Infrastructure and model usage remain separate costs.
Portkey: routing policies and request-level visibility

Portkey, now Prisma AIRS AI Gateway, combines a universal model interface with routing configs, fallbacks, load balancing, retries, traces, and guardrails. Configs can nest routing strategies, and traces connect the attempts within a fallback chain.
This operating model suits teams that want model-routing policy and request evidence managed together. A policy can distinguish a provider failure from a condition that should route a particular request elsewhere.
For voice, its request timeout behavior needs a precise reading: on a streaming request, receiving a chunk before the configured duration prevents that timeout from firing. That setting alone does not bound a stream that stalls later.
Tradeoff: the open-source gateway and the hosted platform have different feature and operational scopes. Self-hosting the gateway does not automatically include the hosted administration and observability package.
Cost: Portkey's published plan comparison lists a free Dev tier with 10,000 monthly requests and Pro at $49/month with 100,000 monthly requests. It lists Pro overages at $9/month per additional 100,000 requests, up to 3 million requests, and custom Enterprise pricing. These are the comparison's published figures, rather than independently confirmed current purchase terms. Dev is positioned for proof-of-concept work, early development, and testing Portkey's capabilities. Model usage and any separately billed guardrail services belong in the total.
Bifrost: a self-hosted gateway with explicit deadline handling

Bifrost is a Go-based gateway with provider routing, streaming, fallbacks, virtual keys, budgets, rate limits, and telemetry. It can run as a self-hosted service, with commercial features extending the operating model.
Its retry and fallback rules distinguish provider timeouts from an expired request deadline. A provider timeout or time-to-first-token timeout can trigger fallback. An expired request deadline ends the request. Caller cancellation also stops the fallback chain.
That is a useful distinction for a voice turn: a backup model is valuable only while there is time left to use its answer. Each fallback provider receives its own retry budget, so the enclosing request deadline still matters.
Tradeoff: a small gateway deployment is only one part of production operation. Authentication, durable configuration, upgrades, and availability still need owners. Enterprise clustering and security integrations are separate from the free gateway.
Cost: the open-source gateway is free to self-host. Enterprise pricing is custom and adds capabilities including cluster mode, enterprise identity integrations, audit logs, and vault integrations. Hosting and inference are additional.
Cloudflare AI Gateway: managed controls with distinct REST and realtime paths

Cloudflare AI Gateway provides managed analytics, logging, caching, rate limiting, retries, and model fallback. It supports provider-native request paths as well as realtime connections. Its Unified API compatibility endpoint is deprecated for standard single-model chat completions. Existing integrations continue to work, and dynamic routes can still use that endpoint.
The realtime WebSockets API supports specified providers and remains beta. Dynamic routes are also beta. Support for a realtime transport does not establish that all REST routing policies behave identically inside an existing audio session.
Tradeoff: the gateway, its authentication, logging, and any Workers-based integration become Cloudflare dependencies. Workers AI is an optional model path, rather than a requirement to use the gateway. Moving away means replacing gateway endpoints and policies, plus any surrounding Cloudflare-specific application code.
Cost: core analytics, caching, and rate limiting are free. New gateway accounts use Workers Logs pricing and retention. Guardrail inference and log exports can add charges. Optional Unified Billing applies a 5% fee to purchased credits; provider inference prices pass through without markup.
OpenRouter: hosted provider routing and consolidated model access

OpenRouter supplies a hosted API for model access and provider routing. Its provider-selection controls include provider allowlists, ordered preferences, fallback settings, price limits, and parameter requirements. Routing between providers serving one model is distinct from falling back to another model.
For a voice product, explicit provider constraints make the serving path more predictable than an unconstrained choice across the catalog. An alternate provider still needs the required tools, parameters, and data policy.
Tradeoff: consolidated access adds a routing and commercial intermediary. Bring-your-own-key access changes billing responsibility, but traffic still passes through OpenRouter. Its stream cancellation support also varies by provider: closing the client stream does not universally stop upstream processing or billing.
Cost: inference uses the provider's listed rates. Standard credit purchases carry a 5.5% fee; Business purchases carry 8%. Bring-your-own-key usage has a separate allowance and fee structure. A credit-purchase fee and a token-price markup are different cost mechanisms.
Kong AI Gateway: AI traffic within a broader governance platform

Kong brings model traffic into an API-governance environment with authentication, policy enforcement, routing, streaming, and usage visibility. Its AI gateway architecture includes fully hosted request-processing services, called data planes, as well as hybrid and on-premises deployment paths. Control planes manage their configuration and policies.
This is relevant when a platform team already governs APIs through Kong and wants model traffic under shared policy and administration. Central policies and consumer controls can matter more than adding another application-specific proxy.
Tradeoff: deployment model, product generation, and paid capabilities affect configuration and responsibility. Kong's plugin-based AI capabilities and AI Gateway 2.x are different implementation paths. Adopting a broad governance platform solely for one voice application's model calls also adds administration that a narrower gateway may avoid.
Cost: published serverless AI gateway control planes are $25/month, hybrid control planes $200/month, and Dedicated Cloud control planes $500/month. Request-volume charges, bandwidth where applicable, and paid capabilities can add to those amounts. These are gateway charges, separate from model inference.
Where gateway reliability ends in a voice call
A production voice agent has several commitment boundaries. Treating all of them as “the stream started” hides the recovery problem.
| Boundary | What has happened | What recovery must preserve |
|---|---|---|
| Transport committed | Response headers or startup events may have reached the client | Errors may now arrive inside the stream rather than as a new HTTP status |
| Speech delivered | The caller has heard part of the answer | A new generation cannot retract those words; the runtime owns a coherent spoken recovery |
| Business action dispatched | A booking, payment, or other write may be in progress | The backend must resolve the action's outcome before another write can safely replace it |
The engineering implication is that a gateway's recovery boundary and the caller's experience boundary are different. An HTTP success response is insufficient evidence of a completed answer. A fallback is insufficient evidence of a completed business action.
Three timing controls serve different purposes:
- Time to first usable output limits the silence before generation begins. A header, heartbeat, or empty startup event may contain nothing speakable.
- Inter-chunk timeout limits a stall after a stream begins.
- Total turn deadline bounds queueing, attempts, backoff, tools, and generation together.
One layer should own model-call retries. Independent retry loops in the application, gateway, and provider client can multiply attempts and consume the same caller's time. Amazon's retry design guidance explains both load amplification and why a timeout does not establish that a side effect failed.
After an interruption, the voice runtime also needs to suppress stale text and audio. Cancelling model generation cannot undo a tool write. Our tool-calling execution guide separates model proposals, authorization, duplicate-safe execution, and reconciliation.
Compare latency, governance, and cost at the right boundary
Gateway overhead is the added work and network travel between the application and provider. It is different from model time to first token and from the caller's complete wait for speech.
A meaningful overhead comparison holds the model, provider endpoint, region, payload, connection reuse, concurrency, and enabled policies constant. It includes logging and guardrails used in production. The 95th and 99th percentile, or p95 and p99, expose slow-tail behavior that an unloaded average misses. Our voice latency guide explains the complete audio-to-audio boundary.
For governance, the important unit is the tenant and workflow. A virtual key provides useful isolation only when server-side policy binds it to the permitted models, providers, budgets, and data paths. The same restrictions must survive fallback. A spending cap also cannot manufacture provider capacity or reserve a concurrent voice session.
Keep provider credentials out of model-visible context. Separate development and production access, restrict administrative permissions, and limit stored prompt and response content. Caching personalized answers needs tenant isolation and a freshness policy. Cached reference data is a different risk from a cached account balance or booking confirmation.
The cost comparison needs the whole operating bill:
Gateway cost = platform or license fees + gateway hosting + logs and retention + policy services + applicable transaction or credit fees.
Model inference, speech services, telephony, and voice-runtime charges sit alongside that amount. Retries, canceled generation, and fallback choices can change usage. Request-level accounting should retain the selected provider, attempt history, tenant, and final outcome so cheaper tokens do not conceal more failed calls.
Where Dasha fits alongside the gateway decision
If the missing layer is the production voice runtime, we recommend Dasha. We provide a managed production platform for technical teams building conversational AI products, with a voice runtime, REST APIs, telephony, integrations, testing, and call-level monitoring.
We are not an LLM gateway, and the gateway products above are not substitutes for that runtime. The two decisions solve different operating problems.
Our voice-agent tools support JSON Schema definitions, webhook execution, and built-in tool testing. Model Context Protocol, or MCP, connections support tool discovery and filtering. Your backend retains responsibility for customer authorization, business approvals, duplicate-safe writes, and reconciliation.
A particular external gateway is a separate integration requirement. An OpenAI-compatible label alone does not establish Dasha compatibility, custom-endpoint support, or passthrough of every authentication header and streaming event.
Teams that want to own the voice stack and only centralize model access can use a gateway with their own orchestration. Teams that want managed voice execution should make the runtime decision first and define any external-gateway requirement explicitly.
For the managed runtime path, start building with Dasha.



