Why gateways appear
Most teams start by calling one model directly. Gateways appear when the product needs provider switching, fallbacks, cost controls, centralized keys, rate limits, audit logs, or model experiments across many applications.
- Add a gateway when routing becomes shared infrastructure.
- Keep simple apps direct until the gateway solves a real problem.
- Define model routing rules in code or configuration, not tribal memory.