How to Evaluate LLM API Pricing: From Sticker Price to Real Cost

    Comparing LLM providers by per-million-token price alone is misleading. This article explains why real cost equals unit price times actual token consumption, breaks down four key evaluation dimensions—price structure, subscription plan value, per-task token usage, and caching leverage—walks through a worked cost calculation, and offers practical cost optimization advice for developers, including benchmark-task testing, model routing, and prompt structuring for cache hits.

    1. Why “Cheaper Unit Price” Doesn’t Mean “Cheaper in Practice”

    LLM pricing typically consists of three components: input token price, output token price, and a discounted input price for cache hits. When comparing providers, many users only look at the published price per million tokens—but this comparison is fundamentally flawed.

    The reason: real cost = unit price × actual consumption. Models differ greatly in reasoning style. Some tend to produce lengthy chains of thought; others generate frequent intermediate rounds during tool calls. Both directly inflate actual token consumption. If one model costs several times more per token but consumes half as many tokens per task, its final cost may actually be lower. Conversely, a model with a seemingly reasonable unit price can produce a bill far beyond expectations if its per-task token usage is high.

    So the correct starting point is: first determine how many input and output tokens a typical task in your business scenario requires, multiply by the unit price to get per-task cost, then multiply by task volume to get total cost.

    2. Four Key Dimensions for Evaluating LLM Pricing

    2.1 Official Unit Prices and Price Structure

    The ratio among input, output, and cache-hit prices deserves close attention. Output tokens typically cost 4–5× input tokens, while cache-hit pricing can be as low as one-tenth of regular input pricing—or even lower. This means:

    • For long-context, highly repetitive scenarios (multi-turn dialogue, long-document analysis), cache hit rate has an enormous impact on cost;
    • For generation-heavy tasks (code generation, long-form writing), the output price is the dominant cost factor.

    2.2 The Real Value of Subscription Plans

    Beyond pay-as-you-go, many providers offer fixed-fee monthly subscriptions. When evaluating a plan, don’t just look at the monthly fee—estimate “how much the same usage would cost on a pay-as-you-go basis.” For example, if a plan priced at ¥199 provides usage equivalent to roughly ¥1,200–2,800 at metered rates, the value is compelling; if the equivalent is only ¥300–500, the plan is far less attractive.

    A simple estimation approach:

    1. Plan equivalent value ≈ monthly fee ÷ metered unit price × price conversion factor
    2. Value multiplier = equivalent value ÷ monthly fee

    Value multipliers vary widely across mainstream subscription offerings in the industry—some exceed 20×, while others are only 5–10×. This multiplier is an important indicator of how generous a subscription product really is.

    2.3 Real Per-Task Consumption

    Third-party benchmarks and community testing often reveal an overlooked fact: different models can consume several times more tokens than each other on the same task. Some reasoning-oriented models generate extensive chain-of-thought content, producing several times more output tokens than concise models. Evaluation should use a “benchmark task” method:

    • Prepare a set of representative real tasks (e.g., a code fix, a document Q&A);
    • Run them on each candidate model and record input/output/cache-hit token counts;
    • Calculate per-task cost using each model’s pricing, rather than comparing raw unit prices.

    2.4 Caching as a Cost Lever

    For applications with fixed system prompts or stable knowledge-base prefixes, enabling context caching can substantially reduce input costs. When designing your application architecture, place stable, unchanging content at the front of the prompt to leverage caching, and put dynamic content at the end to maximize hit rates.

    3. A Worked Cost Calculation

    Suppose a typical task in a given scenario consumes: 50,000 input tokens (80% of which can hit the cache) and 10,000 output tokens. Compare two hypothetical pricing plans:

    Plan A: input ¥20/M tokens, cache-hit input ¥1/M tokens, output ¥100/M tokens

    1. Input cost = 10K × 20/1M + 40K × 1/1M = 0.20 + 0.04 = ¥0.24
    2. Output cost = 10K × 100/1M = ¥1.00
    3. Per-task cost ≈ ¥1.24

    Plan B: input ¥10/M tokens, no cache discount, output ¥40/M tokens

    1. Input cost = 50K × 10/1M = ¥0.50
    2. Output cost = 10K × 40/1M = ¥0.40
    3. Per-task cost ≈ ¥0.90

    Although Plan A offers a highly attractive cache price, its high output price makes it more expensive for output-intensive tasks. This shows that price structure must match workload structure: input-heavy, highly repetitive scenarios favor plans with low cache pricing, while output-heavy scenarios should prioritize low output prices.

    4. A Rational View of “Is This Price Increase Justified?”

    It is not uncommon in the industry for a new generation of models to be priced several times higher than the previous one. Its reasonableness can be examined from three angles:

    1. Magnitude of capability gains: If the new model shows significant jumps in benchmarks and real-world task success rates, and reduces retries and task rounds, the cost per unit of “effective output” may not have actually risen;
    2. Competitive benchmarking: Flagship models from leading international providers are generally priced in higher ranges. If the new model remains below comparable international offerings, this is a normal market positioning strategy;
    3. Ecosystem fit: For cost-sensitive, large-scale applications, older-generation or lightweight models remain viable options; higher-priced new models are better suited to critical paths where quality gains are clearly visible.

    From a user’s perspective, however, if a subscription plan’s equivalent-value multiplier is markedly lower than international competitors’, a cost-effectiveness gap persists even when absolute unit prices are low. True product competitiveness comes from the combined optimum of “unit price × consumption × plan multiplier”—an advantage on any single dimension is not a defensible moat.

    5. Practical Cost Optimization Advice for Developers

    1. Build cost monitoring: Record token usage and cost per call at the application layer, aggregate by task type, and establish a cost baseline;
    2. Tiered model routing: Route simple tasks to low-cost lightweight models and reserve flagship models for complex tasks—this can cut overall costs by more than 30%;
    3. Structured prompt design: Stable prefix + dynamic suffix to maximize cache hits;
    4. Limit wasteful output: Use sensible output length constraints and structured output requirements to reduce redundant generation;
    5. Re-evaluate regularly: Model pricing and capabilities iterate quickly. Re-run the benchmark-task cost and quality comparison every quarter.

    Conclusion

    Evaluating LLM pricing is essentially about evaluating the “total cost per unit of effective task output.” All four dimensions—unit price, plan allowance, per-task consumption, and caching leverage—are indispensable. Rather than agonizing over whether a given price increase is “expensive,” developers are better served by building their own benchmark-task evaluation and cost accounting system—one that enables fast, rational decisions in the face of any pricing change.