How LLM Coding Plans Bill Tokens: Reverse-Engineering Hidden Credit Rates and True Cost

    AI coding subscriptions often show only a remaining percentage, while the actual token deduction is governed by an opaque credit/quota system. This article explains a reproducible method for reverse-engineering those hidden rates: isolate each token type with controlled requests, sample consumption across integer-percentage intervals, and weight the measured rates by real coding workload. It also examines why theoretical capacity estimates based on a 97% cache-hit workload can be misleading, and provides practical criteria for comparing coding plans—workload profile, actual cache behavior, billing constraints, and effective cost per million tokens.

    Introduction: The Hidden Meter Behind the Price Tag

    AI-powered coding tools have become mainstream, and subscription plans are now the dominant pricing model. Users pay a monthly fee and receive a certain amount of model-call allowance. However, almost no vendor directly states how many tokens a plan includes. Instead, the subscription is expressed in an internal credit/quota system, and the interface only shows a remaining percentage; the deduction rules stay in the background.

    This creates a practical question: Which plan is actually more cost-effective? Why can one domestic coding plan price itself against international flagship models? To answer that, you have to open the black-box billing mechanism and infer the real deduction logic with repeatable experiments.

    1. Reverse Engineering the Hidden Deduction Rate

    A rigorous experiment can be built in four steps.

    Step 1: Build Single-Variable Requests

    Design requests so that each one consumes mostly one type of token:

    • Cache read: first write a large fixed context, then reuse that context in subsequent requests.
    • Fresh input: send completely new content in every request, so the cache cannot be used.
    • Output: use the prompt to force a long generated response, making output tokens dominate the request.

    This isolates the consumption of each token category.

    Step 2: Use Integer-Percentage Interval Sampling

    Because the quota UI only displays integer percentages, one request cannot tell you exactly how much was deducted. Send a series of identical requests, then monitor when the displayed value moves from 17% to 18%, from 18% to 19%, and so on. Count how many tokens were sent between these boundaries. Each complete interval is a measuring tick; average several intervals to eliminate boundary-rounding errors.

    Step 3: Derive Category-Level Deduction Rates

    For each token type, calculate how many percentage points of the subscription quota are consumed per 1 million tokens. After measuring fresh input, cache write, cache read, and model output, the hidden credit system is effectively reconstructed.

    Step 4: Weight by Realistic Workload

    In a real coding-assistant workload, the four token types are not evenly distributed. Once you know the typical share of each type, apply those shares to the measured deduction rates and calculate the plan’s realistic token capacity.

    This method does not depend on any vendor-published formula. It is based on repeated, reproducible requests. In tests using this approach, top-tier plans from some international vendors differed by several times in effective quota; the gaps in effective token value were much larger than the sticker prices suggested.

    2. The Trap of Theoretical Capacity Estimates: Overly Optimistic Cache Assumptions

    Another common way to compare plans is to calculate a plan’s theoretical token capacity using a fixed cache-hit rate and a particular workload mix. One widely used mix looks like this:

    Token type Assumed share
    Cache-hit input (cache read) 97%
    Cache-miss input (fresh input) 2.5%
    Model output 0.5%

    Under this mix, for every 1 million tokens processed, 970,000 are cache reads and only 5,000 are model output. This is a very billing-friendly coding scenario, because cache reads are usually much cheaper than fresh input and output.

    Real usage is rarely this favorable:

    • Task mix varies. Long-context repository Q&A and short completions, refactoring, or debugging conversations place very different demands on input, cache, and output.
    • Cache expires. Context caches have TTLs; cross-session or cross-day tasks often need to write the cache again, and cache writes frequently bill at a higher rate.
    • Output share is underestimated. Code generation, documentation, and batch refactoring can push output well above 0.5%.

    Think of an EV range label: 500 km in ideal lab conditions, but stop-and-go traffic, air conditioning, or cold weather may leave you under 350 km. The gap between theoretical capacity and actual usable capacity is often 30% or more.

    3. A Rational Way to Evaluate Coding Subscription Plans

    Use these principles to compare any AI coding plan:

    1. Know your own workload profile. Measure your actual shares of fresh input, cache read, cache write, and output, then apply the target plan’s deduction model. Do not start from a vendor’s or third-party “theoretical capacity” number.

    2. Be wary of single-metric comparisons. Whether a plan is quoted per token or per task, compare it under the same workload assumptions. Highlighting a favorable cache-hit assumption is basically marketing.

    3. Check all billing dimensions. Beyond model calls, consider context window, concurrency limits, rate limits, and tool-call constraints. These affect how much work you can actually get done.

    4. Run a small reproducible experiment. Use interval sampling: send a few dozen categorized requests, watch the percentage changes, and build your own picture of the deduction logic. The cost is low; the information is high.

    5. Judge price objectively. Combine per-token unit pricing and task-level pricing. Many plans are not cheap once normalized; the difference is in how much cost is hidden. Use the effective cost per million tokens under your own workload as the anchor, not list price or marketing copy.

    Conclusion

    The pricing battle over coding subscriptions looks like a simple comparison of brand and price, but it is actually a complex problem shaped by hidden credit systems, workload mix, and cache behavior. By learning to probe token categories and weight them by real usage, and by understanding where theoretical estimates diverge from reality, developers can cut through marketing and choose based on their own cost structure.