Reverse-Engineering LLM Subscription Quotas: How to Calculate the True Cost per Million Tokens
This article explains how to reverse-engineer the hidden quota and billing structure behind subscription plans for LLM coding assistants. It outlines a controlled-variable method for isolating cache-read, cache-miss input, and output token costs; shows how to average across integer quota steps to reduce rounding error; and explains how workload mix and cache-hit-rate assumptions affect the effective cost per million tokens. It also compares subscription and pay-as-you-go pricing for different usage patterns.
1. Background: Why Subscription Plans Are a Black Box
As LLM coding assistants become daily tools for developers, vendors increasingly offer monthly subscription plans. Unlike pay-as-you-go pricing, where each million tokens has a transparent price, subscription plans often show only an abstract quota percentage while hiding the billing details behind it:
- The interface displays only integer percentages, making it difficult to convert quota usage directly into token consumption.
- Different token types—cache-hit input, cache-miss input, and output—carry different billing weights.
- Under different task structures, the actual number of tokens a plan can handle can vary significantly.
This raises the core question of this article: How can we scientifically reverse-engineer the hidden billing system behind a subscription plan and evaluate whether it is actually worth the price?
2. Methodology: Breaking Down the Hidden Billing System with Controlled Variables
A rigorous evaluation approach essentially turns the black-box system into measurable variables and calibrates the billing rate for each one. The process has three steps.
1. Single-Variable Consumption Experiments
Design requests so that each request heavily consumes only one type of token:
- Measure cache hits: First write a large fixed context to establish a cache, then repeatedly send requests with the same context so that most input goes through the cache-read path.
- Measure cache-miss input: Change the context on every request to deliberately avoid cache hits.
- Measure output: Ask the model to generate sufficiently long output while keeping the input share as small as possible.
This isolates the billing contribution of each token type.
2. Average Across Integer Quota Steps
Because the interface shows only integer percentages, a single observation has too much error. A better approach is to run a large number of requests continuously and record the cumulative token consumption when quota moves from 17% to 18%, from 18% to 19%, and so on:
Example recording method:Interval [17% -> 18%]: cache_read tokens consumed ≈ 42,100,000Interval [18% -> 19%]: cache_read tokens consumed ≈ 41,800,000Interval [19% -> 20%]: cache_read tokens consumed ≈ 42,300,000-> Average per 1% quota ≈ 42,070,000 cache_read tokens-> Per 100% quota ≈ 4.2 billion cache_read tokens
Averaging over multiple complete intervals significantly dilutes rounding error and produces a key metric: how much quota percentage is consumed per million tokens of a given type.
3. Weight by Real Workload
A standalone billing rate is not meaningful unless it is placed back into a real usage scenario. For a typical intelligent coding workload, the share of the four token categories is roughly as follows:
| Token Type | Typical Share | Relative Billing Weight |
|---|---|---|
| Cache-hit input | About 97% | Extremely low |
| Cache-miss input | About 2.5% | Medium |
| Model output | About 0.5% | Highest |
By weighting the billing rate of each token type according to these shares and summing the results, we can estimate how many tokens the plan can roughly handle in actual use. That estimate can then be converted into an equivalent “cost per million tokens” and compared side by side with pay-as-you-go API pricing.
3. Key Trap: The Cache-Hit-Rate Assumption Drives the Conclusion
This measurement method has one highly sensitive parameter: cache hit rate. The 97% assumption above means that for every 1 million tokens processed, 970,000 come from cache reads. This is an ideal scenario that is extremely cache-friendly, similar to a coding agent working continuously in the same codebase context for a long time.
Real-world usage is often less ideal:
- Context switches between tasks frequently invalidate the cache.
- Caches usually have a time-to-live limit, so intermittent usage causes many cache entries to expire.
- In long sessions or parallel multi-project work, the cache share fluctuates dynamically.
A useful analogy is the range of an electric vehicle: a rated 500 km is a theoretical figure under one continuous, unloaded, constant-speed, low-drag run. In real daily driving with stops and starts, air conditioning, and mountain roads, it may not even reach 350 km. The “XX billion tokens available” figure in a subscription plan’s marketing is often exactly that theoretical range.
Therefore, any plan comparison based on a single number should be treated with caution:
- When you see a claim of extremely high token capacity, first confirm what cache hit rate it assumes.
- Re-weight the estimate using your own real workload structure—how much output you generate and how often context is reused.
- For intermittent and multitasking users, the actual equivalent quota may be only half the theoretical value or even lower.
4. Pay-as-You-Go vs. Subscription: Choosing the Better Deal
Once the hidden billing system is understood, the choice can be more rational:
- Heavy cache-friendly users: For scenarios with long working sessions in the same project context and a low output share, subscriptions often benefit from cache efficiency, and the equivalent unit price may be significantly lower than pay-as-you-go.
- Output-heavy or multitasking users: Output tokens have the highest billing weight, and task switching fragments the cache. The actual equivalent cost of a subscription plan may be higher than expected, making pay-as-you-go more transparent and controllable.
- Users who prioritize observability: Pay-as-you-go bills naturally provide usage details, making cost attribution and budget control easier. Subscription percentage meters make fine-grained cost analysis almost impossible.
- Enterprise procurement perspective: Rather than comparing “theoretical token capacity,” use the controlled-variable method described here to run a test against the team’s real workload and obtain the equivalent unit price for your own scenario.
5. Conclusion
The hidden billing system behind subscription plans is not unmeasurable. Through a three-step method—“single-variable consumption + averaging across quota steps + real-workload weighting”—an abstract percentage quota can be translated into concrete token billing rates. But beware: vendor claims about capacity are usually based on very high cache-hit-rate assumptions and may differ greatly from real usage.
Whether pricing is based on tokens or packaged by task, the right way to evaluate the cost-effectiveness of any LLM service is: first understand the billing structure, then test it in a way that matches your real workload, and only then compare prices. A theoretical range may look good, but how far it can actually go still has to be tested on the road.
