How to Measure the Real Token Cost of Coding Subscriptions
This article explains why the remaining-quota percentage in coding assistant subscriptions does not show the true cost of each token type. It describes how to measure per-category consumption rates with controlled requests, weight those rates by your actual workload mix, sample usage by task type, and use the results to compare plans on a like-for-like basis.
Subscription-based coding assistants combine several kinds of tokens into one quota, and the interface usually shows only a remaining percentage. That number tells you how much is left, but it does not reveal how much each token type costs against the quota. Comparing list prices or official throughput examples can mistake the upper limit of an ideal workload for what you can actually use each day. A more reliable approach is to break the quota system into observable consumption rates and then apply those rates to the token structure of your real tasks.
A quota percentage cannot be used as a unit price
Coding interactions involve at least four types of metered tokens: cache reads, uncached new input, cache writes, and model output. Their unit prices usually differ. Cache reads are often the cheapest because the server reuses context it has already processed. Uncached input and cache writes require the context to be processed again, so they cost more. Output is generated one token at a time, and its unit cost is usually higher than that of cache reads. When the interface collapses these into a single percentage, the user sees a blended result rather than per-category prices.
For this reason, “how many tokens a plan can handle” is not a fixed number. The same 1% of quota could correspond to a large amount of cache hits, or to a shorter stretch of new context followed by a long output. When you compare two subscriptions, or one subscription across different months, you must first state the token structure. Otherwise, you are comparing different workloads rather than the same product.
Working backward to per-category consumption rates with single-variable requests
To estimate hidden billing rules, each experiment should change mainly one type of token while holding the others as steady as possible. The method has four steps.
First, prepare a stable prefix. To measure cache reads, write a context that is long enough and will not change afterward, then reuse the same prefix several times while changing only a very short question. The quota change should then come mainly from cache reads.
Second, to measure uncached input, change the prefix content on every request so that nothing hits the existing cache, and keep the output as short as possible. The quota drop then comes mainly from the new input.
Third, to measure cache writes, observe the first request that places cacheable context into the cache, not the requests that reuse it. If the platform bills writes separately from reads, the quota drop for the first request will differ noticeably from later requests. Do not merge them into a single “input price.”
Fourth, to measure output, hold the input fixed and lengthen the response to a scale where the difference is clear. For example, ask for a numbered list with sections, and limit repetition of the input. This raises the share of output tokens while keeping input changes under control.
Percentages are usually shown as whole numbers, so the quota drop from a single request may be less than 1%, and reading it directly introduces quantization error. A practical approach is to send the same type of request repeatedly and record the full integer intervals the quota passes through, such as 17% to 18% or 18% to 19%. Sum the tokens of each category within each interval, then average across several intervals. Each interval should span at least 1 percentage point, and you should not run other tasks during the experiment, since unrelated usage would contaminate the interval.
A sample record could look like this:
Interval: 82% -> 81%Requests: Ncache_read / fresh_input / cache_write / outputConsumption rate = total tokens of this category / 1 percentage point
After many repetitions, you get an estimate of roughly how much quota each category of token consumes per million tokens. This is an empirical consumption rate, not a vendor contract price. It depends on account tier, region, time of day, whether a promotion applies, and how the platform rounds its metering. Treat it as an estimate for your own account during the experiment window only.
Weighting by real workloads, not ideal cache hit rates
A per-category consumption rate does not yet give plan capacity. Capacity depends on the mix of the four token types in your workload. Let r, f, w, and o be the numbers of cache-read, fresh-input, cache-write, and output tokens per million mixed tokens, and let Cr, Cf, Cw, and Co be their consumption rates. Then:
Quota consumed per million mixed tokens ≈ r·Cr + f·Cf + w·Cw + o·Co
Divide the plan’s total quota by this figure to get the theoretical token capacity for that workload. The denominator is the specific mix, so the capacity must be recalculated whenever the mix changes.
Some published estimates assume very high cache hit rates. For example, most tokens come from cache reads, fresh input is minimal, and output accounts for only a few thousandths of the total. This resembles a coding session that runs for a long time, keeps its context stable, and receives short answers, a case that favors cache reads heavily. This assumption answers the question “if the quota is used up and the hit structure stays this good all the time, what is the theoretical upper limit?” It does not answer “how much can I do in a day if I just use the tool freely?”
Real usage will deviate from these assumptions in several ways:
- Task switches change the repository, files, and rules, which invalidates the prefix and lowers the share of cache reads.
- Expired context, session rebuilds, or changes to rules or tool definitions turn reads back into writes or uncached input.
- Multiple rounds of fixing mistakes, explaining plans, or generating tests raise the output share well above the assumed few thousandths.
- Tool loops repeatedly add search results and terminal logs to the context, so new input and writes both grow.
An analogy to driving range helps. The distance a car travels at a steady, light load on a stable road does not represent the distance after frequent stops, short trips, and changing loads. Subscriptions work the same way. Theoretical capacity is a reference for the upper limit. Average daily usable volume is usually lower, and it varies from team to team.
Sampling your own traces instead of relying on one ratio
Sample each task type separately rather than blending all of your account’s usage into one ratio. At minimum, separate small edits and completions, cross-file refactoring, code explanation, test generation, and long-log troubleshooting. For each category, record the number of requests, the four token types, whether the session was reused, and whether the cache was invalidated partway through. Cover complete working days instead of picking out one long session.
Once you have per-category consumption rates, insert each task’s token vector into the formula to get the quota consumed per million tokens for that task type, then multiply by the weekly token volume for that type. This shows which kinds of work consume most of the quota. A common pattern is that completions look frequent but contribute little to the bill, because they hit the cache often and produce short output. The main sources of quota drain are usually a small number of long-output tasks or troubleshooting sessions that repeatedly rebuild context.
If the platform does not report per-category tokens and only shows total input, total output, and whether the cache was hit, the experiment must use a simpler method. Estimate the input side with a controlled prefix length, estimate the output side with countable response lengths, and clearly label the uncertainty. Do not treat missing fields as if they were exact unit prices.
Controlling structure, not list prices
Without changing the vendor’s pricing, developers can change the structure of their tokens.
Control the context budget. Place stable rules and project conventions in a reusable prefix, and place volatile file snippets, error messages, and retrieval results toward the end. If the prefix is rewritten often, cache writes will recur. Do not paste long documents in full every time if they can be referenced externally.
Control session lifetime. Reuse a session for a single chain of related work when possible. Start a new session when the goal changes, so unrelated history does not carry forward. Otherwise, every read pays for expired context.
Control output length. When a patch, diff, or checklist will do, do not ask for a long restatement. As the output share rises, quota becomes more sensitive to each token than it is to the same number of cache reads.
Control tool returns. Truncate, deduplicate, and keep only the fragments needed to locate a problem. Sending an entire build log to the model often raises both new input and later cache writes.
These practices do not make the billing rules cheaper. They do shift the workload from high writes and high output toward high reads and short output, so the same quota gets closer to its theoretical capacity.
Three things to check when comparing subscriptions
Comparing only monthly fees, or only the token limit at one ideal hit rate, can lead to the opposite conclusion. Check at least three things: whether the per-category consumption rates are stable, where your own task vectors fall, and whether the service slows down or stops after the quota runs out. A plan with a large capacity in a high-hit-rate experiment may shrink considerably if your work consists mainly of short sessions and long explanations. A plan with a higher list price but lower output cost may be cheaper for your vector.
Also avoid extending one experiment into a long-term conclusion. Quantization of whole-number percentages, differences in length between experimental and production requests, and changes to cache policies all alter consumption rates. Record the time window, prefix length, and whether the account was used exclusively during the experiment, and retest after any pricing or policy change. When budgeting for a team, use the weighted results from task buckets, use the ideal hit rate only as an upper bound, and do not present it as guaranteed capacity.
Converting percentages back into per-category consumption rates and then weighting them by your own token structure turns subscription comparison from a marketing claim into a verifiable cost model. Latency, model capability, and retry failures still need separate evaluation. A quota model only answers how much useful work one subscription can carry under a given usage pattern. It does not replace an assessment of output quality.
