How Hidden LLM Subscription Quotas Work: A Token-Based Measurement Method

    This article explains why monthly subscriptions with hidden token quotas are hard to compare across AI coding tools, and how to make those quotas visible through controlled experiments. It covers a single-token-type reverse-engineering method for measuring cache reads, uncached inputs, cache writes, and outputs, techniques for removing rounding error from integer percentage readouts, and how to weight the four rates against real workloads. It also outlines why theoretical limits diverge from actual usage and suggests a more robust evaluation framework based on per-task cost, cache friendliness, rate limits, and observability.

    1. Why Subscription Pricing Is Hard to Compare

    Most mainstream AI coding tools today use a “monthly subscription + hidden quota” billing model. What users see is a fixed monthly fee and a vague usage promise, but what actually determines the experience is the undisclosed conversion rule behind that quota. Vendors differ in how they price the same class of capability, in their caching strategies, and in their quota refresh cycles. As a result, “how much code can I write for the same monthly fee” is nearly impossible to answer from the marketing page alone.

    The problem is more complex because model calls are not a single cost. They involve at least four types of resource consumption: cached input, uncached input, cache writes, and model output. Their unit costs differ significantly, so comparing tools by “total tokens” alone often produces misleading conclusions. A verifiable measurement method is needed to make the hidden quota explicit.

    2. Core Method: Reverse-Engineering from a Single Token Type

    2.1 The Basic Idea

    Since vendors do not publish the conversion rates, the approach is to force those rates out through controlled experiments. The key design principle is to make each request consume as few token types as possible, so total consumption approximates the consumption of a single token type.

    • Measuring cache reads: first write a long, fixed context to populate the cache, then repeatedly reuse the same prefix. Nearly all additional consumption then falls on the cache-hit portion.
    • Measuring uncached input: change the context content on every request so the cache cannot be hit, and observe how fast the quota drops.
    • Measuring output: keep the input fixed and only extend the generation length, concentrating the increase on the output side.
    • Measuring cache writes: submit a long context for the first time, before any reuse occurs; consumption is then attributed mainly to the write step.

    The essence of this design is variable isolation: it breaks a mixed cost into observable single-variable experiments, a classic application of controlled variables.

    2.2 Eliminating Rounding Error

    Most consoles display only integer percentages, and a single request often changes the reading by less than one percentage point, making direct readings extremely noisy. A practical workaround is to run a large number of consecutive requests and record the tokens consumed as the percentage crosses from 17% to 18%, and from 18% to 19%. Averaging across multiple complete intervals spreads out the rounding error.

    Illustrative pseudocode:

    1. # Record tokens consumed across integer intervals to remove percentage rounding error
    2. samples = []
    3. for interval in range(start_pct, end_pct):
    4. tokens_before = read_usage()
    5. run_requests_until_percent_increases()
    6. tokens_after = read_usage()
    7. samples.append(tokens_after - tokens_before)
    8. rate_per_million = average(samples) * 100 # million tokens per 1% of quota

    The more intervals and the more complete the samples, the more stable the estimate. If conditions allow, repeat the experiment over multiple rounds and take the median to filter out occasional jitter.

    2.3 Weighted Reconstruction After Measuring the Four Rates

    Once you have the quota cost per million tokens for each of the four token types, weight them by their proportions in a real workload to estimate roughly how many tokens the plan can support. A common analytical assumption is a structure that is extremely favorable to caching—for example, 97% cache-hit input, 2.5% uncached input, and 0.5% output. Under that assumption, only about five thousand of every million tokens are output, which represents a coding scenario that is highly cache-friendly.

    3. Why Theoretical Values Diverge from Actual Experience

    The weighted result is essentially a “theoretical upper bound under ideal conditions,” and it differs noticeably from everyday usage for four reasons:

    1. Unstable workload structure. Task type determines the input-to-output ratio, and long-form generation, refactoring, and cross-file analysis differ widely.
    2. Caches expire. Changes to the context window, session switches, or long gaps can invalidate the cache, forcing a rewrite and raising costs.
    3. Cache hit rates fluctuate. Frequently switching projects or branches significantly reduces reuse.
    4. Quota refresh and accounting differences. Refresh cycles and whether quota is shared across projects both affect the subjective experience.

    This is similar to the rated range of an electric vehicle: 500 kilometers is a theoretical figure under continuous, unloaded, low-drag, constant-speed conditions, while real stop-and-go driving may leave only a little over 300 kilometers. The value of measurement is not an absolutely precise number, but a comparable relative scale.

    4. A More Robust Evaluation Framework

    Rather than relying on a single metric, build your own evaluation table across four dimensions:

    • Cost per task: measure by “completing one typical task” instead of pricing by tokens.
    • Cache friendliness: check whether the tool reliably reuses prefixes and supports long-context continuous sessions.
    • Peak capacity and rate limiting: look at concurrency limits and availability during peak hours.
    • Observability: check whether fine-grained usage details are available for verification and optimization.

    Engineering teams can also reduce costs proactively: keep stable system prompts and tool definitions in the prefix, turn large reference material into reusable context, split long tasks into cacheable stages, and avoid rewriting context unnecessarily.

    5. Conclusion

    Hidden quotas make subscription plans hard to compare directly, but single-token-type isolation experiments, averaging across integer intervals, and weighting by real workloads can turn invisible costs into quantifiable metrics. It is important to recognize that any theoretical upper bound rests on an ideal cache structure, and the real-world discount is not negligible. For developers and enterprises, the rational approach is to run small-scale tests based on real tasks and make decisions by combining observability and cache friendliness, rather than being led by attractive peak numbers.