Choosing Models: Reasoning, Open-Weight and Hosted

The best model is the cheapest, simplest one that passes your tests under your rules.

BeginnerIntermediateExpert · 12 min read · Last updated:

In short

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.

Beginner What to compare

The criteria

1. Must-havesData rules, license, features
2. QualityYour test cases
3. Speed and costPer successful task
4. OperabilityLimits, support, change policy
CriterionQuestions
Task qualityDoes it choose the right tools and finish correctly?
LatencyHow long to the first output and to completion, on slow days too?
ContextHow much input and output does it accept, and does quality hold with long input?
CostPrice of input, cached input, output and reasoning tokens
FeaturesTool calling, structured output, images, audio, streaming
Data and complianceWhere is it processed, retained and used?
CapacityRate limits, quotas, regional availability
LifecycleNotice 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.

AspectGeneral or fast modelReasoning model or high effort
SuitsClassification, extraction, routing, short draftsPlanning, hard debugging, many-constraint problems
LatencyLowerHigher and more variable
Token useLowerHigher; reasoning may be billed as output
PromptingClear steps and examples helpState goals and constraints; check provider advice
ControlOutput limit, samplingOften 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.

LineIllustrative entryMust?
TaskSort and answer order questions with two toolsMust
Quality floorAn agreed pass rate on the test set, and no unsafe actionsMust
Response timeMost replies fast enough for live chatMust
LanguagesThe two languages customers useMust
Data locationProcessed in an approved regionMust
Input typesText; photographs of damage laterPreference
Peak loadExpected requests per minute with headroomMust
Cost ceilingMaximum cost per resolved casePreference

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.

Intermediate Compare fairly and choose where to run

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

  1. Collect representative cases, including hard, rare and should-refuse examples.
  2. Define success per case before seeing any output.
  3. Give each model a fair prompt; tools may need small per-model adjustments, which you record.
  4. Repeat runs and report variation, not just one score.
  5. Measure tokens, time and errors from the actual API replies.
  6. Read failures. Two equal scores can hide very different kinds of mistake.
  7. Keep some cases unseen while tuning, to avoid fitting the prompt to the test.
Small differences

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.

AspectOpen-weightProprietary service
Control of versionYou decide when to changeProvider's lifecycle applies
CustomizationFine-tuning and serving choicesOnly what the provider offers
Data pathCan stay on your infrastructureGoverned by contract and settings
EffortServing, patching, safety workMostly integration
Review neededLicense, provenance, file safetyTerms, 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.

Expert Selection by use case and over time

What matters by use case

AgentWeigh mostTest especially
CodingMulti-step success, long context, tool useTests passing on your repositories; unwanted changes
ResearchReading long sources, honestyCitations that support the claim; admitting gaps
Customer supportLatency, instruction following, languagesCorrect handover and policy cases
Data analysisQuery correctness, structured outputResults compared with known answers
Document processingImage and layout understanding, cost per pageField-level accuracy on poor scans
VoiceResponse delay, interruption handlingNoisy 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.

TopicQuestion
Data useAre inputs or outputs used for training, and how is that controlled?
RetentionWhat is stored, for how long, and who can read it?
LocationWhere is data processed, including during overload or support?
AvailabilityWhat is committed, and what happens when it is missed?
LimitsHow are quotas raised, and how long does that take?
ChangeHow much notice before a version changes or is retired?
IncidentsHow 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

Next steps