Why the integration is the lock-in

What a direct integration carries

  • The request format
  • The response format
  • The streaming events
  • The stop reasons and error codes
  • The key

The lock-in is rarely the model. It is the integration. An application that calls a provider directly carries that provider’s request format, response format, streaming events, stop reasons and error codes, and so does every other application that calls the same provider. When the provider changes, every one of them changes, and the change is repeated in as many places as there are teams.

That is also why the question comes up late. Nobody chooses a provider expecting to leave it. The decision to leave arrives with a price change, an outage, a residency requirement or a better model, and by then the integrations are the reason it cannot be made quickly.

One API in, one shape out

The difference is what the application is written against. Written against a provider, it is written against that provider. Written against the gateway, it is written once.

Integrating a provider directly

  • What the application calls

    The provider’s API, in the provider’s request format, with the provider’s key.

  • What comes back

    The provider’s response, its stop reasons, its streaming events, its error codes. Each provider’s own.

  • What changes when the provider changes

    Every integration, one at a time, and every place that parsed the old response.

Integrating PreRoute

  • What the application calls

    The gateway’s API, in one request shape, with the identity the organisation issued it.

  • What comes back

    One response envelope, the same fields in the same layout whichever model served it. Stop reasons in one closed set, streaming events in one schema.

  • What changes when the provider changes

    The routing configuration, reloaded without a restart. No application is touched.

The same fields in the same layout, every time, whichever model or provider served the call.

Who decides which provider answers

What a hint cannot do

  • Reach a provider policy denies
  • Leave the regions set for the tenant
  • Exceed a model’s data-class ceiling
  • Skip the tenant’s provider allowlist

The deployment decides, in one place. Which models are live, and in what order, is a configuration the deployment maintains and reloads without a restart, and every application inherits it on its next request. An application may suggest a provider, and the gateway takes the suggestion as a hint: it moves that provider to the front of its own priority tier, and no further. The hint never reaches a provider that policy denies, never leaves the regions set for the tenant, never exceeds a model’s data-class ceiling, and never skips the tenant’s allowlist of providers it may name. Provider selection is rechecked against policy for every candidate, in a deterministic order, so the same inputs pick the same provider every time.

When a provider fails mid-call, the request moves to the next configured one instead of coming back for the caller to retry. Policy is rechecked for that candidate, so the fallback is bound by the same rules the first choice was: EU payloads reach EU endpoints only, and sovereign workloads stay on sovereign infrastructure. The application learns that a fallback happened, never which candidates were passed over. That stays in the audit record.

execute configured providers 1 2 3 provider A provider B provider C no response bad response response

What changing provider means in practice

It means changing a list. The providers a deployment can route to are the ones it has connected, and each model on the list declares what the gateway needs to govern it: the regions it may serve, the highest data class it may receive and its context window. Adding a model, reordering providers or retiring one is a change to that list, made by whoever owns the routing, and it applies to every application at once. A provider the deployment has not connected is not reachable by any application, which is deny-by-default doing its ordinary job.

It does not mean a drop-in replacement for a provider’s own API. An application written against a provider’s format would carry that provider’s format through the gateway, and the change of provider would be its problem again. The gateway’s API is the one thing an application is written against.

That is the position PreRoute is built for: the control plane every AI request passes through, where the provider is a routing decision made under policy, and an application is integrated once.

Read next