Your provider sends a deprecation notice. The model you built on retires in sixty days. You grep the repo and find thirty-one call sites across nine services, each with its own retry logic, its own timeout, and three with prompts pasted inline.

That is the bill for treating the model API as an implementation detail, and it arrives all at once.

What the gateway is actually for

A model gateway is the place where five decisions become enforceable: which model serves which workflow, what happens when that model is unavailable, what a call is allowed to cost, what policy and redaction run before the request leaves your network, and how a version change gets rolled out.

It is also the only honest answer to "who called the model, on whose behalf, with which prompt version". Auth and audit belong at a boundary. There is no boundary if every service brings its own.

The price is an extra hop on every call and a shared dependency whose outage is everyone's. Run it to the availability target of the most critical workflow behind it, and keep business logic out, or every product change lands in the gateway team's backlog.

Routing is a product decision written as config

Not every workflow deserves the same model. Autocomplete and a compliance summary have nothing in common except that both happen to call an LLM.

WorkflowModel tierLatency budgetFallback
Inline suggestionssmall, fast300 mscached template
Support draftingmid3 ssmaller model, draft marked unverified
Compliance summaryfrontier30 squeue for a human, no auto-answer

The useful column is the last one. Choosing a fallback forces you to say out loud what degraded behaviour is acceptable, and for the compliance row the honest answer is "none, so stop and escalate". A gateway lets you encode that once. Scattered call sites let every team quietly invent their own version of it.

An untested fallback is a guess

A fallback branch that nothing forces to run gets its first real test in the outage it was written for. Say a provider has a partial outage in which requests do not fail cleanly but hang at eleven seconds, and the fallback never fires because it was wired to exceptions rather than to latency. Wire it to a deadline from the latency budget and a circuit breaker that counts slow calls as failures.

Every week in staging, force both failures deliberately by killing the primary and then making it hang. Watch what a user actually sees, and check whether a degraded answer is labelled as degraded, because a silently worse answer costs more trust than a visible error.

Migration is where it pays for itself

One boundary means you can shadow a new model against live traffic, move one workflow at a time, attribute cost per workflow instead of per invoice, and roll back with a config change rather than a release.

It also makes "which prompt and which model version produced this output" a query instead of an archaeology project. When a customer disputes an answer from three weeks ago, that query is how you answer them.

Provider strategy is less about picking the best model than about staying able to change your mind cheaply. Measure it today by counting provider SDK imports outside the gateway; each is a call site the next deprecation notice will find before you do.

Terms in this piece

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Sep 7, 2026

Short mental models: one idea, why it matters, what to do about it.