Gateways and multi-provider
For engineers
Gateways, provider-neutral SDKs and routing rules that let one app use many models, and what they cost you
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Five services each hold their own provider key. Finance cannot tell which feature caused a spike. Which gateway feature fixes that directly?
Check yourself · 2 of 5
You call a server that is "OpenAI-compatible" using the official OpenAI client with a changed base URL. Which risk is real?
Check yourself · 3 of 5
What should exist before you move ticket tagging from a strong model to a small one?
Check yourself · 4 of 5
A hosted gateway sits in front of all your model calls. Which new risk does it add?
Check yourself · 5 of 5
Which of these should stay in your application instead of the gateway?
Topics
- What an LLM gateway does for you4 min read · One endpoint for many providers, central keys, logging, budgets, caching and fallbacks in LiteLLM, OpenRouter or a cloud gateway
- Provider-neutral AI SDK abstractions4 min read · The Vercel AI SDK, LiteLLM and OpenAI-compatible endpoints, and where provider-specific features leak through
- Routing requests by task and difficulty4 min read · Static rules, classifiers and automatic routers that send cheap tasks to small models and hard ones to strong models
- Gateway lock-in, latency and data trade-offs4 min read · The extra network hop, another party seeing prompts, a new single point of failure and compatibility gaps
Start here
- LiteLLM documentation (opens in a new tab)DocsFree
One interface and proxy server for many providers, with keys, budgets and logging.
- OpenRouter quickstart (opens in a new tab)DocsFree
Calling many models through one OpenAI-compatible endpoint with one key.
- AI SDK: providers and models (opens in a new tab)DocsFree
How a provider-neutral SDK swaps models behind one function call.
Scenarios
Helps to know first
110 questions · last verified 2026-12