How Cache Weights Change LLM Subscription Cost Estimates

    List prices and advertised token quotas often miss real LLM API costs because cache hits, fresh input, and output consume credits at very different rates. This article explains reverse-engineering opaque quota systems, why ideal cache-hit mixes rarely hold, and how to build a workload-weighted cost model for fairer plan comparisons.

    Why list prices rarely match real cost

    When choosing an LLM API or subscription, many developers start with published prices per million tokens or with how many tokens a plan claims to cover. Actual use often diverges in two ways:

    • Theoretical capacity far exceeds experience: a plan advertised for billions of tokens can run out after a few days of heavy use.
    • Plan rankings reverse under real tasks: A looks cheaper on sticker price, but B is cheaper on the work you actually run.

    The core issue is that token types burn quota at very different rates, and the mix in real traffic rarely matches the mix used in marketing math.

    Hidden quota systems and reverse-engineering

    Many subscriptions do not publish internal debit rules. They use an opaque “credits/quota” meter. Analysts have reverse-engineered those rates with controlled experiments; the method is worth copying.

    2.1 Isolate one token type at a time

    UIs often show only rounded quota percentages, so you need a stronger signal:

    1. Cache reads: write a large fixed context, then reuse it on later requests.
    2. Cache misses (fresh input): change content every request so nothing hits cache.
    3. Output: force long completions and measure output debit alone.
    4. Multi-band sampling: record how many tokens it takes for quota to move from 17% to 18% and 18% to 19%; average several full bands to reduce rounding error.

    2.2 From debit rates to plan capacity

    After you have per-million-token debit rates for each type, apply weights from real workloads, not guesses. A typical coding-assistant mix (illustrative) looks like:

    1. Cache-hit input: ~97%
    2. Fresh input: ~2.5%
    3. Output: ~0.5%

    Weighted rates yield a theoretical token total under that mix. Third-party studies have used this to claim large gaps in value across flagship plans; the method is reproducible.

    The trap: the ideal mix is almost never real

    “97% cache-hit input” assumes nearly every request reuses a previously written full context. That can hold in long, continuous batch jobs. In practice:

    • Task switching invalidates cache: a new request or a pause expires context; fresh input spikes.
    • Cache writes cost extra: first writes after a miss often debit at a higher rate.
    • Output share is understated: refactors and debugging produce far more than 0.5% output.
    • Turns and corrections: replayed inputs from back-and-forth debugging do not always hit cache.

    Think of EV range: 500 km is a best-case figure; stop-and-go with climate control might be under 350 km. Capacity reverse-engineered from an ideal mix is an upper bound, not a buying number.

    Build your own cost model

    Prefer a simple personal model over vendor or third-party headlines.

    Step 1: Measure your mix. Coding tools often show per-request token breakdown. Log cache read, fresh input, cache write, and output over a period and compute shares.

    Step 2: Probe debit rates. For hidden quota, repeat a fixed test prompt and record marginal quota burn. For published APIs, use the price table.

    Step 3: Weighted “effective cost per million tokens.”

    1. # Illustrative: effective cost from your mix
    2. weights = {
    3. "cache_read": 0.80, # replace with your measured shares
    4. "fresh_input": 0.17,
    5. "cache_write": 0.02,
    6. "output": 0.01,
    7. }
    8. rates = {
    9. "cache_read": 0.4, # price or inferred quota burn per million tokens
    10. "fresh_input": 4.0,
    11. "cache_write": 8.0,
    12. "output": 16.0,
    13. }
    14. effective = sum(weights[k] * rates[k] for k in weights)
    15. print(f"Effective cost: {effective:.3f} / million tokens")

    Step 4: Compare on task cost, not unit price. Plug in tokens for a typical job (for example a mid-size feature iteration) and compare cost per completed task.

    Practical buying takeaways

    1. In coding, cache hit rate is the main cost driver. The same model can differ by multiples depending on stable context and batched work.
    2. Treat “theoretical token capacity” with caution. If you see “X currency for XX billion tokens,” ask what cache-hit rate that assumes.
    3. Local or regional subscriptions are not automatically cheaper. Token pricing and task-equivalent cost vary widely; some hidden rates are worse than they look—measure each plan.
    4. Productization matters. Cloud platforms (for example Baidu AI Cloud and other vendors with a full model-service stack) often expose cache billing, alerts, and usage analytics more clearly, turning hidden cost into a visible bill.
    5. Findings go stale. Models and prices move fast; rerun your mix and model periodically.

    Summary

    Value a subscription with debit reverse-engineering plus real workload weights, not advertised theoretical capacity. Cache hit rate, task structure, and output share largely set what you pay. Half a day of logging and a simple weighted model is more useful than comparing marketing numbers.