New language models appear every few months, each claiming top scores on some benchmark. For a product team, the question is narrower and more useful: which model, or combination of models, does our task well enough, at a cost we can sustain, within our privacy rules, fast enough for our users? This guide gives a repeatable way to answer it.
It is the process our generative AI development team follows before committing a client product to any model. We deliberately avoid quoting prices or naming a 'best' model, because both change too quickly to be useful in an article.
Start with the task, not the leaderboard
Write down precisely what the model must do: classify support tickets into twelve categories, extract fields from purchase orders, answer questions from a policy library, draft product descriptions in English and Hindi. Then define what good looks like for each: exact match, correct fields, grounded and cited, on-brand tone. Different tasks favour different models, and many products need more than one.
Hosted frontier models versus open-weight models
The first big choice is between proprietary models offered as hosted APIs by providers such as OpenAI, Anthropic and Google, and open-weight models, such as the Llama, Mistral, Qwen or Gemma families, whose weights you can run on your own infrastructure or through a hosting provider.
| Factor | Hosted frontier model | Open-weight model |
|---|---|---|
| Quality on hard reasoning | Usually strongest | Improving; often enough for focused tasks |
| Time to start | Minutes, with an API key | Longer if you host it yourself |
| Data control | Governed by provider terms and region options | Full control when self-hosted |
| Cost model | Pay per token, no infrastructure | Pay for compute, whether busy or idle |
| Customisation | Prompts, some fine-tuning options | Full fine-tuning and quantisation |
| Operations | Provider handles scaling and upgrades | Your team handles serving, scaling, updates |
| Licence | Commercial terms of service | Varies by model; some licences have conditions |
The four criteria in practice
Quality
Measure quality on your own examples, not on generic benchmarks. For structured tasks, use exact-match or field-level accuracy. For open answers, define a rubric (correct, complete, grounded, appropriate tone) and score a sample by hand before trusting any automated judge.
Cost
Hosted models are usually priced per token, often with different rates for input and output. Your real cost is tokens per request times requests per month, so long system prompts, large retrieved contexts and verbose outputs matter as much as the rate. Self-hosted models shift cost to compute, which is economical at steady high volume and wasteful when idle. Our AI project cost breakdown covers how running costs fit into a budget.
Privacy and data residency
Before sending personal or confidential data to any provider, check whether inputs may be used for training, how long they are retained, where they are processed, and whether a data processing agreement is available. Some providers offer regional processing or deployment through major cloud platforms, which our cloud consulting team can help evaluate. If data must not leave your environment, a self-hosted open-weight model may be the only option.
Latency
Users judge chat interfaces by how quickly the first words appear, so streaming responses help. Larger models and long contexts are slower; agents that make several calls per task multiply delays. For background jobs such as nightly document processing, latency barely matters and you can favour quality and cost.
Other practical factors
- Context window: how much text the model accepts per request, which matters for long documents and retrieval-heavy designs.
- Language coverage: quality in Hindi, Gujarati, German or French can differ sharply from English, so test each language you serve.
- Structured output and tool calling: reliable JSON output and function calling are essential for extraction and agent work.
- Rate limits and capacity: whether the provider can serve your peak volume, and what happens when you exceed limits.
- Version stability: whether you can pin a model version, and how much notice the provider gives before retiring it.
Hard reasoning, non-sensitive data. Use the strongest hosted model and control cost with routing.
Hard task, sensitive data. Use regional or private deployment terms, or a large open-weight model you host.
Simple task, non-sensitive data. A smaller, faster hosted model is often enough.
Simple task, sensitive data. A compact open-weight model inside your own environment.
A starting hypothesis only. Confirm every choice with your own evaluation.
DivTech SystemEvaluate on your own tasks
Build a small evaluation set before choosing: fifty to a few hundred real examples with expected outputs, including the awkward cases. Run every candidate model against it with the same prompts, score the results, and read the failures, not just the averages. Keep the set and rerun it whenever you change a prompt or a provider updates a model. Our guide to testing AI and LLM applications explains how to automate this.
- 01Collect examples
Real inputs with expected outputs, including edge cases and failures from production.
- 02Define scoring
Exact match, field accuracy or a written rubric for each task type.
- 03Run candidates
Same prompts and settings across models; record quality, cost per request and latency.
- 04Review failures
Read the wrong answers to see whether the model, prompt or retrieval is at fault.
- 05Decide and route
Pick a default model and a fallback; send each task type to the cheapest model that passes.
Rerun the loop on every prompt change and every model update.
DivTech SystemRouting between models
You rarely need your most capable model for everything. A router can send simple classification or extraction to a small, fast model and reserve the largest model for hard reasoning, or try the small model first and escalate when its confidence is low. Routing also gives resilience: if one provider has an outage, traffic can fail over to another that has passed your evaluation.
Routing is one of several cost levers. Others include trimming long system prompts, retrieving fewer but better passages, asking for concise output formats, caching answers to repeated questions, and using the batch or prompt-caching options some providers offer for non-urgent or repetitive work. Measure tokens per request in your pilot, because small changes to prompts and retrieval often reduce cost more than switching to a cheaper model.
Avoiding lock-in
Put model calls behind a thin layer in your own code, typically in Python or Node.js, so prompts, model names and parameters are configuration rather than scattered code. Store prompts and evaluation sets in version control. With those in place, moving to a better or cheaper model is a test run and a configuration change. The wider trade-offs are covered in our build versus buy AI guide, and if your product answers from documents, the model choice interacts with your RAG design.
Get a model recommendation
DivTech can build an evaluation set from your real data, test hosted and open-weight candidates side by side, and report quality, cost per request and latency for each before you commit. Request a quote to start with a short model selection sprint, and review our generative AI security guide before anything goes live.
Frequently asked questions
What is the best LLM for business use?
There is no single best model; it depends on the task, data sensitivity, volume and speed requirements. Test two or three candidates on your own examples and choose the cheapest one that meets your quality bar, with a fallback.
Are open-weight models good enough for production?
For many focused tasks such as classification, extraction and grounded question answering, they can be. For the hardest reasoning tasks, hosted frontier models often still lead. Your own evaluation will show which applies to you.
How do we estimate LLM running costs?
Measure average input and output tokens per request in a pilot, multiply by expected monthly requests and the provider's current rates, and add infrastructure if self-hosting. Routing and prompt optimisation can reduce the total significantly.
Can we keep our data in India or the EU when using LLMs?
Options depend on the provider and deployment route. Some offer regional processing through their own platform or major cloud providers; self-hosting an open-weight model gives full control. Confirm the region and terms in writing.