unbiased ai

Blog

LLM gateways: the complete guide

One integration, many models: that is the promise of the gateway layer. This guide covers the four types, what each actually charges, the latency cost we measured, and the selection question nobody prices: who picks the model for each request.

4 types
aggregators, control planes, self-hosted gateways, and blended models. Different fees, different jobs
+68ms
the median time-to-first-token we measured for a full routing hop; p95 was better through the gateway than direct
~$900/mo
the spend level where flat platform fees beat percentage fees. Below it, percentages are the cheap convenience

An LLM gateway is a layer between your application and model providers that gives you one API surface for many models. The four types in 2026: aggregators (OpenRouter, 5.5% fee on credits), control planes (Portkey, $49/month flat), self-hosted gateways (LiteLLM, free plus ops), and blended models (Pareto, billed at cost) that pick the model for you.

What a gateway actually does

Every gateway solves the same integration problem: your code speaks one API (almost always the OpenAI-compatible surface) and the gateway speaks to every provider. What differs is everything else: who pays for it and how, who operates it, who owns the data path, and, most consequentially, who decides which model serves each request. The categories below sort by those answers.

The four types, with real fees

TypeExampleFee modelWho picks the modelFull comparison
AggregatorOpenRouter5.5% on credit top-upsyou, from a 400+ catalogOpenRouter alternatives
Control planePortkey$49/mo flatyou, with governancePortkey alternatives
Self-hostedLiteLLM$0 + your ops timeyou, in a config fileLiteLLM alternatives
Blended modelParetomodels at costseveral LLMs per requestmodel card

Requesty (5% token markup, caching included) sits between aggregator and control plane. Fees verified 2026-08-18 from public pricing pages.

What the fees cost at your scale

Pareto 26.9’s published benchmark scores are on the model card. Measured task costs and a composite score have not been published for this release.

Every fee structure at your spend

OpenRouter 5.5% on credit top-ups; Requesty 5% token markup; Portkey $49/month flat; LiteLLM $0 licence with ops estimated at ~$1,000/month (two loaded engineer-hours a week) unless the box is ticked. Fees verified 2026-08-18. The crossover between 5.5% and $49 flat sits near $891/month.

The latency question, measured

The standing objection to any gateway is the extra hop. We measured it: twenty streamed requests direct to a provider versus twenty through a full routing gateway, same prompt, same hour. The gateway added +68ms at the median time-to-first-token, and its p95 was actually better than direct (0.821s vs 0.925s), because provider-side variance is larger than the hop. Method and a runnable script in the gateway comparison. Latency becomes real when heavy routing reasoning runs on hard tasks; we document ours (up to 3x on the hardest reasoning, +0 on agentic work) on the model card.

The gateway hop, measured: 20 streamed runs each way

Time-to-first-token, same prompt, same hour: direct provider call vs a full routing gateway. Method and runnable script in the gateway comparison. Measured 2026-07-28.

Provider variance: the quiet problem

On aggregators, the same open-weights model served by different providers returns measurably different quality; OpenRouter built telemetry over billions of tool calls and launched Exacto specifically because of it. "Same model, same price" on a catalog does not mean same output. This is an argument for receipts at the layer that picks the model, whoever that is.

How to choose

Start from your constraint, not the feature grid. Prototyping across many models: aggregator. Data cannot leave your infrastructure: self-hosted (or enterprise VPC deployment). Compliance and visibility are the requirement: control plane. You want the bill down without making model selection your standing job: a blended model that routes per request and shows receipts. The Stack Finder asks a few quick questions and gives you a defensible starting answer; the interactive version of this guide's decision logic is in the comparison post.

Start from your constraint

Pick the constraint that is actually binding.

Honest by design: two of the four answers are not us. Fees verified 2026-08-18; the deeper walkthrough of each trade is above.

Gateway questions, answered

What is the difference between an LLM gateway and a router?

Gateway describes the integration layer: one API surface, many providers. Routing is a capability some gateways add: choosing which model serves a request. Aggregators leave routing to you; blended models like Pareto go further, running several LLMs on every request and synthesizing one answer, billed at cost.

Do gateways add latency?

A hop costs something; we measured +68ms median time-to-first-token for a full routing gateway versus a direct provider call, with p95 better through the gateway. Provider-side variance is bigger than the detour. Heavy per-request reasoning on hard tasks is the real latency cost to ask about.

Do gateways mark up token prices?

By type: aggregators mostly pass list prices through and fee the credits (OpenRouter, 5.5%); Requesty marks tokens up 5%; control planes charge flat platform fees with tokens billed direct; self-hosted is markup-free by construction; blended models change the basis entirely by billing at cost.

Which gateway is cheapest?

Below roughly $900/month of spend, percentage-fee aggregators; above it, a flat-fee control plane, with self-hosted cheapest of all if your ops time is genuinely spare. Cheapest fee is a different question from cheapest bill; the selection layer moves more money than the fee layer.

Can I switch gateways without rewriting my code?

Usually yes: the OpenAI-compatible surface is the category standard, so switching is a base-URL and key change. Gateway-specific routing parameters do not travel; budget an afternoon to re-express them.

Compare any two models

VS

List rates and dated competitor measurements: prices and measured bills. Pareto 26.9 measured task costs are not published. Verbosity: Edition 2.

The type that picks for you. $100 to verify.
Get started with Unbiased

Don’t act on this yourself. Hand it to your agent and let it do the switching math for you.