AI Engineering

How to Choose a Foundation Model for Your Product

A practical way to pick an LLM or other foundation model, and keep the freedom to change it.

3 min read

Neatly connected network cables in a server rack
Photo: Albert Stoynov on Unsplash

In short

  • Choose a foundation model by testing it on your own tasks, not by leaderboard scores.
  • Weigh five things: quality on your evaluation set, latency, cost per request, where data is processed, and licence.
  • Build so you can switch models. The best model today will not be the best in a year.
  • European options now include open-weight models and in-region processing, which matters for regulated customers.

How to choose a foundation model is one of the first questions in any AI product, and one of the easiest to get wrong. Teams pick the model with the most press, build around it, then find it too slow, too expensive or not allowed by a customer’s data rules. Here is how we would make the choice.

1. Write down the job before you look at models

  • What does the model do: answer questions from documents, extract fields, classify, write code, understand images?
  • How fast must it answer, and how many requests per day?
  • What happens when it is wrong, and who catches it?
  • Which data will it see, and is any of it personal or confidential?

2. Build a small evaluation set

Collect 50 to 200 real examples with the answers you expect, including hard and awkward cases. Run every candidate model on the same set. Public benchmarks tell you little about your invoices, your support tickets or your sensor logs. Our guide to evaluating an LLM feature explains how to score the results.

3. Compare on the criteria that matter

CriterionQuestions to ask
QualityHow often is it right on your evaluation set? How bad are its mistakes?
LatencyTime to first token and total time, at your expected load
CostCost per request at real prompt sizes, including retrieval context
Data locationWhere are prompts processed and stored? Is EU processing available?
Licence and termsCan you use outputs commercially? Self-host? Fine-tune?
Context and modalityDoes it handle your document sizes, images or audio?
StabilityHow often does the provider change or retire models?

4. Decide between an API and open weights

Hosted APIs usually lead on raw capability and need no infrastructure. Open-weight models give control: you can run them in your own environment, fine-tune them and keep them unchanged for as long as you need. Mistral, for example, publishes Apache 2.0 models from small edge sizes up to a frontier model (heise), and in October 2026 released the open weights of Mistral Large 4 (SiliconANGLE).

A middle path is a hosted API with regional processing. Mistral’s regional endpoints, for instance, let customers choose whether inference runs in Europe or the US (Mistral AI). Check the same option with every provider you consider.

5. Use more than one model

Different jobs suit different models. A small, fast model can classify and route requests; a larger one handles the hard cases. Routing by task often cuts cost without hurting quality.

6. Design for switching

  • Keep prompts, model names and parameters in configuration, not scattered through code.
  • Put a thin layer between your product and the model provider.
  • Re-run your evaluation set automatically whenever you change model or version.
  • Log inputs and outputs (with privacy controls) so you can compare models on real traffic.

7. Check the rules early

Obligations for providers of general-purpose AI models under the AI Act have applied since 2 August 2025 (European Commission). As a company building on a model you are usually a deployer, not a provider, but customers in banking and healthcare will still ask about data processing, sub-processors and logging. Have the answers ready.

From our work

We have taken AI into real products: the software of an autonomous warehouse drone for D-ARIA with more than 99% inventory accuracy (case study), and AI-based person following for a mobile robot with EFS Consulting. If you have an AI prototype, our free AI prototype to production review tells you what to keep, what to fix and what it will take.

New to the topic? Start with what foundation models are. Deciding how to adapt the model is next: read RAG vs fine-tuning, or see how we take AI prototypes to production.

Technologies you will meet

AreaTypical tools
Hosted APIsAnthropic Claude, OpenAI GPT, Google Gemini, Mistral
Self-hostingvLLM, llama.cpp, Ollama, NVIDIA NIM, Kubernetes with GPU nodes
Evaluationpromptfoo, Ragas, DeepEval, Langfuse
RoutingLiteLLM, fallback and caching layers

If you are building agents, see AI agents in business software.

Frequently asked questions

How do I choose the best LLM for my product?

Build a small evaluation set from your real tasks, run each candidate on it, and compare quality, latency, cost, data location and licence. The best model on public leaderboards is often not the best for your task.

Should I use an API or an open-weight model?

APIs give the strongest models with no infrastructure. Open-weight models give control over data, versions and fine-tuning, at the cost of running them. Many teams start with an API and keep the option to switch.

Can I process LLM requests only in the EU?

Several providers now offer EU processing or regional endpoints, and open-weight models can run in your own European environment. Check the exact terms, sub-processors and logging for each provider.

How often should I re-evaluate my model choice?

Whenever a provider changes or retires a model, and at least every few months, because new models arrive quickly. An automated evaluation set makes this a routine check rather than a project.

Working on something like this?

Tell us where the product is stuck. We answer with a concrete next step.

Send a few lines about the product, the deadline and the team you have today. A senior engineer replies within two working days.