LLM Selection and Retention: A Cost-Efficiency Evaluation Guide

    This guide explains why a low per-million-token price does not guarantee a low bill, and reframes model evaluation around the total cost per successful task. It covers a four-dimension framework (capability, cost, efficiency, availability), a minimal reproducible evaluation record, scenario-based retention recommendations for code and multi-step agents, general analysis and research writing, and multi-industry knowledge work, plus a practical cost-control checklist covering reasoning tiers, price windows, prompt and structured-output token reduction, cache reuse, retry rates, and free-tier coverage.

    1. The Problem: Why a Cheap List Price Is Not a Cheap Bill

    When teams evaluate large language models in real engineering work, the most common mistake is treating the per-million-token price as the cost conclusion. The actual bill is determined by four variables working together: task success rate, completion time, total output tokens, and the reasoning tier you select. A model with a lower unit price but verbose output and repeated self-verification can cost several times more per task than a model with a higher unit price but restrained expression.

    This article therefore redefines the evaluation goal: the lowest total cost per unit of effective output (a successful task) under a given task distribution. Total cost includes both API fees and the human and pipeline occupancy costs created by waiting time.

    Start by building a minimal but reproducible evaluation ledger. The fields do not need to be complex, but they must be repeatable:

    1. eval_record:
    2. task_id: "codebase_refactor_017"
    3. scenario: "multi_step_agent" # code / agent / general analysis
    4. model_tier: "high" # reasoning tier
    5. success: true # passed acceptance cases
    6. latency_min: 28.4 # end-to-end time
    7. input_tokens: 180000
    8. output_tokens: 42000
    9. cache_read_tokens: 150000
    10. cost_usd: 3.74 # measured charge
    11. cost_per_success: 3.74 # core metric

    The last column is what matters. Only when the cost of failed tasks is spread across the successful ones does cost per success become comparable across models.

    2. Evaluation Framework: Four Dimensions and One Core Metric

    2.1 Capability: Read Per-Scenario Leaderboards, Not Composite Scores

    Composite intelligence leaderboards are useful for a first pass, but retention is ultimately decided by per-scenario performance. Engineering teams usually care about three types of benchmark: execution-oriented evaluations for code and agents, intelligence indices for general reasoning and knowledge work, and professional knowledge assessments spanning industries such as finance, programming, law, and taxation. The three often disagree, which is exactly why selection must be tied to your business task distribution.

    2.2 Cost: Unit Price, Context Length, and Cache Reads

    Whether long context carries a surcharge is an easily overlooked dividing line. Some models double the rate for inputs beyond 200,000 tokens, while newer models keep million-token context in the same price band and significantly lower the cache read price. For workloads such as feeding an entire repository plus long-document question answering, the cost advantage of the latter is amplified.

    A rough estimate helps with the judgment:

    1. cost per task ≈ input tokens × input price
    2. + output tokens × output price
    3. + cache hit tokens × cache price
    4. + retry count × cost per task

    When the output price is 5 times the input price, controlling output length is usually more effective than compressing the input.

    2.3 Efficiency: Time Is Also a Cost

    In continuous integration, batch refactoring, and overnight batch jobs, queue time translates directly into pipeline occupancy. At equal capability, a model with shorter end-to-end latency improves concurrent throughput and indirectly lowers unit cost.

    2.4 Availability: Quotas and Free Tiers

    Many claims of “free to use” come from secondhand information. The actual rules are usually that free quotas do not cover mid-tier and high-tier models, and that a subscription or paid API is required to call them. New models also often launch with limited-time discounts; once the discount ends the price returns to normal, creating a clear switching window.

    3. Scenario-Based Conclusions: Retention Advice for Three Task Types

    3.1 Code and Multi-Step Agents: Default to the Mid Tier with High Throughput and Long Context

    In code execution benchmarks, the gap between top options is often only 1 point, while cost can differ by more than a factor of two. A typical pattern: one configuration completes a task in about 30 minutes for a single-digit dollar amount, while a more expensive combination scores just 1 point higher at nearly three times the cost. The conclusion: for code scenarios, default to the mid reasoning tier and reserve the high tier for the very few hard problems.

    Pitfalls to avoid:

    • Do not habitually max out the highest reasoning tier. The top tier often comes with output bloat and can be among the most verbose models in public evaluations, potentially doubling the cost of a general task.
    • Quantify any downgrade. If moving from the high tier back to the default tier drops the benchmark score by only 1 point while cutting the bill by 60%, write the default tier into team standards.
    • For long-context tasks, prefer models that offer million-token context without a surcharge plus a low cache read price.

    3.2 General Analysis and Research Writing: Compare Measured Charges at the Same List Price

    The same list price does not mean the same actual payment. Because some models are restrained in output and take fewer detours, they can rank near the top in general intelligence evaluations while measuring only a fraction of the time and cost of same-priced alternatives, sometimes even less than options with a lower list price. Insist on measured comparisons under the same conditions rather than comparing list prices.

    Write the shortcomings into the standard too: these models tend to be stiff in expression and average in readability, which suits tasks with clear requirements and heads-down execution. Reporting material for non-technical stakeholders needs an extra polishing step.

    3.3 Multi-Industry Knowledge Work: Allow a Value Option That Trails the Leader Closely

    When the top two differ by less than 0.5 percentage points while average price and latency are clearly better, choosing the second place is usually rational. The rule can be written as: if score gap < 1% and cost reduction > 40%, choose the lower-cost option.

    4. Cost Control Checklist (Ready to Apply)

    1. Establish a tier policy: mid tier by default, approval required for the high tier, and record the quality difference after downgrading.
    2. Catch the price window: use the flagship during its limited-time discount, then switch to the mid-tier option after the discount ends, so you do not pay for “new.”
    3. Compress tokens with prompts and structured output: constrain the output format and require minimal necessary explanation to significantly reduce the output bill.
    4. Turn on cache reuse: put stable system prompts, coding standards, and repository notes in a cacheable prefix to reduce repeated charges.
    5. Failed calls are still billed: track retry rate in the ledger, and re-evaluate any option with a retry rate above 15%.
    6. Confirm quota sources: verify whether the free tier covers the target model to avoid rejected calls after launch.

    5. Conclusion

    Model retention is not a one-time “pick the strongest” decision but continuous cost-efficiency governance: read per-scenario leaderboards, measure under identical conditions, optimize the bill by tier and cache, and watch price windows and quota rules. Only by fixing this process into your evaluation ledger and team standards can you reliably land on the most cost-effective option among top models with similar capability.