Skip to content

Choosing a Large Language Model

How to pick an LLM for your use case: quality, cost, speed, context length, privacy and licence.

Editorial team 2 min read

There is no single best model. The right choice depends on your task, constraints and budget.

Start From the Task

Classification and extraction often work well with smaller, cheaper models. Complex reasoning, long documents, coding and agentic tasks tend to benefit from larger, more capable models.

Factors to Weigh

  • Quality on your task: measured on your own examples, not just public benchmarks.
  • Cost: priced per input and output token; estimate at your real volume.
  • Latency: time to first token and total response time matter for interactive use.
  • Context window: how much text it can consider at once.
  • Modalities: text only, or images, audio and documents too.
  • Tool use and structured output support.
  • Data handling: where data is processed, retention, and whether it's used for training.
  • Hosting: API, cloud provider, or self-hosted open-weight model.
  • Licence: open-weight models vary in what they permit.

Build a Small Evaluation

Collect 50–100 representative inputs with good answers or grading criteria. Run candidate models on them and compare quality, cost and speed side by side. Revisit as new models are released.

Use More Than One Model

Many systems route simple requests to a small model and hard ones to a larger model, balancing cost and quality.

Plan for Change

Models are updated and retired. Keep prompts and evaluations versioned so you can re-test quickly when switching.

More in Generative AI

All Generative AI guides →
Generative AI Guide · 2 min

Prompt Engineering Fundamentals

The building blocks of a good prompt — context, task, constraints and format — with before-and-after examples.

Generative AI 2 min read 24 Jul 2026

Generative AI Guide · 2 min

Few-Shot Prompting With Examples

Showing a model a few examples of the input and output you want is often clearer than describing it. How to choose good examples.

Generative AI 2 min read 23 Jul 2026

Generative AI Guide · 2 min

Getting Structured Output From LLMs

How to get JSON and other machine-readable output reliably from a language model, and how to validate it.

Generative AI 2 min read 22 Jul 2026

Generative AI Guide · 2 min

Why Language Models Hallucinate

What hallucination is, why it happens, and practical ways to reduce and catch it.

Generative AI 2 min read 21 Jul 2026