LLM API Output Pricing 5x Higher: Billing Structures and Selection Guide

    Recent adjustments to large language model (LLM) API pricing have highlighted a significant cost disparity: output token pricing can be up to five times higher than input token pricing, while cache hit pricing is even lower. This article explores the underlying compute reasons for this pricing structure, breaks down the three-tier billing model with a practical cost estimation formula, compares subscription versus pay-as-you-go strategies, and provides a comprehensive framework for evaluating LLM APIs and optimizing token-level costs.

    LLM API Output Pricing 5x Higher: Billing Structures and Selection Guide

    1. The Pricing Phenomenon: Why Output Unit Price is the Cost Focus

    Recent pricing adjustments to a certain LLM API have sparked discussion: the output side reaches around 100 units per million tokens, the input side is about 20 units, and the cache hit side is merely 1 unit. Based on these figures, the output unit price is roughly five times that of the input, while the cache hit price is about 1/20th of the input and 1/100th of the output. This structure—where output is significantly more expensive than input, and cache hits are extremely cheap—is not an isolated case. It reflects the difference in inference cost distribution across different stages of LLM processing.

    LLM inference is typically divided into two stages: prefill and decode. The prefill stage processes input tokens, allowing matrix operations to run in parallel with high GPU utilization. The decode stage generates tokens autoregressively; producing each token requires reading the KV Cache and model weights, which is limited by memory bandwidth and sequential dependencies, making it difficult to fully parallelize. Consequently, the marginal compute cost of output tokens is significantly higher than that of input tokens. Cache hits utilize prefix KV Cache reuse, skipping redundant prefill calculations, which allows the price to be driven very low.

    For developers, these pricing signals mean three things: first, the cost of output-intensive tasks (long-form generation, code generation, reasoning chain expansion) will be amplified; second, input-intensive tasks (long-document Q&A, Retrieval-Augmented Generation) are relatively manageable; third, the cache hit rate directly determines the floor for input costs. Understanding the billing structure is more important than simply comparing the “price per million tokens.”

    2. Three-Tier Billing Breakdown and Cost Estimation

    Current mainstream pay-as-you-go billing is generally broken down into three dimensions:

    1. Input tokens: The portion entering the model context, including system prompts, conversation history, retrieved snippets, and user queries.
    2. Output tokens: The content generated by the model, including code, structured JSON, explanatory text, and in some scenarios, returned reasoning chains.
    3. Cache hit tokens: The portion that matches a cached prefix, usually billed at a separate low price or deducted from input tokens before pricing.

    A general cost estimation model can be written as:

    Total Cost = Input Price × (Input Tokens - Cache Hit Tokens) + Cache Price × Cache Hit Tokens + Output Price × Output Tokens

    Different platforms may have varying rules for deductions, truncations, and billing for failed requests. Actual billing should always be verified against official documentation. However, the formula above is sufficient to illustrate where the cost levers lie. Below is a pseudo-code demonstration of the estimation logic:

    1. def estimate_cost(input_tokens, output_tokens, cached_tokens,
    2. p_in=20, p_out=100, p_cache=1):
    3. # Prices are per million tokens
    4. billable_input = max(input_tokens - cached_tokens, 0)
    5. cost = (billable_input * p_in
    6. + cached_tokens * p_cache
    7. + output_tokens * p_out) / 1_000_000
    8. return cost
    9. # Example: 100k input tokens, 60k cache hits, 20k output tokens
    10. print(estimate_cost(100_000, 20_000, 60_000))
    11. # Approx. (40000*20 + 60000*1 + 20000*100)/1e6 = 2.86 units

    This example illustrates that cache hits reduce the input cost for 40k tokens from 20 units per million to 1 unit per million, yielding significant savings. However, the 20k output tokens are billed at 100 units per million, making it the largest portion of the total cost at 2 units. Therefore, optimizing output length and increasing cache hit rates must be pursued simultaneously; you cannot focus solely on input-side discounts.

    3. Subscription vs. Pay-as-You-Go: Application Boundaries

    Faced with rising unit prices, the two common paths are subscription and pay-as-you-go. These are not simply “monthly plans are cheaper” or “pay-as-you-go is more flexible,” but rather correspond to different load characteristics.

    Subscription is essentially a pre-paid quota: a fixed monthly fee in exchange for a certain allowance, often accompanied by team sharing, model tier switching, and concurrency quota benefits. The advantages are predictable costs, easier budget management, and potentially lower effective unit prices in stable, high-frequency scenarios. The limitations lie in quota caps, model tier restrictions, overage strategies, and concurrency limits, which must be verified item by item. It is suitable for daily coding, fixed team collaboration, and scenarios with predictable loads and stable monthly consumption.

    Pay-as-you-go is essentially post-paid: you pay for what you use. It offers high elasticity and is suitable for low-frequency calls, sudden spikes, prototype validation, and multi-solution comparisons. The risk is that costs grow linearly with usage; output-intensive scenarios can easily exceed budgets, and failed retries or truncated replays may incur additional charges. It is suitable for experimental phases, long-tail businesses, and scenarios where peak loads are difficult to estimate.

    When making a selection, consider the following decision dimensions:

    • Monthly token consumption: Below the subscription threshold, pay-as-you-go is more flexible; above the threshold with stable usage, subscription is usually more economical.
    • Output ratio: The higher the proportion of output tokens, the more attention must be paid to whether the subscription quota is metered by request count or tokens, and the unit price after exceeding the quota.
    • Cache hit rate: A high cache hit rate significantly alters the effective input cost for pay-as-you-go. Verify whether subscription quota consumption also benefits from cache discounts.
    • SLA and throttling: Subscriptions usually have Service Level Agreements; for pay-as-you-go, confirm throttling thresholds, retry billing, and failed request handling rules.
    • Hybrid strategy: Use subscriptions as a baseline for core business and route overflow peaks to pay-as-you-go; use pay-as-you-go batch processing for non-real-time tasks to avoid paying for idle quotas.

    4. Cost Optimization Practice Checklist

    In a high output unit price environment, cost control should be implemented across three levels: prompt structure, invocation strategy, and monitoring systems.

    1. Stabilize prefixes to increase cache hit rates. Place system instructions, role settings, few-shot examples, and fixed knowledge snippets at the beginning of the prompt, keeping them byte-level stable. Postpone variable content like user queries, timestamps, and random IDs. Avoid inserting dynamic fields into the prefix, as this will drastically lower the cache hit rate. For long-document Q&A, fix the document slicing order and delimiters to reduce prefix variations.

    2. Control output length. Explicitly set max_tokens; ask the model to provide conclusions before explanations; limit file scope and function signatures for code generation; use JSON Schema to constrain structured output fields; and avoid asking the model to repeat the input or generate redundant transitions. For reasoning chain scenarios, request only the final answer or a summary of the reasoning to reduce unnecessary output tokens.

    3. Route by task layers. Use lightweight models for simple classification, extraction, and rewriting; use flagship models for complex reasoning and long-horizon planning. If a subscription package includes multiple model tiers, route by task type to avoid using flagship models for low-complexity requests.

    4. Batching and asynchronous processing. Merge non-real-time task requests and use batch interfaces to lower unit overhead; set exponential backoff retries to prevent failed requests from repeatedly incurring charges; summarize or retrieve-truncate excessively long inputs before sending them to the model.

    5. Establish token-level monitoring. Track input, output, and cache hit tokens by business line, tenant, and model dimensions. Set daily budget alerts and anomaly detection; regularly audit prompts for redundant content, cleaning up repeated system prompts and expired conversation history.

    6. Budget buffers and rule confirmation. Pricing may adjust with compute costs, so budgets should include a buffer for increases. Before signing, confirm cache determination rules, context truncation rules, failed request billing rules, and overage unit prices to avoid bill surprises.

    5. Selection Evaluation Framework

    Do not look only at the nominal unit price; instead, calculate the “effective cost.” A simplified evaluation formula is:

    Effective Input Cost = Input Price × (1 - Cache Hit Rate) + Cache Price × Cache Hit Rate

    Per-Request Cost ≈ Effective Input Cost × Average Input Tokens + Output Price × Average Output Tokens

    Monthly Cost ≈ Per-Request Cost × Monthly Request Volume

    Use this framework to compare subscription and pay-as-you-go: subscription turns monthly cost into a fixed value, but you must check whether the quota covers your actual token structure; pay-as-you-go retains elasticity but requires incorporating cache hit rate and output length into your forecasts. Beyond pricing, evaluate whether the context window meets long-document or large-repository scenarios, whether model capabilities cover target tasks, whether billing transparency is sufficient, whether throttling and concurrency meet business peaks, and whether data compliance and log retention meet standards.

    6. Conclusion

    Output unit pricing reaching five times that of input is not simply a “price hike,” but rather the manifestation of underlying inference cost structures in billing. The sequential compute consumption during the decode stage dictates that output tokens are more expensive, while cache hits serve as pricing compensation for prefill reuse. Developers should establish a token-level cost model, prioritizing cache hit rate improvement, output length compression, and model routing by task. Subscription and pay-as-you-go are not an either-or choice but a combination based on load characteristics. Treating billing rules as a part of technical selection is the only way to maintain cost control and sustainable solutions in a high unit price environment.