LLM Inference Cost Breakdown Behind Large Credit Promotions

    A practical breakdown of how LLM inference pricing works, why cache read rates and hit ratios matter more than headline credits, and how to build a cost governance checklist for token-level observability, prefix caching, session affinity, and budget guardrails.

    1. The Phenomenon: Big Credit Numbers, Smaller Usable Capacity

    A coding assistant tool recently raised its monthly developer credits from a little over ten dollars to one hundred, then two hundred, and finally offered a five-hundred-dollar plan. Community reaction shifted from wait-and-see to enthusiasm. But once those credits are converted into real work volume, the conclusion reverses: credits are only a ceiling. What actually determines the experience is the unit price structure, especially the cache read price.

    Promotions like this are not unusual in the industry. There are three common motivations. First, cold start after a new model launches, when real traffic is needed to validate the stability of the inference cluster. Second, marginal cost drops once an in-house inference cluster comes online, making credits a reasonable trade for reputation. Third, limited-time campaigns that accept losses in exchange for a user migration window. Understanding the motivation is what makes the real relationship between credits and cost visible.

    2. Cost Breakdown: What a Single Request Actually Pays For

    Mainstream inference billing usually splits into four parts: input tokens, output tokens, cache writes (creating the cache for the first time), and cache reads (hitting and reusing it). The four prices can differ by one to two orders of magnitude, so looking only at input and output unit prices leads to a serious misjudgment.

    Illustrative unit price comparison (used only to show the order of magnitude, not real quotes):

    1. Model tier Input Output Cache read
    2. Lightweight 0.30 1.20 0.006
    3. Flagship 1.40 4.40 0.26

    Flagship cache reads cost more than forty times the lightweight tier, while input and output are roughly three to four times higher. This means that in coding scenarios with long context and heavily repeated prefixes, cache read fees become the dominant line item, and the flagship tier’s effective cost can end up a full tier above the lightweight one.

    3. Cache Hit Ratio: The Underrated Cost Dividing Line

    Coding workloads have one clear characteristic: system prompts, repository context, tool definitions, and conversation history repeat heavily across consecutive turns. In theory all of it should hit the cache and cost only the very low read price. In practice the hit ratio depends on three factors:

    1. Prefix stability: a single timestamp, random ID, or dynamically concatenated piece of context invalidates the entire prefix.
    2. Cache lifetime: the longer compilation, testing, and human review take, the more likely the cache expires, forcing a rewrite on the next turn.
    3. Routing strategy: if load balancing sends the same session to different instances, the hit ratio drops significantly.

    So whether a model is “expensive” should be judged by effective unit price, not list price:

    1. Effective input cost = input price × (1 - hit ratio) + cache read price × hit ratio
    2. Total cost = effective input cost × input tokens + output price × output tokens + write cost

    When the hit ratio falls from 0.9 to 0.5, the cost gap between flagship and lightweight widens quickly. This is the mathematical root of “five hundred dollars of credits does not last as long as one hundred dollars.”

    4. Self-Hosting and API Forwarding: Where the Discount Comes From

    Cost differences for the same model across access methods come mainly from three places. First, self-hosting allows inference engine optimizations targeted at the model architecture, such as operator fusion, quantization, paged attention, and continuous batching, pushing per-token cost down to a fraction of the official price. Second, in forwarding mode the discount is set upstream, so the platform has limited room to negotiate. Third, self-hosting means taking on cache consistency and session affinity yourself; if the architecture is unfriendly to long-prefix reuse, cache cost cannot come down, and long sessions get billed repeatedly after expiry.

    Practical advice: treat “support for stable prefix caching and session affinity” as a hard selection criterion. It often matters more than leaderboard ranking.

    5. Selection Cannot Rely on Capability Leaderboards Alone

    During promotions a mismatch often appears: high credits but a low ranking. The reasons are usually three. Missing multimodal capability leaves some tasks unserviceable. The capability gap versus the lightweight tier is too small to justify the price difference. Free or low-cost alternatives divert traffic. The rational approach is to tier by task:

    • High-frequency, low-complexity tasks (completion, formatting, single-file edits) go to the lightweight tier.
    • Long-context, cross-file refactoring goes to a cache-friendly tier with a large context window.
    • Multimodal and very long document tasks are evaluated separately, not lumped in with text-only tiers.

    6. An Actionable Cost Governance Checklist

    1. Build token-level observability: track input, output, cache writes, and cache reads separately, aggregated by session.
    2. Monitor hit ratio and cache expiry rate, with alert thresholds.
    3. Stabilize the prefix: push dynamic content to the end and version prompt templates.
    4. Enforce session affinity: pin the same session to one instance to reduce cache invalidation.
    5. Add budget guardrails: set credit, rate, and per-session limits to keep long tasks from running away.
    6. Use canary releases and fallback: validate a new model with small traffic first and keep a backup path.

    7. Conclusion

    Large credits are a marketing signal, not a cost conclusion. What developers really need is the ability to convert list price into effective unit price: only by seeing through cache structure, hit ratio, and access method can you tell how long a credit allotment will actually last. For platform providers, the key to retaining traffic is driving down cache cost and making stability solid. For consumers, the long-term answer is a cost system that is observable, budgetable, and reversible.