LLM Selection and Cost Optimization: Model Tiers, Billing, and the Convergence Problem
This article explains why comparable large language models can produce bills that differ by several times on the same workload, and what to do about it. It breaks down how reasoning drafts feed into output billing, shows why deeper thinking tiers only pay off for tasks that cannot be verified externally, and offers engineering techniques to fix premature convergence and runaway spending. You will find a tier-selection decision table, routing and budget-guardrail patterns in pseudocode, and a method for measuring output per dollar instead of chasing benchmark scores.
1. Why the Same Task Can Cost Several Times More
Across coding assistants, document processing, and data analysis, many teams run into the same puzzle. They adopt a few model services from the same capability tier. The listed per-token prices look roughly comparable. Yet after running the same batch of tasks, one bill is a fraction of another’s, even though output quality is nearly the same.
The more useful question than “how much does a token cost” is this: why do models that are “roughly as strong” end up costing several times more?
The answer lives in three variables that are easy to overlook:
- Reasoning tier: The same model usually offers multiple settings, from fast answers to deep reasoning. Higher tiers make the model “draft” more before it produces an answer.
- Draft billing: Most mainstream services count the model’s reasoning draft (the “thinking” content) toward output billing, and output is often priced several times higher than input.
- Failed retries: When generation gets truncated or code fails to compile, repeated reruns push the real cost well above a single call.
The third point deserves extra attention. If a model only clears the quality bar at a high tier, its true production cost should be calculated as “high-tier price × number of retries,” not the lowest-tier price on the vendor’s price sheet.
This article does not evaluate any specific product. Instead, it distills a method for selection and cost control:
- Read the bill correctly;
- Choose a tier based on task characteristics;
- Find the inflection point with controlled experiments;
- Solve “premature convergence” at the engineering level.
2. How the Bill Is Calculated: Unit Price Is Not Cost
1. The cost formula
total cost = calls × (input tokens × input price + billed output tokens × output price)billed output tokens = reasoning draft tokens + final answer tokens
- Drafts cost money too: Reasoning drafts are billed as output, so the output price is the single most sensitive parameter affecting your bill.
- Costs jump at high tiers: Draft volume grows significantly with the reasoning tier. Moving from the second-highest to the highest tier can easily multiply draft volume.
- Retries amplify the bill: If a high tier gets truncated because of an output-budget limit, rerunning is almost like buying the draft all over again.
2. An illustrative example
The table below demonstrates the calculation. All numbers are illustrative and do not represent any real product:
| Model | Input price (USD / 1M tokens) | Output price (USD / 1M tokens) | Highest-tier billed output (10K tokens / task) | Highest-tier cost per task (USD) |
|---|---|---|---|---|
| A | 8 | 40 | 45 | 18.0 |
| B | 4 | 16 | 25 | 4.0 |
Model A’s output is more “articulate,” and its results are a bit more reliable. But to finish the same set of tasks, it writes nearly twice the draft that B does, at a higher unit price, so its per-task bill becomes 4.5 times B’s. And since production output prices are often lower, the gap can be even larger.
3. Cost is roughly linear; gains usually rise then flatten
Increasing the reasoning depth by one tier raises cost roughly linearly, but the gains tend to rise and then plateau. The extra score a high tier delivers may come mainly from a handful of hard problems; for the routine tasks that make up the bulk of the workload, the extra draft is almost pure expense.
If you plot “successful tasks per dollar” as your cost-normalized output, you will see a curve that rises then falls. The peak is that model’s cost-performance inflection point. Many models are already near the peak at the second-highest tier: the draft volume is far smaller than at the top tier, yet quality is nearly identical. Defaulting to the top tier usually means paying, for every task, for the few genuinely hard ones.
3. Should It “Think a Little Longer”? Let Verifiability Decide
Many developers have had this experience: on the same model, giving more thinking time to a complex coding task clearly raises the first-pass success rate; but when writing a piece of copy, maxing out the tier does not necessarily read any better. The reason is that tasks fall into two fundamentally different shapes.
1. Verifiable tasks: external checks can replace internal drafts
Whether code compiles, whether all unit tests pass, whether a numerical result is conserved — these judgments all have clear, automatable signals. Such tasks can be split into a “draft — generate — verify — fix” loop:
- The model first produces a runnable draft quickly;
- The external toolchain decides whether it is correct;
- Failure information is fed back precisely, and the model makes targeted fixes.
This is more reliable than having the model reason privately before answering. First, verification is done by deterministic tools like compilers and tests, so the model cannot “certify itself.” Second, error messages are specific, so the correction direction is clearer than free association. Third, drafts are saved, and the budget is reserved for the iterations that truly need it.
For these tasks, blindly raising the tier only adds the cost of “reasoning in its head” and does nothing to change the fact that the final answer must pass the compiler and the tests.
2. Generative tasks: drafts are the source of quality, but with diminishing returns
Copywriting, creative planning, and solution brainstorming have no compiler. The model’s draft (outlines, tradeoff reasoning, wording choices) is itself the source of quality, so moderate thinking genuinely helps. But the quality of such output is subjective, and score improvements are hard to reproduce consistently, so blindly adding tiers gives diminishing returns. A more cost-effective approach is:
- Produce the first draft at a medium tier;
- Use a separate review step to check for factual errors, structure, and tone;
- Rewrite only the parts that have problems, in a targeted way.
3. Tier-selection decision table
| Task type | Automatable verification | Recommended tier | Rationale |
|---|---|---|---|
| Bug fixing, feature development | Yes (compile, tests) | Start at medium | The verification loop replaces lengthy drafts |
| Numerical computation, data processing | Yes (reconciliation, conservation checks) | Start at medium | Wrong results are caught immediately |
| Creative copy, solution brainstorming | Hard | Medium | Drafts are valuable but subjective; diminishing returns |
| Diagnosing hard failures | Partial (reproduction conditions are clear) | Medium-high | Complex evidence chains need deep reasoning |
| Long-document review | Yes (checklist verification) | Medium | Checking each item against a list is enough |
4. Handling “Premature Convergence”: Make the Model Finish the Job
1. First, define what “done” means
“Premature convergence” is when a model produces an answer that looks complete but is actually a half-finished job. It usually shows up as:
- Code changed halfway, with a note like “the rest can be handled following the same approach”;
- A report that contains only an outline and a conclusion;
- A multi-step task where the first few steps are done and the remaining ones are not mentioned at all.
This is different from “getting the answer wrong.” The latter is a capability problem; the former is more of a delivery-habit problem, and it is often hard to notice: the answer reads as structurally complete and sounds confident, so it easily slips through spot checks.
Worse, in long workflows these “half-finished” outputs keep accumulating. If a code module is only half changed, downstream modules cannot integrate; if a report is missing key sections, it gets bounced back during review. The cost of rework grows level by level along the pipeline, usually far more than the small amount saved on a single call.
2. Why it happens
- Vague completion criteria: If the input has no explicit deliverable checklist, the model can only decide on its own that “this is enough.”
- Drafts crowd out the output budget: Within the output limit, the longer the draft, the less room is left for the formal answer, so it wraps up by “omitting” things.
- Information decay in long context: In long tasks, later steps are more easily “drowned out” in the context; the closer the task gets to the end, the more easily details get dropped.
- Rate limiting under high concurrency: When batch tasks trigger service rate limits, if the retry logic runs only for a fixed number of attempts at fixed intervals, some requests silently fail after retries are exhausted.
3. Five engineering techniques
First, write an explicit definition of “done” into the prompt. Here is an illustrative prompt:
System prompt (example):Before producing the final answer, verify each item:1. All target files have actually been modified, not just described;2. All relevant unit tests pass;3. If any unresolved items remain, list them separately at the end under "Outstanding Issues";4. Do not end with "the rest can be handled following the same approach."
Second, set output-budget floors for different task types. Cap the output by the estimated answer length to prevent drafts from expanding without bound; at the same time, leave enough room for the formal output of long tasks.
Third, verify completeness externally. A model cannot reliably judge whether it has finished, so completeness checks should be handed to deterministic rules, for example:
- Code tasks: whether key files were actually modified, whether all tests pass;
- Checklist tasks: whether all required sections are present;
- File tasks: whether deliverables exist and whether their sizes are reasonable.
Fourth, split long tasks into stages with acceptance criteria. Each stage is delivered and verified independently, and the output of the previous stage becomes the input to the next. This way, wrapping up no longer depends on the model “remembering everything” across a very long context; each stage has a clear completion boundary.
Fifth, configure a budgeted “final review” stage for long tasks. The final review can use two settings:
- A cap on the input side: pass in only the deliverables to be checked and the completion criteria, without the full history, to control input cost;
- A medium-high tier on the reasoning side: review usually demands less reasoning depth than solving a hard problem from scratch.
This brings three benefits: the input-side constraint prevents expansion; the medium-high depth balances quality and cost; the isolated context keeps the reviewer from “inheriting” the laziness habits of the earlier text.
5. Engineering in Practice: Routing, Budgets, and Quality Guardrails
1. Route by task
# Pseudocode: route to different tiers by task typeTIER = {"code_fix": "medium", # Compiler/tests as a safety net; start at medium"code_review": "medium","doc_write": "medium", # First draft at medium, then a separate review"debug_hard": "high", # Hard diagnosis; allow deep thinking}def route(task):tier = TIER.get(task.kind, "medium") # Unknown types default to mediumif budget.exceeded_today():tier = downgrade(tier) # Downgrade everything when the budget is tightif task.deadline_soon():tier = downgrade(tier) # Prioritize results when latency-sensitivereturn tier
2. Use a two-stage flow for verifiable tasks
# Pseudocode: draft — verify — fix loop for verifiable tasksdef solve_with_check(task, max_rounds=3):draft = call_model(task, tier="low") # The draft only needs to be runnableresult = verify(draft) # Compile, test, static checksfor _ in range(max_rounds - 1):if result.passed:breakdraft = call_model(task,tier="medium",feedback=result.errors, # Targeted fix using failure information)result = verify(draft)return draft, result
Two implementation points:
- Tighten the draft’s output budget: Make “produce a draft first” mean “do the cheap part first,” not “do less work.”
- Fix with feedback: Let the model adjust based on specific failure information, rather than rewriting from scratch.
This shifts the thinking budget from “reasoning in its head” to “real feedback.”
3. From “implicit retries” to “explicit completion”
# Pseudocode: fixed-interval retries with no budget constraintdef bad_retry(prompt):for _ in range(5): # Retry a fixed 5 timestry:return call_model(prompt)except RateLimitError:sleep(fixed) # Fixed interval, prone to request burstsreturn None # Failure is silently swallowed# Pseudocode: exponential backoff + jitter + a budget capdef retry_with_backoff(prompt, budget):delay, attempt = 1.0, 0while attempt < MAX_ATTEMPTS:try:return call_model(prompt)except RateLimitError:if budget.remaining() <= 0:return mark_failed(prompt) # Fail explicitly, do not go silentsleep(delay * (0.5 + random())) # Jitter, to avoid simultaneous retriesdelay = min(delay * 2, 30)attempt += 1return fallback_model(prompt) # Degrade to a fallback
A concrete strategy needs three things: a cap, backoff, and a budget. Fixed-interval, concentrated retries amplify request peaks and trigger rate limiting further, so add random jitter to the backoff. If every attempt fails, the task must be explicitly marked as failed or moved to a manual queue, rather than quietly returning an empty result. A simple “remind me when the time is up” is far from enough — alerts must be tied to automatic degradation and task pausing.
Budget guardrails should have at least three layers:
- Per task: Set token and cost caps to prevent a single task from “hallucinating wildly” out of control;
- Daily / monthly: Set total caps;
- Global: When the budget is exhausted, automatically downgrade or queue tasks, rather than letting the bill “run naked.”
4. Finishing at low cost
- Divide labor between models: Have the stronger-reasoning model handle “drafting and hard problems,” and let another model with a clean context and steadier instruction-following handle “checking against the list to wrap up.” The prerequisite is writing the completion criteria as checkable items.
- Bill per task: Some cloud services offer agent-type products billed per task unit, suited to high-frequency, fixed-flow finishing work such as archiving and organizing. This avoids repeatedly billing long context, but should be evaluated against data-compliance requirements.
6. A Selection Method: From Benchmark Scores to Output per Dollar
1. Benchmarks are a starting point, not a conclusion
Public evaluations compare models side by side on the same set of problems and can reflect the rough capability tier. But benchmarks have three limitations:
- The problem set may not match your business distribution;
- Benchmarks rarely reflect the actual reasoning tier and draft cost;
- A single aggregate score hides differences in strength across task types.
2. Build a private evaluation set
Sample real tasks from production logs, stratified by type. Each task must have a decidable success criterion, such as tests passing, field validation, or a key metric meeting target.
3. Draw a “quality–cost” curve with controlled experiments
Design the experiment as follows:
- Control groups: Run every available tier of every candidate model, with an identical sample size;
- Metrics to record: Quality score, billed tokens, actual cost, number of failed retries;
- Count failures: Timeouts, truncations, and failed checks all count as failures, so that “pretty scores” do not hide implicit costs.
4. Look at output per dollar, not absolute scores
output per dollar = successful tasks / total cost
- If your primary tier already leads on output per dollar, there is no need to use the top tier for a few hard tasks;
- You can use routing to handle the tail of hard problems and keep overall cost under control;
- Also watch quality variance: the more results fluctuate across repeated runs at the same tier, the higher the online rework risk, and that cost must be counted too.
7. Conclusion
The core of LLM selection is not finding “the strongest one,” but finding “the one with the highest output per dollar on your task distribution.” To do that, you need to do three things:
- Understand the cost structure: Drafts are billed as output, cost grows roughly linearly with thinking depth, but gains tend to rise then plateau;
- Choose a tier by task characteristics: For verifiable tasks, use external verification instead of lengthy drafts; for generative tasks, keep moderate thinking;
- Cover the model’s weaknesses with engineering: Completeness checks, exponential backoff, and layered budget guardrails put both “runaway bills” and “premature convergence” in a cage.
Models iterate quickly, and today’s optimal configuration may change in a few months. So what is truly worth accumulating is not the conclusion about any one model, but this reusable method: “evaluation set — controlled experiments — routing strategy — budget guardrails.” With it, every time a new model is released, you can spend a day or two recalculating your own cost-performance inflection point, instead of being led around by benchmark leaderboards.
