Skip to content
mentoor

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

See where you stand

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?

Choose one answer

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?

Choose one answer

Check yourself · 3 of 5

What should exist before you move ticket tagging from a strong model to a small one?

Choose one answer

Check yourself · 4 of 5

A hosted gateway sits in front of all your model calls. Which new risk does it add?

Choose one answer

Check yourself · 5 of 5

Which of these should stay in your application instead of the gateway?

Choose one answer

Topics

  1. 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
  2. Provider-neutral AI SDK abstractions4 min read · The Vercel AI SDK, LiteLLM and OpenAI-compatible endpoints, and where provider-specific features leak through
  3. 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
  4. 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

110 questions · last verified 2026-12