Key takeaways
- Lock-in rarely comes from the model itself; it comes from prompts, tools, data formats and contracts built around one supplier.
- Put a thin routing layer between your applications and every model provider, and keep business logic out of it.
- Own your evaluation set — it is the asset that makes switching safe.
- Negotiate exit: data export, deletion confirmation, notice of model retirement and price-change terms.
In 2023 many organisations picked one AI model and built everything around it. Since then, prices have fallen sharply, new model families have appeared, older versions have been retired, and terms of service have changed more than once. The organisations that adapted easily were not the ones that picked the “best” model. They were the ones that could switch.
This note is for technical leaders and architects who want the benefits of today’s models without betting the business on one supplier’s roadmap.
1. Where lock-in actually comes from
Swapping one model endpoint for another is usually a small code change. The real switching costs hide elsewhere:
| Source of lock-in | Why it binds you | Mitigation |
|---|---|---|
| Prompts tuned to one model | Wording, examples and formats that work well on one model may degrade on another | Keep prompts in version control with tests; expect to re-tune |
| Provider-specific features | Proprietary tool-calling formats, file stores, assistants or agent frameworks | Wrap them behind your own interfaces; use open formats where possible |
| Embeddings | Vectors from one embedding model are not compatible with another | Store source text alongside vectors; budget for re-indexing |
| Fine-tuned models | Weights may not be exportable | Keep training data and evaluation results; treat fine-tunes as replaceable |
| Data and logs held by the supplier | Hard to retrieve or delete at exit | Keep your own logs; confirm export and deletion terms |
| Contracts | Minimum commitments, auto-renewal, volume discounts | Shorter terms early; exit clauses; price-change notice |
The pattern is clear: lock-in accumulates in the layers around the model. That is where design effort pays off.
2. The thin routing layer
The single most useful architectural decision is to place a small, boring service between your applications and every model provider. Applications ask it for a capability — “classify this ticket”, “draft a reply”, “extract invoice fields” — not for a specific model.
The routing layer is responsible for:
- Provider adapters that translate one internal request format to each supplier’s API.
- Routing policy: which model handles which capability, for which data class, at what cost ceiling.
- Fallbacks: what happens when a provider is slow, unavailable or rate-limited.
- Budgets and quotas per team or workflow.
- Metadata logging: model, version, latency, token counts and cost for every request.
- Policy enforcement: for example, refusing to send confidential data to providers not approved for it.
Equally important is what the layer must not do. Keep business logic, prompt content and workflow decisions in the applications that own them. A routing layer that grows into a second application becomes its own source of lock-in.
You can build this layer yourself, adopt an open-source gateway, or use a managed service. Whichever you choose, make sure you can move away from the gateway too — the same principle applies one level up.
3. Routing policies that save money
Once requests pass through one place, you can route by need rather than habit:
| Policy | Example | Typical effect |
|---|---|---|
| Capability tiering | Use a smaller, cheaper model for classification and extraction; reserve the largest models for complex reasoning | Large cost reduction on high-volume tasks |
| Data-class routing | Send confidential data only to providers with approved contracts, or to a self-hosted model | Enforces data boundaries centrally |
| Batch versus interactive | Route non-urgent work to discounted batch modes | Lower cost where latency does not matter |
| Escalation | Try a smaller model first; escalate to a larger one when validation fails | Balances quality and cost |
| Regional routing | Prefer UK or EU processing where required | Supports data residency commitments |
Measure the result per completed task, not per request. A cheaper model that fails validation twice as often may cost more once retries and human review are counted.
4. Own your evaluation set
The asset that makes switching safe is not code. It is a representative evaluation set: a few hundred real, anonymised examples of each task, with agreed correct or acceptable outputs and a scoring method.
With a good evaluation set you can:
- Compare a new model against the current one in hours rather than weeks.
- Detect regressions when a provider updates a model behind the same name.
- Negotiate with suppliers using evidence rather than marketing claims.
- Give auditors and risk teams a clear record of how quality is controlled.
Keep the set in your own repository, version it, and review it quarterly as the business changes. Score more than accuracy: format compliance, refusal rate, latency and cost per task all matter.
5. Open formats and self-hosting
Open-weight models — whose weights can be downloaded and run on your own infrastructure or a cloud provider of your choice — are a credible option for some workloads. They can help with data residency, predictable costs at high volume and protection against retirement of a hosted model.
They also bring responsibilities: capacity planning, security patching, licence review (licences vary and some restrict commercial use), and the engineering time to run them well. For most SMEs, a hosted model behind a routing layer, with an open-weight option tested as a fallback, is a sensible balance.
6. Contract terms that support exit
Technical portability is wasted if the contract keeps you in place. When procuring AI services, ask for:
- Notice of model retirement — a minimum period before a model you depend on is withdrawn.
- Price-change notice and, for committed spend, protection against mid-term increases.
- Data export of anything you have stored with the supplier, in a usable format.
- Deletion confirmation at exit, including backups within a defined period.
- No training on your data by default, stated in the contract rather than a settings page.
- Reasonable term length — avoid multi-year minimum commitments for a fast-moving technology unless the discount clearly outweighs the loss of flexibility.
7. A portability scorecard
Score each AI workflow from 0 to 2 on each line. A total below 8 means switching would be painful.
| Question | 0 | 1 | 2 |
|---|---|---|---|
| Does the application call a routing layer rather than a provider directly? | No | Partly | Yes |
| Are prompts version-controlled with tests? | No | Some | All |
| Is there an owned evaluation set for this task? | No | Informal | Versioned |
| Can embeddings be rebuilt from stored source text? | No | With effort | Yes |
| Are provider-specific features wrapped behind internal interfaces? | No | Partly | Yes |
| Does the contract include retirement and price-change notice? | No | One | Both |
| Have you tested at least one alternative model in the last six months? | No | Informally | With the evaluation set |
The point of portability
Portability is not about switching constantly. It is about negotiating from strength, responding calmly when a provider changes terms, and adopting better or cheaper models when they arrive. The organisations that invest in a thin routing layer and an evaluation set they own tend to find that the investment repays itself the first time the market moves.