The Hidden Billing Logic of LLM Subscription Plans: A Technical Breakdown
This article explains why comparing LLM subscription plans by their advertised price is often misleading. It breaks down the four token types used in credit-based billing, shows how weighted rates make the same credit percentage correspond to very different token volumes, and outlines a single-variable probing method for estimating hidden rates. It also contrasts theoretical calculations with real development workloads and lists engineering practices for keeping token costs under control.
1. Why Plan-to-Plan Price Comparisons Go Wrong
As AI coding tools and large language model services evolve quickly, subscription plans (monthly billing with an included usage allowance) have become one of the main ways developers access model capabilities. A common debate is this: why does one vendor’s mid-tier plan claim to be priced against another vendor’s flagship plan?
To answer that, you first have to accept a premise: the advertised price of a subscription plan and the capability you can actually use are separated by an opaque allowance conversion system. The “monthly allowance” a user sees is not the same as the “total tokens you can process per month.” The two are connected by an undisclosed weighting function. Ignore that function, and any cross-plan price comparison is roughly like comparing two cars with different fuel-economy measurement standards.
2. The Underlying Mechanism: Four Token Types and Weighted Rates
Mainstream subscription allowance systems typically split requests into four token types, measured separately:
- Cache Read (cache hit input): reuses context that has already been written to cache; lowest unit price.
- Fresh Input (cache miss input): context entering the model for the first time in this request; higher unit price.
- Cache Write: writing context into cache for the first time; usually more expensive than ordinary input.
- Output: generated content; highest unit price.
Allowance consumption can be abstracted as:
consumed_credit = Σ (tokens_i × rate_i)rate_output > rate_fresh ≈ rate_cache_write > rate_cache_read
This means the same “allowance percentage” can correspond to token counts that differ by an order of magnitude, depending on the workload structure. The claim that a plan “matches a flagship tier” usually holds only under an ideal workload with a very high cache hit rate and a very low output share.
3. Reverse-Engineering Hidden Rates: The Single-Variable Consumption Experiment
Since the interface usually only shows integer percentages, direct measurement carries large error. The more rigorous industry approach is single-variable isolation plus interval averaging:
- Isolate variables: construct requests that consume one token type in large volume at a time. To measure cache reads, first write a fixed-length context, then reuse it repeatedly; to measure fresh input, change the content each time to avoid cache hits; to measure output, extend the generation length on its own.
- Cross integer boundaries: issue requests continuously and record the cumulative tokens consumed when the allowance jumps from 17% to 18%, and from 18% to 19%.
- Average across multiple intervals: take the mean over several complete percentage intervals to cancel out rounding error and jitter.
- Weighted reconstruction: once you have the four rates, weight them by their share in your real workload to estimate the token volume a plan can roughly support.
Illustrative pseudocode:
def probe_rate(percent_pairs, token_counts):# percent_pairs: [(17, 18), (18, 19), ...]# token_counts: cumulative tokens of one type consumed within each intervalreturn sum(token_counts) / len(percent_pairs) # tokens per 1% creditblended = (r_read * w_read + r_fresh * w_fresh+ r_write * w_write + r_out * w_out)
Note that this method only yields interval approximations. Different time periods, account tiers, and model versions can all introduce deviations, so the results should be treated as an order-of-magnitude judgment rather than a precise quote.
4. The Gap Between Theoretical Estimates and Real Workloads
Some public estimates assume the following share: 97% cache hit input, 2.5% fresh input, 0.5% output. Under this structure, only about five thousand of every million tokens are output, which is an extremely cache-friendly scenario, so the results naturally look impressive.
Real development is not that friendly:
- Task switching changes context, so cache invalidation and expiry happen frequently.
- Long sessions and multi-round refactoring push up the share of fresh input and output.
- Concurrency and rate limits force requests to be split, further lowering the hit rate.
This is similar to the rated range of an electric vehicle: 500 km is a theoretical figure under continuous, unloaded, low-drag, constant-speed conditions; with real stop-and-go driving and frequent starts and stops, it may drop to around 350 km. Use theoretical estimates to understand billing conventions horizontally; verify the real bill with your own workload.
5. Engineering Practice: Bringing Costs Back Under Control
- Keep the context prefix stable: put system prompts, spec documents, and fixed dependency notes at the very front and keep them byte-level stable to maximize cache hits.
- Control context growth: periodically trim history and summarize in segments, instead of carrying the full history every round.
- Split task granularity: break large refactors into small commits to reduce per-request output length and failed retries.
- Build observability: use logging services and monitoring alerts to record each token type’s consumption, cache hit rate, and per-task cost, forming a cost dashboard.
- Set budget guardrails: enforce allowance thresholds and circuit breaking on the client side, downgrading to a lighter model or prompting the user when nearing the limit.
- Establish an evaluation baseline: regress on “cost per unit task” with a fixed task set, rather than only looking at unit price.
6. Conclusion
The “matching price” between subscription plans is essentially a paper comparison under different weighting conventions. What developers really need to master is not any single price sheet but three things: understand the weighting mechanism of the four token types, use single-variable experiments to reverse-engineer the order of magnitude, and continuously account with your own workload. Building these three into your daily engineering workflow is what lets you make rational judgments between a “cheap plan” and a “real bill.”
