Choosing Models: Reasoning, Open-Weight and Hosted
The best model is the cheapest, simplest one that passes your tests under your rules.
Select models with your own test cases. First apply hard requirements such as data location, license and tool support. Then measure success rate, response time and cost per successful task, including the cost of fixing failures. Different steps can use different models. Keep the choice easy to change, because the options will.
What you will learn: selection criteria, when reasoning models help, open-weight versus proprietary, hosted versus self-hosted, choices by use case and how to run a fair comparison.
Prerequisites: How LLMs Power Agents: Transformers, Tokens and Sampling. Basic Python for the code.
The criteria
| Criterion | Questions |
|---|---|
| Task quality | Does it choose the right tools and finish correctly? |
| Latency | How long to the first output and to completion, on slow days too? |
| Context | How much input and output does it accept, and does quality hold with long input? |
| Cost | Price of input, cached input, output and reasoning tokens |
| Features | Tool calling, structured output, images, audio, streaming |
| Data and compliance | Where is it processed, retained and used? |
| Capacity | Rate limits, quotas, regional availability |
| Lifecycle | Notice before changes and retirement; version pinning |
Why agents change the arithmetic
An agent calls a model many times per task, usually with a growing history. A small difference in price or speed is multiplied by the number of steps. Errors multiply too: a model that picks the wrong tool slightly more often may take more steps or fail the task. So a cheaper model can cost more per finished task, and a stronger one can be wasteful on easy steps. Only measurement settles it.
Reasoning and general-purpose models
Many providers offer models, or settings, that spend extra computation working through a problem before answering. These usually take longer and use more output tokens.
| Aspect | General or fast model | Reasoning model or high effort |
|---|---|---|
| Suits | Classification, extraction, routing, short drafts | Planning, hard debugging, many-constraint problems |
| Latency | Lower | Higher and more variable |
| Token use | Lower | Higher; reasoning may be billed as output |
| Prompting | Clear steps and examples help | State goals and constraints; check provider advice |
| Control | Output limit, sampling | Often an effort or thinking budget setting |
A common pattern uses a stronger model to plan or review and a faster one to carry out routine steps. Test it against a single-model baseline, since handing work between models adds failure points. See How Agents Reason and Decompose Tasks.
Write requirements before you look at models
Names and announcements are persuasive. A requirement sheet written first keeps the comparison about your task. Mark each line as a must or a preference.
| Line | Illustrative entry | Must? |
|---|---|---|
| Task | Sort and answer order questions with two tools | Must |
| Quality floor | An agreed pass rate on the test set, and no unsafe actions | Must |
| Response time | Most replies fast enough for live chat | Must |
| Languages | The two languages customers use | Must |
| Data location | Processed in an approved region | Must |
| Input types | Text; photographs of damage later | Preference |
| Peak load | Expected requests per minute with headroom | Must |
| Cost ceiling | Maximum cost per resolved case | Preference |
If a must cannot be met by any candidate, that is a finding. Change the design, narrow the task or revisit the requirement with the person who owns it. Do not quietly lower the bar.
Understand latency
Users feel two delays: the wait before anything appears and the wait until the task finishes. Streaming improves the first and not the second. In an agent, total time includes every model call, every tool and any queueing. Measure typical and slow cases, such as the median and the 95th percentile, because an average hides the long waits people remember. Long inputs, long outputs and extended reasoning each add time. Running independent tool calls together, shortening the history and removing unnecessary steps often help more than changing models. Latency, Load Testing and Capacity Planning explains how to plan for load.
A scorecard from your own results
The figures below are invented to show the method. The script applies hard requirements, then ranks by cost including the human work that failures cause.
"""Pick a model from your own test results, not from a leaderboard."""
# Results of running 200 of YOUR tasks on four candidates. Made-up numbers.
CANDIDATES = [
# name, passed, usd per attempt, p95 seconds, may data leave the region
("small-hosted", 148, 0.004, 3.1, True),
("large-hosted", 182, 0.031, 9.5, True),
("reasoning-hosted", 188, 0.095, 41.0, True),
("open-self-hosted", 163, 0.012, 6.0, False),
]
TASKS = 200
def evaluate(min_pass, max_p95, must_stay_in_region, review_cost):
rows = []
for name, passed, price, p95, leaves in CANDIDATES:
rate = passed / TASKS
reasons = []
if rate < min_pass:
reasons.append("quality")
if p95 > max_p95:
reasons.append("latency")
if must_stay_in_region and leaves:
reasons.append("data location")
total = price + (1 - rate) * review_cost # failures cost people time
rows.append((total, name, rate, price / rate, reasons))
return sorted(rows)
def show(title, **rules):
print(title)
for total, name, rate, per_success, reasons in evaluate(**rules):
verdict = "OK" if not reasons else "fails " + ", ".join(reasons)
print(f" {name:<17} pass {rate:.0%} model ${per_success:.4f}/success"
f" with rework ${total:.3f} {verdict}")
if __name__ == "__main__":
show("Cheap to fix a mistake ($0.05):", min_pass=0.70, max_p95=15,
must_stay_in_region=False, review_cost=0.05)
show("Costly to fix a mistake ($4.00):", min_pass=0.90, max_p95=60,
must_stay_in_region=False, review_cost=4.00)
show("Data must stay in the region:", min_pass=0.80, max_p95=15,
must_stay_in_region=True, review_cost=0.50)
Output:
Cheap to fix a mistake ($0.05):
small-hosted pass 74% model $0.0054/success with rework $0.017 OK
open-self-hosted pass 82% model $0.0147/success with rework $0.021 OK
large-hosted pass 91% model $0.0341/success with rework $0.035 OK
reasoning-hosted pass 94% model $0.1011/success with rework $0.098 fails latency
Costly to fix a mistake ($4.00):
reasoning-hosted pass 94% model $0.1011/success with rework $0.335 OK
large-hosted pass 91% model $0.0341/success with rework $0.391 OK
open-self-hosted pass 82% model $0.0147/success with rework $0.752 fails quality
small-hosted pass 74% model $0.0054/success with rework $1.044 fails quality
Data must stay in the region:
large-hosted pass 91% model $0.0341/success with rework $0.076 fails data location
open-self-hosted pass 82% model $0.0147/success with rework $0.105 OK
reasoning-hosted pass 94% model $0.1011/success with rework $0.125 fails latency, data location
small-hosted pass 74% model $0.0054/success with rework $0.134 fails quality, data location
The same four candidates lead to different answers. When mistakes are cheap, a small model wins. When each failure costs real time, a more expensive model is cheaper overall. A data rule removes options before price matters.
Run a comparison you can trust
- Collect representative cases, including hard, rare and should-refuse examples.
- Define success per case before seeing any output.
- Give each model a fair prompt; tools may need small per-model adjustments, which you record.
- Repeat runs and report variation, not just one score.
- Measure tokens, time and errors from the actual API replies.
- Read failures. Two equal scores can hide very different kinds of mistake.
- Keep some cases unseen while tuning, to avoid fitting the prompt to the test.
With 200 cases, a gap of a few percentage points can easily arise by chance. Compare case by case, collect more cases where it matters and avoid declaring a winner on noise.
Open-weight and proprietary models
Open-weight models publish their trained parameters so you can run them yourself or through a host. That does not necessarily make them open source: licenses differ and may restrict use, and training data is often not released. Proprietary models are reached through a provider's service under its terms.
| Aspect | Open-weight | Proprietary service |
|---|---|---|
| Control of version | You decide when to change | Provider's lifecycle applies |
| Customization | Fine-tuning and serving choices | Only what the provider offers |
| Data path | Can stay on your infrastructure | Governed by contract and settings |
| Effort | Serving, patching, safety work | Mostly integration |
| Review needed | License, provenance, file safety | Terms, retention, location |
Download weights only from sources you trust, check the publisher and prefer file formats that cannot run code when loaded.
Hosted APIs and self-hosting
"Where it runs" is a separate question from "whose model". You can call a hosted open-weight model, and some providers offer private deployments of proprietary ones. Self-hosting trades a per-token fee for fixed capacity and people. This rough comparison uses invented prices and throughput.
"""Hosted API or your own GPUs? A rough monthly comparison."""
import math
HOURS = 730
def hosted(requests, in_tok, out_tok, in_price, out_price):
per_request = (in_tok * in_price + out_tok * out_price) / 1_000_000
return requests * per_request
def self_hosted(requests, out_tok, gpu_hour, tok_per_second, peak_factor,
min_gpus, people_cost):
average = requests * out_tok / (HOURS * 3600) # output tokens a second
gpus = max(min_gpus, math.ceil(average * peak_factor / tok_per_second))
return gpus * gpu_hour * HOURS + people_cost, gpus
if __name__ == "__main__":
print("requests/month hosted self-hosted GPUs")
for requests in (100_000, 1_000_000, 10_000_000, 50_000_000):
api = hosted(requests, 3_000, 500, in_price=0.50, out_price=2.00)
own, gpus = self_hosted(requests, 500, gpu_hour=2.50,
tok_per_second=1_500, peak_factor=3,
min_gpus=2, people_cost=6_000)
print(f"{requests:>14,} {api:>8,.0f} {own:>11,.0f} {gpus:>4}")
Output:
requests/month hosted self-hosted GPUs
100,000 250 9,650 2
1,000,000 2,500 9,650 2
10,000,000 25,000 13,300 4
50,000,000 125,000 42,500 20
At low volume the idle capacity and staff cost dominate. At high, steady volume self-hosting can become cheaper, if the model passes your tests and the hardware stays busy. Add redundancy, spare capacity, storage, upgrades and on-call time. Throughput depends heavily on model, hardware, input length and batching, so benchmark your own load. See NVIDIA, vLLM and GPU Sizing.
Local models and cloud APIs
Running a model on a workstation or device keeps data nearby and works offline. Memory limits the model size, and speed may be modest. Quantized versions use less memory with some possible quality loss. Local models suit private experiments, narrow tasks and offline use. Cloud APIs suit demanding reasoning and variable load. A mixed design can route sensitive or simple work locally, provided the routing rule itself is reliable. Test tool calling carefully: local servers and model templates differ in how well they support it.
What matters by use case
| Agent | Weigh most | Test especially |
|---|---|---|
| Coding | Multi-step success, long context, tool use | Tests passing on your repositories; unwanted changes |
| Research | Reading long sources, honesty | Citations that support the claim; admitting gaps |
| Customer support | Latency, instruction following, languages | Correct handover and policy cases |
| Data analysis | Query correctness, structured output | Results compared with known answers |
| Document processing | Image and layout understanding, cost per page | Field-level accuracy on poor scans |
| Voice | Response delay, interruption handling | Noisy audio, names and numbers |
One model or several?
Using different models for different steps can save money, for example a small model to classify requests, a larger one for difficult cases and an embedding model for search. Each addition brings another contract, another test run and another thing that can change under you. Begin with one model for the reasoning work. Split off a step when measurements show a clear saving or quality gain that pays for the extra upkeep. Evaluate the whole pipeline as well as each step: a router that is right most of the time can still send the hardest cases to the weakest model.
Settings are choices too
Before changing model, try the settings: reasoning effort, maximum output, sampling, the number of examples and the tools offered. A single model at two settings may cover both the easy and the hard path. Record settings with every result, since the same model name can behave quite differently across them.
Use public benchmarks to shortlist
Public benchmarks help narrow the field. Check what was measured, with which scaffolding and tools, how recent it is and whether the tasks resemble yours. Test data can leak into training, and scores from different setups are not comparable. Agent Benchmarks and Datasets explains how to read them.
Questions for a provider
Some of the most important differences never show up in a test run. Ask for written answers and keep them with the decision record.
| Topic | Question |
|---|---|
| Data use | Are inputs or outputs used for training, and how is that controlled? |
| Retention | What is stored, for how long, and who can read it? |
| Location | Where is data processed, including during overload or support? |
| Availability | What is committed, and what happens when it is missed? |
| Limits | How are quotas raised, and how long does that take? |
| Change | How much notice before a version changes or is retired? |
| Incidents | How and when are customers told? |
Answers can differ between a consumer product, a standard API and an enterprise agreement from the same company, so check the one you will use. For regulated data, involve privacy, security and legal colleagues before the first real record is sent. Business Case, Build vs Buy and Vendor Evaluation covers the wider vendor assessment.
Plan for change
- The model name and settings are configuration, not scattered through code.
- Production uses a specific version where the provider offers one.
- The evaluation set runs automatically against any candidate.
- Retirement notices have an owner.
- A tested fallback exists, with its own quality and data checks.
When a new model appears, run the same comparison. Expect to adjust prompts and tool descriptions, release gradually and keep the ability to return. See Model Routing, Fallbacks and Gateways and Versioning, Registries and Evaluation-Driven Development.
Record the decision
Write down the date, candidates, requirements, results, chosen model, known weaknesses and the conditions for review. Six months later this short note saves repeating the whole exercise and shows auditors how the choice was made.
Frequently asked questions
Should I start with the strongest model?
It is a useful way to learn whether the task is possible. Then try smaller ones against the same cases and keep the cheapest that passes.
Is a larger context window always better?
It allows more input. It does not guarantee the model uses all of it well, and long inputs cost more.
When should I fine-tune instead?
After prompting, retrieval and model choice have been tried and the gap is a consistent behavior you can show with examples. See Fine-Tuning vs RAG vs Prompting vs Long Context.
How often should I re-evaluate?
On a schedule, when a provider announces changes, when your task mix shifts and after quality complaints.
References and further reading
- Anthropic: Building effective agents
- Open Source Initiative: Open source AI
- vLLM documentation
- Safetensors documentation
Next steps
Model Routing, Fallbacks and Gateways
Use more than one model safely.
Model Evaluation and Failure Modes
Look closer at how models fail.
Reducing Tokens, Tool Calls and Spend
Lower cost without losing quality.