Skip to content

Stage 01 · 14 articles

Gateways & Routing

The layer between your application and model providers. Routing, failover, rate limits, and API keys.

About this stage

An LLM gateway is a proxy between your applications and the model providers they call. It gives every team one API and one place for provider keys, and it applies the same routing, failover, rate limits, and budgets to every request, so no service has to build them again.

These articles cover when a gateway is worth running, how to pick a model per request, which failures to retry and when to fall back, and how to give each team a key with its own budget. The comparisons set the open-source, enterprise, and hosted options side by side. Self-hosted inference engines are here too, since they sit behind the same gateway when you serve your own models.

Start here

  1. 01What an LLM gateway does, and when you need oneThe case for one proxy in front of every provider.
  2. 02LLM routing: how to pick a model for every requestFive strategies, and why provider caches should shape the rules.
  3. 03LLM failover: retries, fallbacks, and circuit breakersWhich errors to retry, and the order to add the rest.
  4. 04Virtual keys: per-team budgets and rate limits for LLMsGateway-issued credentials in place of provider keys, and how to fail callers safely.