- Compare hosted, open-weight, large, small, reasoning and multimodal models against a task's quality, cost, speed and privacy needs.
- Build a small evaluation set and use it, rather than leaderboards alone, to choose between candidate models.
- Calculate the expected total cost per task, including the cost of catching and fixing errors.
- Design a simple model cascade that sends easy cases to a small model and escalates the rest.
- Estimate whether an open-weight model fits a machine and roughly how fast it will generate, using the AI Index sizing rules.
Before this: How Large Language Models Work, Prompting Fundamentals
There is no single best AI model. The right choice depends on what you are doing, how much it matters, what you can spend, and who is allowed to see your data. A few simple distinctions make that choice much easier.
The main choices
Think of choosing a model like choosing transport. A bicycle, a car, a lorry and a plane are all "the best" for some trips and absurd for others. Models differ in the same way, along a handful of dimensions.
Hosted vs open-weight and local
- Hosted models run on a company's servers. You use them through a website, an app, or an API (a programming interface that lets software send requests and receive answers). The company keeps the model's internal numbers, called weights, private. As of November 2026, well-known hosted families include Anthropic's Claude, OpenAI's GPT and Google's Gemini.
- Open-weight models have their weights published so anyone can download them and run them on their own hardware, within the terms of the model's licence. As of November 2026, examples include Alibaba's Qwen, DeepSeek, Google's Gemma, OpenAI's gpt-oss and Meta's Llama families. "Open-weight" is not always the same as fully open source: the training data and code are often not released, and some licences add restrictions.
- Local means running a model on your own computer or server. This is only possible with open-weight models.
Hosted models generally offer the highest capability with no hardware to manage. Local models offer control, privacy and no per-use fees, but you need suitable hardware, and the largest open models need a lot of it.
Big vs small
A model's size is roughly measured in parameters, the adjustable numbers learned during training, usually counted in billions (written "B"). Bigger models tend to know more and handle harder tasks; smaller ones are faster and cheaper.
Worked example (local). Using the rough sizing behind this site's AI Index: an 8-billion-parameter model compressed to about 4.8 bits per parameter is a download of roughly 5 GB and runs on many recent laptops. A 70-billion-parameter model at the same 4.8 bits is a file of around 44 GB, which needs a high-end GPU setup or a computer with a large amount of shared memory. The Running AI Locally track explains these numbers.
Hosted providers also offer size tiers, often a large flagship plus cheaper, faster versions. As of November 2026, for example, Google lists Pro, Flash and Flash-Lite versions of Gemini, and OpenAI's GPT-6 family pairs its most capable model (Astra) with faster, lower-cost models named Sol, Terra and Luna.
Reasoning vs fast models
Some models are designed to "think" before answering: they generate a hidden or visible chain of intermediate working, then give a final answer. These are often called reasoning models. They tend to do better on maths, logic, planning and tricky coding, but are slower and use more tokens, which costs more. For a quick rewrite, a summary or a casual question, a fast model is usually just as good. Some apps let you switch between modes or choose a level of reasoning effort. (The lesson on reasoning models explains how this works.)
Multimodal
A multimodal model can handle more than text: images, audio, video or documents such as PDFs with charts. If you need to ask about a photo, read a scanned receipt, or talk by voice, check that the model accepts that kind of input. Some models can also produce images or speech; others only produce text.
Cost, speed, quality and privacy
These four pull against each other:
- Quality usually rises with model size and reasoning effort.
- Speed usually falls as size and reasoning effort rise.
- Cost for hosted APIs is charged per token, separately for input (what you send) and output (what the model writes). Consumer apps more often use a free tier plus monthly subscriptions with usage limits.
- Privacy depends on where the data goes and on the provider's terms (see the next lesson).
Worked example (hosted cost). Take an illustrative mid-range price of $2 per million input tokens and 1.20. Output: 200 × 500 = 100,000 tokens, costing $1.00. Total: about $2.20. A flagship model usually costs more per token for the same job, and a small model much less. For comparison, as of November 2026 Anthropic lists Claude Opus 5.5, one of its flagship models, at $4 per million input tokens and $20 per million output tokens, which would make the same job about $4.40. Prices change often, so always check the provider's current pricing page.
A simple decision table
| If your situation is... | Start with... | Why |
|---|---|---|
| Everyday writing, summaries, quick questions | A fast mid-size hosted model | Good quality, quick, cheap |
| Hard maths, logic, complex code or planning | A reasoning model or reasoning mode | Better accuracy on multi-step problems |
| Very high volume of simple tasks | The smallest model that passes your tests | Cost and speed add up at scale |
| Photos, scans, charts or voice | A multimodal model that accepts that input | Text-only models cannot see or hear |
| Sensitive data you cannot send outside | An open-weight model run locally, or an enterprise plan with suitable terms | Data stays under your control or contract |
| Offline use or no ongoing fees | A small open-weight model on your own machine | Runs without internet or per-use charges |
| High-stakes work (legal, medical, financial) | The strongest model you can access, plus human review | Errors are costly; verification still needed |
Going deeper
Choose with your own evaluation
Public leaderboards are useful for shortlisting, but they measure general abilities on someone else's tasks. Two well-known approaches show the range: HELM (Liang et al., 2022) scores models on many scenarios and several metrics at once, including accuracy, calibration, robustness and efficiency, while Chatbot Arena (introduced by Zheng et al., 2023) ranks models from crowdsourced, head-to-head human votes. Neither knows your documents, your format rules or your users. Test questions can also leak into training data, inflating scores.
The professional approach is a small evaluation set: 20 to 50 real examples of your task, each with a pass/fail rule or a simple 1 to 5 rubric. Run each candidate model on the same set and record three numbers: pass rate, cost per task and latency (time to answer).
Count the cost of mistakes
A cheaper model is not cheaper if its errors are expensive to catch and fix. A useful estimate of the expected total cost per task is
where is the price of running the model once, the share of outputs that fail your checks, and the cost of a person spotting and fixing a failure.
Worked example. Fixing a bad output takes about 6 minutes of an employee paid 30 dollars an hour, so . A small model costs per task and fails 12% of the time; a large model costs and fails 4%.
- Small: per task.
- Large: per task.
The large model costs ten times more to run but is about 2.6 times cheaper overall. Over 10,000 tasks that is 3,620 dollars versus 1,400 dollars. When failures are cheap (a brainstorm you will edit anyway), the balance tips the other way.
Cascades: small first, escalate when needed
If you can automatically detect many failures (a format check, a missing field, a failed test), you can run the small model on everything and send only the failures to the large one. Assuming the check catches every small-model failure (optimistic, but a useful first estimate), the expected cost is
where and are the small and large models' pass rates. With the numbers above: per task, far cheaper than either model alone. Many production systems route requests this way.
Will an open-weight model run on my machine?
This site's AI Index uses simple rules you can apply yourself (they are estimates, not guarantees):
- Memory needed ≈ file size (parameters × bits per parameter ÷ 8, plus about 5%) + KV cache + about 1.5 GB of runtime overhead. It "fits" if that is no more than 85% of usable memory; on a Mac the GPU can use about 75% of unified memory by default.
- Generation speed (tokens per second) ≈ , where bytes per token = active parameters × bits ÷ 8.
Worked example. An 8B model at 4.8 bits: file GB, plus 5% ≈ 5.04 GB. With a KV cache of 128 KiB per token (see the context-windows lesson), 8,192 tokens of context add about 1.07 GB. Total ≈ GB. On a 16 GB Mac, usable GPU memory is about 12 GB and 85% of that is 10.2 GB, so it fits. With 120 GB/s of memory bandwidth: s, plus 0.0015 s, gives about 0.0742 s per token, or roughly 13 tokens per second, comfortably faster than most people read.
A selection script
Once you have evaluation results, the decision is a few lines of arithmetic:
candidates = {
# name: (pass rate on your eval set, $ per task, median seconds)
"small": (0.88, 0.002, 1.1),
"medium": (0.94, 0.008, 2.0),
"large": (0.96, 0.020, 4.5),
}
FIX_COST = 3.00 # $ of staff time to catch and fix one failure
MAX_LATENCY = 3.0 # seconds users will tolerate
def total_cost(pass_rate, model_cost):
return model_cost + (1 - pass_rate) * FIX_COST
ok = {name: total_cost(p, c)
for name, (p, c, secs) in candidates.items() if secs <= MAX_LATENCY}
for name, cost in sorted(ok.items(), key=lambda kv: kv[1]):
print(f"{name:7s} ${cost:.3f} per task")
print("choose:", min(ok, key=ok.get))
The large model is excluded by the latency limit; of the rest, the medium model () beats the small one (). Change FIX_COST to 0.05 (five cents) and the small model wins ( versus per task), which is the whole point: the right model depends on what errors cost you.
Common pitfalls
- Choosing from a leaderboard alone. Shortlist with public rankings, decide with your own evaluation set.
- Testing on two or three examples. Small samples make lucky results look like real differences.
- Ignoring error costs. Price per token is only part of the cost; review and rework often dominate.
- Using a reasoning model for everything. Its extra tokens cost time and money on tasks that do not need them, and on many APIs hidden reasoning tokens are billed as output.
- Forgetting output pricing. Output tokens usually cost several times more than input tokens, so long answers add up.
- Not re-testing after updates. Providers retire and replace models; re-run your evaluation when the model behind an alias changes.
In practice
- Test on your own task. Run the same three or four real examples through two or three models and compare. This tells you more than any leaderboard.
- Start with a mid-range model and move up only if it falls short, or down if it is clearly good enough.
- Use reasoning modes selectively, for problems that genuinely need step-by-step work.
- Check the data terms before sending anything sensitive, whichever model you pick.
- Expect names to change. New versions arrive every few months. Learn the categories, not just the current names. The model section of the AI Index lists current models and the hardware they need.
Key takeaways
- Hosted models run on a provider's servers; open-weight models can be downloaded and run locally on your own hardware.
- Bigger and reasoning models tend to be more capable but slower and more expensive; smaller, fast models are often good enough.
- Hosted API pricing is per token, charged separately for input and output, so costs scale with volume.
- Choose a multimodal model when you need images, audio, video or scanned documents.
- Testing a few models on your own real examples is the most reliable way to choose.
Terms in this lesson
- Hosted model
- A model run on a company's servers and used through an app or API, with its weights kept private.
- Open-weight model
- A model whose trained weights are published so anyone can download and run it, subject to its licence.
- API
- A programming interface that lets software send requests to a service and receive responses.
- Parameters
- The adjustable numbers a model learns during training, usually counted in billions.
- Reasoning model
- A model that works through intermediate steps before answering, trading speed and cost for accuracy on harder problems.
- Multimodal
- Able to take in or produce more than one kind of data, such as text, images and audio.
- Evaluation set
- A fixed collection of real examples of your task with scoring rules, used to compare models or prompts.
- Model cascade
- A setup that sends every request to a cheap model first and escalates only the failures to a stronger, more expensive model.
Check your understanding
- 1.
You need to analyse confidential client files that must not leave your company's computers. Which option fits best?
- 2.
At $2 per million input tokens and $10 per million output tokens, what does 500,000 input tokens plus 50,000 output tokens cost?
- 3.
When is a reasoning model most worth its extra time and cost?
- 4.
Model A costs $0.01 per task and fails 10% of the time; Model B costs $0.05 and fails 2%. Fixing a failure costs $2 of staff time. Which has the lower expected total cost per task?
- 5.
A public leaderboard ranks Model X first. On your own 40-example evaluation set, Model Y passes 36 and Model X passes 31, at similar cost. What should you do?
Exercises
Work each problem before opening the solution.
- Exercise 1Core
You will run 1,000 tasks, each with about 2,000 input tokens and 400 output tokens, on a model priced at 1 dollar per million input tokens and 5 dollars per million output tokens. What is the total cost?
Show solution
Input: tokens, so .
Output: tokens, so .
Total: . Note that output is only a sixth of the tokens but half of the cost.
- Exercise 2Core
Using the AI Index rules, does a 14B model at 4.8 bits with a 16,384-token context fit (a) on a 24 GB GPU, (b) on a 16 GB Mac? Assume 48 layers, 8 KV heads, head dimension 128 and a 16-bit KV cache.
Show solution
File: GB, plus 5% = 8.82 GB.
KV cache per token: bytes. For 16,384 tokens: GB.
Total need: GB.
(a) 24 GB GPU: 85% of 24 GB is 20.4 GB, so it fits.
(b) 16 GB Mac: usable GPU memory is about 75% of 16 = 12 GB, and 85% of that is 10.2 GB, so it does not fit. Shortening the context to about 4,000 tokens (KV about 0.8 GB, total about 11.1 GB) still does not fit; a smaller model or lower-bit quantization would be needed.
- Exercise 3Core
Extend the selection script to add a
"cascade"option that runs the small model first and escalates its failures to the large model. Assume an automatic check catches every small-model failure. Compute its expected cost and average latency, then decide whether it passes the 3-second limit.Show solution
ps, cs, ts = candidates["small"] pl, cl, tl = candidates["large"] fail_s = 1 - ps cascade_cost = cs + fail_s * cl + fail_s * (1 - pl) * FIX_COST cascade_secs = ts + fail_s * tl # average, not worst case print(f"cascade ${cascade_cost:.4f} per task, {cascade_secs:.2f} s average") if cascade_secs <= MAX_LATENCY: ok["cascade"] = cascade_cost print("choose:", min(ok, key=ok.get))Cost: . Average latency: s, within the limit, so the cascade is chosen. Caveat: escalated requests take about 5.6 s, so check whether your latency limit applies to the average or to every request.
- Exercise 4Challenge
Estimate generation speed with the AI Index formula for (a) a dense 70B model at 4.8 bits and (b) an 8B model at 4.8 bits, both on a machine with 800 GB/s of memory bandwidth. Then explain why a mixture-of-experts model with 120B total but only about 5B active parameters can be fast yet still need a lot of memory.
Show solution
Effective bandwidth: GB/s.
(a) Bytes per token: GB. Time: s, plus 0.0015 s = 0.0970 s, so about 10.3 tokens per second.
(b) Bytes per token: GB. Time: s, plus 0.0015 s = 0.0124 s, so about 81 tokens per second.
Mixture of experts: speed depends on the parameters read per token, which are only the active ones (about 5B, so roughly 3 GB per token at 4.8 bits, giving speeds near the small-model case). Memory depends on all the parameters, because every expert must be loaded: about GB plus 5%, KV cache and overhead. So such a model can be fast, but only on a machine with a lot of memory.
Further reading
Go further
Sources
- Gemini models (Gemini API documentation, Google)
- Using GPT-6 (OpenAI API documentation)
- Claude Opus 5.5 (Claude Platform Docs, Anthropic)
- Gemma documentation (Google AI for Developers)
- gpt-oss-120b model card (OpenAI on Hugging Face)
- Qwen organisation on Hugging Face
- DeepSeek organisation on Hugging Face
- Meta Llama organisation on Hugging Face
- Liang et al., Holistic Evaluation of Language Models (arXiv 2211.09110)
- Zheng et al., Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (arXiv 2306.05685)
Fact-checked and last reviewed 2026-11-05