Model Selection Isn't Just About Scores: Inference Cost and Reasoning-Effort Routing in Practice

    Choosing a language model by leaderboard rank alone is a mistake, because reasoning effort and inference cost shape the real bill just as much as raw capability does. This article lays out a reusable evaluation method that scores quality, cost, and total bill together, then applies it to illustrative data in which a model ranked second overall delivers near-top capability at a fraction of the price. It covers layering tasks by how easily they can be verified, routing work across reasoning-effort levels, guarding budgets, and using acceptance-driven continuation loops to fix the "stops halfway" failure mode. It also covers the context and caching tactics that quietly drive down input-side costs. Readers will find practical code for a unified call wrapper, cost metering, difficulty routing, and a landing checklist that turns model-selection decisions into code and process.

    1. The short answer

    Start with the conclusion: for the vast majority of day-to-day development and analysis work, make the model that ranks near the top on capability but costs only a fraction per call your default workhorse, then fill its gaps with a routing strategy that splits work by task and by effort level. Concretely:

    1. For the main model, pick the one with near-top capability at a fraction of the cost. On a combined evaluation that spans code changes, computer-use research, and cross-application task execution, the flagship ranked second overall trails the leader by only 2.5 points. At identical per-token pricing, its total bill is less than one-sixth of the leader’s.
    2. Drop simple, verifiable tasks to a lower or medium tier, and wire up automatic checks. If a result can be judged automatically by compilation, unit tests, or a numeric check, the fewer draft tokens the model burns while probing, the cheaper the run. In testing, it topped the “computer-use research computation” category at 78.1% pass rate, 4.8 points ahead of the runner-up.
    3. For long-chain tasks that need rigorous sign-off, switch to a more capable model. Real-world software bug fixing is a relative weak spot for it, and the gap with the leader comes mostly from “stopping early.” Hand these tasks to a stronger model, or add acceptance and resume mechanisms to the pipeline.
    4. For long-form Chinese writing and reader-facing polishing, pick a model that’s good at expression. Split the work into a two-stage draft-then-polish pipeline, and spend the expensive model only on high-value output.

    In the illustrative data below, the “main flagship” is the flagship model ranked second overall, the “everyday” version is the same-series variant aimed at routine tasks, and “top overall” is the control model with the highest combined score.

    2. Problem definition: why “smart” and “cheap” often sit on opposite sides

    2.1 Billing has shifted from the “answer” to the “thinking draft”

    Large models bill by token, and different providers don’t price input and output symmetrically. The input side usually has levers like batch discounts and cache hits; the output side often costs several times more per token. As an example price: $8 per million input tokens and $40 per million output tokens, making output five times the price of input.

    Reasoning models also bill their internally generated “thinking draft” as output. The hidden reasoning process is charged the same as the final answer. Providers differ in how they bill and display thinking content, so refer to the official billing documentation. This leads to a counterintuitive result: two models with identical unit prices can produce bills that differ by several times, and the difference comes only from “how much it thought” and “how much it said.”

    2.2 Reasoning effort: multi-tier performance from a single model

    Most mainstream reasoning models expose a reasoning effort setting to control reasoning depth. Common labels are minimal, low, medium, and high. Effort is a behavioral constraint on the model, not a concrete API parameter; actual values and supported ranges depend on each platform’s documentation.

    • Low: low latency, few draft tokens; good for classification, extraction, and rewriting with clear boundaries.
    • Medium: quality close to high, cost noticeably lower; often the “sweet spot” for most business tasks.
    • High: suited to math, algorithms, and complex defect localization that need long-chain reasoning.
    • Ultra-high: marginal returns fall off fast, and “overthinking” can appear.

    The key insight: effort is an adjustable variable, and the model itself is not a fixed value. If you compare only “highest tier × single call,” you’re looking at a single endpoint of the capability curve.

    2.3 Three pain points in real selection

    • Watching the leaderboard, not the bill. Rankings answer “who’s strongest,” but rarely answer “on my tasks, what does each point of quality cost.”
    • Default parameters are cost. Many platforms default reasoning models to a fairly high effort level. If a team ships by reusing chat-style calls, they end up paying for drafts without knowing it.
    • Failure modes are hidden by averages. Problems like “stopping early” show up as just a few points in an average score, but on a long-task pipeline they can force a full redo, making the real cost far higher than the sticker price.

    3. Set up a coordinate system first: a reusable model evaluation method

    3.1 Layer tasks: put “can it be verified” first

    • Verifiable tasks: results that a machine can judge objectively, such as compilation passing, unit tests passing, a numeric answer matching a reference value, or a tool call returning a value that matches a schema.
    • Partially verifiable tasks: objective metrics exist, but a human has to add judgment, such as UI fidelity or click-through-rate estimates for copy.
    • Subjective tasks: no shared standard, such as reader-facing long-form writing and polishing, which typically rely on human review or cross-model review.

    Why layering matters: whether a task can be auto-verified decides how much you’re willing to pay for a single mistake. When a verifiable task fails, the machine can catch it and retry automatically, so it’s fine for the model to think a few fewer steps. When a subjective task gets redone, it usually takes a human rewrite, so it’s worth spending more reasoning there.

    3.2 Metrics: combine quality, cost, and bill into three dimensions

    Dimension Core metric Notes
    Quality Capability radar Per-dimension pass rates for code fixes, research computation, tool use, writing, multi-turn instruction following, etc.
    Cost Cost per task, draft ratio, effort curve Compute P50/P95 by task type; don’t look only at the average
    Bill Cost-effectiveness index Combined score ÷ cost per task, with scores normalized to the same scale

    Worked example: model A scores 62.1 at $4.00 per task, an index of about 15.5; model B scores 64.6 at $26.54 per task, an index of about 2.4, so the former is about 6.4× the latter. The everyday version at $1.01 per task has an index above 56, but it only suits lower-difficulty tasks, which shows the index has to be used together with task layering.

    One caution: the combined score is a weighted average that hides how strong or weak each dimension is. When evaluating, open up the radar chart rather than fixating on the total.

    3.3 Build your own eval set: four principles

    • Stay close to real business. Sample from anonymized production tickets, covering high-frequency tasks, long-tail tasks, and known high-risk scenarios.
    • Label acceptance criteria. Every task needs an executable way to judge it (a test command, reference output, schema, or human scoring rubric).
    • Run all tiers × all models. Cover at least low, medium, and high; run each task 3–5 times and average to reduce randomness.
    • Freeze versions and keep regressing. Before switching the default model or adjusting effort, run a regression pass; re-test after a model upgrade too.

    4. Case study: seeing the “capability–cost” trade-off in illustrative data

    The data below is illustrative and hypothetical, meant to explain the analysis method. It doesn’t represent any specific product.

    4.1 Capability: second overall, first in a single category

    Model Code changes Computer-use research Cross-app tasks Combined score
    Main flagship 45.4% 78.1% 77.2% 62.1
    Everyday 44.4% 67.6% 71.3% —
    Top overall 48.8% 73.3% 76.4% 64.6
    Reference flagship 46.4% 59.0% 69.5% —
    Reference model 40.6% 64.8% 77.8% —

    The nine-task combined test is scored out of 100. The main flagship trails the leader by 2.5 points and beats the two other control models. On code changes it leads the reference model by 4.8 points. On computer-use research it takes the lead at 78.1%, 4.8 points ahead of the leader, and this is exactly the “compute-and-verify-as-you-go” task type.

    4.2 The bill: same unit price, one-sixth the spend

    Model Illustrative price (input/output, USD per million tokens) Total billed tokens Tasks Cost per task (USD)
    Main flagship 8 / 40 ~65.8M 1,645 4.00
    Top overall 8 / 40 ~275M 1,036 26.54

    Take the main flagship: about 4,000 input tokens per task and about 36,000 output tokens (including drafts), which works out to roughly $1.47. The two differ by about 24×, showing the gap comes mainly from “thinks more, writes more,” not from “answers that are more worthwhile.”

    On the engineering side, you can export real data directly from the platform bill or the token-usage fields in responses. Plotting a “average cost per task vs. pass rate” scatter chart from real data is closer to your business than any leaderboard.

    4.3 The reasoning-effort curve: same score, cheaper; high tier thinks more and errs more

    1. Score
    2. 65 ┤ ┌───╮
    3. │ ╱ ╲ Top overall
    4. 62 ┤ ┌──────────────╮ Main flagship · High
    5. │ ╱ ╰────────╮
    6. 59 ┤ ╱ Main flagship · Medium ╰───╮
    7. │ ╱ ╲ Reference flagship
    8. 57 ┤daily ╯ Everyday · High ($1.01)
    9. │ ╭──╯
    10. 55 ┤ ╱ Main flagship · Medium ($1.62)
    11. │╱ Top overall · Medium ($3.80)
    12. 53 ┤╱
    13. └──┬─────┬─────┬─────┬─────┬─────┬─────┬──→ Cost per task (USD)
    14. 1 2 4 8 16 26 40
    • The whole curve shifts left. At medium effort the main flagship scores 57.0 for $1.62, while top overall spends $3.80 for only 56.4 — about half the cost for the same score.
    • The sweet spot is medium. Going from low to medium on the main flagship drops cost-per-point noticeably; going from medium to high adds only about 5 points while cost roughly triples.
    • High tier shows “overthinking.” On code changes, going from second-highest to highest tier grows the draft from 27.1M to 65.8M billed tokens, yet the score falls from 49.0% to 45.4%. A longer reasoning chain didn’t produce more reliable fixes and may have introduced new deviations.
    • The everyday version sits further left. The everyday version scores 57.3 at its highest tier for just $1.01, the best cost-effectiveness, but its score is already close to the main flagship’s medium level. Push the difficulty higher and its curve flattens sooner, so it fits tasks that close out with “main flagship medium + auto-check.”

    5. Task fit: what goes to whom, and at which tier

    5.1 Verifiable tasks: let “thinking a few fewer steps” be an advantage

    • Code fixes: have the main flagship at medium propose a patch, then run unit tests and static checks. If it passes, done; if not, escalate one tier and retry.
    • Research computation: use a model with fewer drafts and verifiable output for modeling and computation, then re-compute the key steps with an independent check script or another model.
    • Cross-app task execution: these involve lots of tool calls, and any single step failing fails the whole task. The gap between the main flagship and the reference model here is under 1 point, so prefer the model with lower per-step cost and add idempotent retries for key steps.

    5.2 Long-chain tasks: focus on curbing “stopping halfway”

    Multiple independent tests and vendors’ own official notes point to the same phenomenon: newer reasoning models default to short answers and, on complex tasks, tend to give a plan or point out the problem and then stop to wait for confirmation. One developer asked a model to fix a test pipeline; it pointed out the problem and ended, while the reference model went ahead and finished the changes.

    In a single Q&A this is “polite”; in an automated pipeline it’s a failure mode:

    • The task gets marked done early, and the remaining steps never run;
    • Downstream systems receive a “half result,” and errors surface only later;
    • Human rework wipes out the savings from the lower unit price.

    The fix isn’t “switch to a model that never stops,” but to add an “acceptance + resume” mechanism at the engineering layer, detailed in section 6.4.

    5.3 Final review: high-value output is worth a pricier pass

    For the last review before release, review of high-risk changes, or finalizing external deliverables, you can use the most capable model or the highest effort tier, but two conditions must hold:

    1. Narrow the scope. Have it review only the “critical path,” not the full content.
    2. Have clear acceptance criteria.

    This keeps sign-off costs under control while shoring up the main model’s weak spot in rigorous review.

    5.4 Chinese writing: split into “draft — polish — fact-check”

    The illustrative data doesn’t cover the writing dimension, and the original only gives a directional judgment: the main model has improved only modestly at Chinese expression, so reader-facing copy is better handed to a reference model that’s stronger at Chinese. Drawing on general practice, the pipeline below is recommended:

    1. Chinese drafting. Have a model strong at Chinese produce the first draft, at a moderate effort level, focused on structure, terminology, and factual accuracy.
    2. Mechanical polishing. Unify sentence patterns, replace colloquialisms, cut redundancy, and check punctuation. These edits have clear rules and can be done at a lower tier.
    3. Reader-facing polishing. Adjust rhythm and tone, and strengthen the opening and transitions. These are subjective calls, suited to a higher tier or human review.
    4. Fact-checking. Use search tools to verify data, quotes, and proper nouns; if needed, have the main model do an adversarial re-check.

    Writing prompt template (illustrative)

    • Task: a technical explainer for a developer audience, about 2,000 words.
    • Structure: conclusion first → background → method → example → action checklist.
    • Style: few adjectives, consistent terminology, data must state its scope and source.
    • Constraints: mark any uncertain number as “to be verified,” and never fill in gaps yourself.
    • Output: Markdown, with H2 headings, lists, and at least one code block.

    6. Engineering: routing, budgets, and preventing early stops

    6.1 Unified call wrapper and cost metering

    The code below is illustrative; adjust interface and field names to match your chosen platform’s documentation.

    1. from dataclasses import dataclass, asdict
    2. @dataclass
    3. class Usage:
    4. input_tokens: int = 0
    5. output_tokens: int = 0 # visible output
    6. reasoning_tokens: int = 0 # background thinking draft
    7. def complete(model, messages, effort="medium", **kw):
    8. """Unified entry point; every request goes through here for metering and governance"""
    9. resp = model.chat(
    10. messages=messages,
    11. reasoning_effort=effort, # reasoning effort, decided by the routing layer
    12. **kw,
    13. )
    14. u = resp.usage
    15. return resp.text, Usage(
    16. input_tokens=u.input_tokens,
    17. output_tokens=u.output_tokens,
    18. reasoning_tokens=u.get("reasoning_tokens", 0),
    19. )

    6.2 Budget guard: don’t let thinking drafts eat the budget

    1. # Illustrative prices; replace with the official billing standard of your platform
    2. PRICE_IN_PER_M = 8.0
    3. PRICE_OUT_PER_M = 40.0
    4. def cost_of(u: Usage) -> float:
    5. """Drafts are billed as output; actual rules follow the platform documentation"""
    6. return (u.input_tokens * PRICE_IN_PER_M
    7. + (u.output_tokens + u.reasoning_tokens) * PRICE_OUT_PER_M) / 1e6
    8. class BudgetExceeded(Exception):
    9. pass
    10. class BudgetGuard:
    11. def __init__(self, limit_usd: float):
    12. self.limit = limit_usd
    13. self.spent = 0.0
    14. self.records = []
    15. def charge(self, model: str, effort: str, u: Usage) -> float:
    16. c = cost_of(u)
    17. if self.spent + c > self.limit:
    18. raise BudgetExceeded(f"Budget cap {self.limit} USD reached, already spent {self.spent:.4f}")
    19. self.spent += c
    20. self.records.append({
    21. "model": model, "effort": effort,
    22. "draft_ratio": round(u.reasoning_tokens / max(u.output_tokens, 1), 3),
    23. "cost": round(c, 5),
    24. })
    25. return c

    draft_ratio (the share of drafts in the output) is the key metric for spotting cost anomalies. If a call’s draft ratio is far above the historical median for that task, it usually means the effort tier is too high, the prompt is too open-ended, or the task lacks a verifiable stopping condition.

    6.3 Difficulty routing: pick model and effort by “difficulty + verifiability”

    1. EFFORTS = ["low", "medium", "high"]
    2. def solve(task, models, guard, max_escalate=2):
    3. """Difficulty is assessed by a lightweight model, only for cost control, not as a quality criterion"""
    4. level = triage(task) # 0=easy, 1=medium, 2=hard
    5. base = min(2, max(0, level)) # easy tasks stay at low effort; don't escalate "to be safe"
    6. chosen, text, u = None, None, None
    7. for step in range(max_escalate + 1):
    8. idx = min(base + step, len(models) - 1)
    9. idx = min(idx, len(EFFORTS) - 1)
    10. model, effort = models[idx], EFFORTS[idx]
    11. text, u = complete(model, task.messages, effort=effort)
    12. guard.charge(model, effort, u)
    13. if task.check is None: # subjective task: one-shot, no auto-escalation
    14. return text
    15. report = task.check(text)
    16. if report.passed or step == max_escalate:
    17. return text # passed or at the last level; hand failure to the caller
    18. def triage(task):
    19. """Illustrative rules; in practice swap in a small-model classifier, heuristics, or historical stats"""
    20. if task.kind in {"rewrite", "extract", "classify"} or task.num_files <= 1:
    21. return 0
    22. if task.num_files <= 10 and task.has_tests:
    23. return 1
    24. return 2

    Routing should follow two principles:

    • Difficulty routing controls cost; acceptance escalation controls quality. The former decides which tier to start from; the latter decides whether to add a tier. Don’t mix them into the same if.
    • No auto-escalation for subjective tasks. Without an objective criterion, escalating repeatedly just multiplies the bill without improving quality.

    6.4 Prevent “stopping halfway”: an acceptance-driven continuation loop

    1. def is_complete(text: str) -> bool:
    2. """Prefer machine judgment; here we simulate it with an explicit done marker"""
    3. return text.strip().endswith("<done>")
    4. def needs_user_input(text: str) -> bool:
    5. return "需要用户确认" in text # "needs user confirmation"
    6. CONTINUE = (
    7. "Do not stop at the plan stage. Continue and finish all remaining steps, "
    8. "and give the result directly; list any items that need human confirmation "
    9. "together in a final section; output <done> when everything is complete."
    10. )
    11. def agent_loop(task, runner, guard, max_rounds=8):
    12. rounds, transcript = 0, []
    13. while rounds < max_rounds:
    14. # The prompt explicitly authorizes "run autonomously to the end," offsetting the model's default brevity
    15. text, u = runner(transcript + [task.messages])
    16. guard.charge(runner.model, runner.effort, u)
    17. transcript.append({"role": "assistant", "content": text})
    18. rounds += 1
    19. if is_complete(text) and task.check(None if task.check is None else text).passed:
    20. return text
    21. if needs_user_input(text):
    22. return escalate_to_human(transcript) # hand to a human only when genuinely blocked
    23. transcript.append({"role": "user", "content": CONTINUE})
    24. return escalate_to_human(transcript) # hit the limit; keep context for a human to take over

    Pair this with the following prompt constraints:

    • Execute directly by default; don’t just give advice and stop;
    • Ask only when information is missing, a high-risk operation is involved, or business authorization is required;
    • Self-check the acceptance checklist before finishing (e.g., “compiles / all tests pass / TODOs cleared”), and output the standard done marker after passing.

    The point: completion is decided by the machine, not by the model saying “done.” The task layering from section 3.1 matters here. For verifiable tasks, the done marker can come from test results; for subjective tasks, it needs a human review to be wired in.

    7. Context and caching: the other half of the bill that’s easy to miss

    The input side of code changes and cross-app tasks often hides meaningful cost.

    • Context governance. Retrieve code snippets on demand instead of injecting the whole repo, trim tool-call results before putting them into context, and summarize and compress multi-turn conversations in time.
    • Prefix caching. Put the fixed system prompt, spec docs, and examples at the very front of the request to take advantage of the platform’s prefix caching (if available) and cut the cost of repeated input.
    • Batch and async. Offline batch jobs usually get a lower per-call price and looser latency requirements, which suits log analysis, batch rewriting, and offline evaluation.
    • Structured output. Constrain output with a JSON Schema to reduce retries caused by parse failures.
    • Budgets and quotas. Set per-team, per-project, or per-environment call quotas and cost alerts, moving overspend detection from “month-end bill” to “minute-level monitoring.”

    8. Common pitfalls and a landing checklist

    8.1 Five common pitfalls

    • Leaderboard absolutism. When the benchmark’s tasks don’t match your business distribution, the ranking has almost no reference value.
    • Comparing only unit prices. Equal unit prices don’t mean equal bills; the draft is the big cost.
    • Shipping with default effort. Not explicitly setting the effort tier hands cost control to the platform default.
    • The “high tier is universal” fallacy. The illustrative data already shows that escalating can bring “double the drafts, a lower score.”
    • Model absolutism. Problems like stopping early are more economical to solve with prompt constraints and acceptance loops than by swapping models.

    8.2 Landing checklist

    • A regression eval set covering your own business with automatic judgment, version-frozen, is in place;
    • All calls go through a unified wrapper that explicitly sets model and effort, and logs token and draft usage;
    • The “effort — score — cost per task” curve is plotted, and a default tier is set for each task type;
    • Budget guards, cost alerts, and per-project call quotas are live;
    • Verifiable tasks are all wired into “acceptance + escalation retry,” and long tasks into “acceptance + resume”;
    • Sensitive data has masking and routing isolation and doesn’t enter non-compliant call paths;
    • A model version upgrade or a pricing change automatically triggers a regression eval and a cost recalculation.

    9. Closing

    “Smart and cheap” aren’t contradictory; what’s contradictory is the crude approach of “using the highest tier on every task.” The right approach boils down to three steps:

    1. Use your own eval set to see each task type’s “capability–cost” curve clearly;
    2. Let the main model handle day-to-day work, and cover its weak spots with a stronger model or an engineering mechanism;
    3. Use budget guards, difficulty routing, and acceptance-driven resume to hard-code the selection decisions into code and process.

    Do this, and the model becomes a genuinely controllable, budgetable, and sustainably evolving form of productivity.