← All Articles
Sign in
Architecture Blog

Avoiding LLM Vendor Lock-In: Five Things to Keep Portable

By AI SaaS Radar Team · Nov 2026 · 5 min read

You avoid lock-in with an LLM vendor by keeping five things under your control: your prompts and tests, a thin adapter around the vendor's API, your tool definitions, your stored embeddings and your fine-tuned models. Compatibility layers help you try another vendor, but the vendors themselves say they are not a long-term substitute for the native API. This guide uses their documentation, as read on 10 November 2026, and adds our own recommendations where marked.

Key facts

1. Prompts and the tests that judge them

A prompt tuned for one model carries that model's habits. Anthropic's compatibility guide says that if you have adjusted your prompt extensively, it is likely to be well tuned to OpenAI specifically, and suggests reworking it for Claude. The portable asset is the prompt together with a set of test cases and expected results. Keep prompts in version control as plain files, not scattered across code, and keep a test set that any model can be run against. When you switch, you rework the prompt until the tests pass. Without tests, you only find regressions in production.

2. A thin adapter around the API

Many vendors accept requests in OpenAI's format, which makes switching look like a one-line change. The Anthropic page lists what that hides. The strict flag for function calling is ignored, so tool-call JSON is not guaranteed to follow your schema. The response format option accepts only a strict JSON schema, and a request that sets json_object or text returns a 400 error. Prompt caching is not supported through the layer, and audio and file inputs fail. The page recommends the native API for the full feature set.

Our recommendation: write one small interface of your own, with calls such as generate, generate with tools and generate structured, and implement it per vendor. Your product code then depends on your interface. Differences like these stay inside the adapter and your tests catch them.

3. Tool definitions through an open standard

If your integrations are built as MCP servers, any MCP-capable client can use them. The MCP documentation calls it an open-source standard and likens it to a USB-C port for AI applications. It lists Claude, ChatGPT, Visual Studio Code and Cursor among the clients that support it. Building tools once as MCP servers keeps them out of any one vendor's function-calling format. Review each server's permissions before you connect it, since a standard makes connecting easy and does not make it safe.

4. Embeddings and the vectors you store

Anthropic's embeddings guide says it does not offer its own embedding model, points to Voyage AI as one provider and tells readers to assess a variety of vendors. The guide also lists voyage-4-nano as an open-weight model under the Apache 2.0 license that you download from Hugging Face and run yourself. Our reasoning: vectors you store were produced by a specific embedding model, so changing that model means re-embedding your documents. Keep the original text and chunk boundaries, record which model produced each vector and budget for a re-index.

5. Fine-tuned models and their lifecycle

A fine-tune ties your work to one vendor's base model. OpenAI's deprecations page states that fine-tuned versions follow the shutdown schedule of their base models. Its fine-tuning guide states that fine-tuned models remain available for inference until their base model shuts down, and that the fine-tuning platform is no longer accessible to new users, with eligible existing customers able to create training jobs until a date the page gives. Keep your training data and the evaluation set in your own storage, so a fine-tune can be rebuilt on a different base model.

What to do

For the cost side of the choice, see our analysis of when self-hosting a model pays off and of what the release cadence means for buyers. Compare vendors in the AI tool directory.

Questions people ask

Can I switch vendors by changing the base URL?

For a test, often yes. Anthropic's page says its compatibility layer is meant for testing and comparing, and lists features that behave differently, such as ignored strict flags and no prompt caching.

Does MCP remove lock-in?

It standardizes how tools connect to clients. It does not make prompts, embeddings or fine-tunes portable.

What is the hardest asset to move?

In our view, stored embeddings and fine-tuned models, because each depends on a specific model. Keeping source data and tests lowers the cost of rebuilding them.

Sources

Stay ahead of the AI SaaS market

Sourced, dated analysis on security, funding, and benchmarks. Straight to your inbox.

No spam. Unsubscribe anytime.