1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
What is an LLM gateway, and why do companies build or buy one?
30-second answerSay your answer out loud first, then reveal.

Key capabilities
- Unified interface (often OpenAI-compatible) across providers.
- Reliability: retries with backoff, failover to another provider or region, circuit breakers, timeouts.
- Governance: which teams can use which models; data policies (no sensitive data to certain providers).
- Cost control: per-team budgets, alerts, chargeback reports.
- Observability: a central log of prompts and responses (with redaction), latency, errors.
- Caching and routing (Q6, Q8).
- Secrets: apps never hold provider keys directly.
Options: open-source (LiteLLM, Portkey, Kong / Envoy AI gateway plugins), cloud-native gateways, or in-house.
Trade-offs: an extra network hop (a few ms), a single point of failure (so make it highly available), and a feature lag when providers ship new API features.
Related
You understood something today that you didn't yesterday.