Why LLM Subscriptions Seem Cheap: Cache Pricing and the Real Cost of Inference
Many users assume that high token usage under a subscription implies massive subsidies or huge provider profits, but this comparison overlooks how inference costs actually work. This article explains why token counts are not a uniform measure of compute, why coding agents repeatedly resend long context prefixes, and how three distinct types of caching—KV cache, prefix cache, and result cache—affect billing. It also clarifies what "cache tax" really means, builds a practical cost model for API calls, discusses the realistic benefits of speculative decoding, and explains why subscription pricing differs from pay-as-you-go pricing. Practical tips are included to help developers improve cache hit rates, control costs, and evaluate the true cost per successfully completed task.
Why High Token Usage Does Not Mean High Cost
When people evaluate whether an LLM subscription is worthwhile, they often use a simple mental model: multiply the total tokens consumed during the subscription period by the public per-token price of some pay-as-you-go API, then compare that number with the subscription fee. If the difference is tens of times, they conclude the provider is heavily subsidizing users—or, conversely, that the inference business enjoys astonishing profit margins.
Both conclusions skip a critical step: token count is not a uniform unit of compute cost, and the public price is not the underlying cost.
Model inputs may contain documents processed for the first time, or conversation prefixes that have already been computed before. Outputs must be generated step by step, and the compute path for decoding differs from input processing. One million tokens with different compositions can require substantially different compute, memory bandwidth, and cache capacity.
To analyze such bills, you need to distinguish three levels:
- Usage level: How many input, output, and cache-related tokens the system actually records.
- Pricing level: How different token categories are billed, and what quotas and limits the subscription includes.
- Cost level: How much compute, storage, network, and operational overhead the provider actually consumes.
Individual bills, future-dated benchmarking results, and specific multiples from original sources lack independently verifiable evidence and should not be treated as universal truths. What deserves discussion is the underlying technical question: why can a coding agent accumulate extremely high total usage while the actual incremental compute does not necessarily grow in proportion?
Why Coding Agents Keep Resending the Same Content
Traditional Q&A is one question, one answer. A coding agent, by contrast, needs to continuously call tools, read results, revise plans, and re-execute operations when necessary.
A typical task flow looks like this:
- Receive the request and understand project constraints.
- Read relevant files and analyze dependencies.
- Generate a modification plan.
- Submit file changes.
- Run checks and read error messages.
- Adjust the implementation based on results.
- Summarize changes and verification status.
Each model request may carry system instructions, project conventions, user requirements, prior analysis, file snippets, and tool execution results. Subsequent requests usually share a long prefix with earlier ones.
Suppose a task starts with a stable context of 20,000 tokens and adds 1,000 new tokens per turn across 20 turns. If every turn resends the full history, the cumulative input count can be approximated by:
Cumulative input = turns × initial context length + new tokens per turn × turns × (turns − 1) ÷ 2
That gives roughly 590,000 cumulative input tokens. This number is for illustration only; it is not a measured value from any service.
The key point: 590,000 cumulative input tokens do not equal 590,000 independent pieces of new content. A large portion of the input is just resubmitting the existing prefix.
And that is precisely what makes caching valuable.
Distinguishing Three Types of “Cache”
1. KV Cache Within a Single Generation
In attention-based models, previously processed tokens produce keys and values used for subsequent attention computation. Saving these intermediate states avoids recomputing all historical token projections for every newly generated token.
This is commonly called the KV cache.
It primarily solves the problem of recomputing historical states within the same generation pass. However, using the KV cache does not mean that subsequent computation is independent of history length. Generating new tokens may still require accessing the cached data corresponding to a long context, so long contexts continue to impose memory and bandwidth pressure.
2. Prefix Reuse Between Requests
If multiple requests share the same starting content, the server can reuse previously computed prefix states when conditions permit, reducing redundant input preprocessing.
This mechanism is usually called prefix caching or prompt caching. It is technically related to KV cache, but it does not mean that identical sentences in arbitrary requests are automatically reusable.
Actual reuse typically depends on:
- Whether the token sequence of the prefix is identical.
- Whether the model version and related configuration are compatible.
- Whether the cache is still within its validity period.
- Whether the request reaches an execution environment with access to the relevant cache.
- Whether cache isolation, permission, and scheduling policies allow reuse.
In other words, “similar meaning” does not equal “cache hit.” Even a single dynamic field that changes early in the prompt can break the reuse of a long downstream prefix.
3. Final Result Caching
Another approach is to store the complete answer or tool execution result directly, so a hit does not require regeneration.
This works well for stable results with clear input conditions, but it must handle data drift, permission differences, and expiration issues. Result caching is not the same as prefix caching: the former reuses an answer, while the latter reuses partial compute state and the model still needs to generate further.
What Does “Cache Tax” Actually Mean
“Cache tax” is not a strict technical term. It typically expresses a feeling: content has already been submitted, so why does resending it still cost money?
From an engineering perspective, cache hits can indeed significantly reduce the computational cost of repetitive input processing. But cache is not a zero-cost resource.
The server may still incur:
- Accelerator memory or other storage occupied by cached states.
- Cache lookup, indexing, and lifecycle management.
- State loading, transfer, and memory bandwidth consumption.
- Scheduling constraints introduced to improve hit rates.
- Multi-tenant isolation, permission checks, and data protection.
- Resource reservation and availability guarantees during peak periods.
So “reading from cache is cheaper than recomputing” has a reasonable technical basis, but “reading from cache is nearly free” does not hold across all systems and workloads.
Similarly, a cache-read unit price higher than some underlying resource cost does not by itself prove that pricing is unreasonable. Service prices also need to cover R&D, redundancy, operations, and risk. Conversely, providers cannot justify any price simply by pointing to the existence of a cache.
The more useful questions are: Did the cache actually hit? Was the discount transparent? Did the total task cost go down?
Building a More Reliable Cost Model
For pay-as-you-go calls, start with a simplified fee model:
Total cost = uncached input tokens × uncached input price
+ cache write tokens × cache write price
+ cache read tokens × cache read price
+ output tokens × output price
+ any other explicitly billed items
This is only an analytical framework; it does not mean every service charges each of these items separately. Some services include cache writes in the input price, some use different billing scopes, and you must always follow the provider’s actual pricing documentation to avoid double-counting.
To evaluate whether caching is worth enabling, use a more intuitive relationship:
Net cache benefit = avoided recompute cost − cache write and read fees − cache management overhead
If a context segment is used only once, caching may not bring a net benefit. If a long stable prefix is called repeatedly across consecutive turns, the benefit is more likely to materialize.
Enterprises should also include failed retries and manual rework in the evaluation. A cheap but failure-prone call chain can end up costing more than a solution that has a higher per-call price but a more stable success rate.
Therefore, the recommended metric is:
Cost per successfully completed task = total task expenditure ÷ number of tasks that pass acceptance.
This metric reflects business value far better than raw per-million-token price comparisons.
Speculative Decoding Can Reduce Overhead, but It Is Not a Universal Accelerator
The basic idea of speculative decoding is to generate several candidate tokens with a cheaper mechanism and then have the target model verify them, reducing part of the serial generation overhead.
In implementations with appropriate correction mechanisms, the sampling distribution of the target model can be preserved. But not all implementations provide the same output guarantees, so it cannot be assumed that every approach has fully identical output behavior.
Its gains depend on several conditions:
- The acceptance rate of candidate tokens.
- The computational cost of candidate generation itself.
- The efficiency of the target model’s verification step.
- Current concurrency and batching conditions.
- How predictable the task output is.
Structurally regular code or templated text may be more amenable to this approach, but that is not a performance guarantee. Complex reasoning, highly divergent expression, or low candidate acceptance rates can all compress the benefit.
Also note: speculative decoding primarily optimizes the generation phase, while prefix caching reduces repetitive input processing. They address different problems. They can be combined, but you cannot simply add their benefits together, and you certainly cannot derive a business profit margin from that sum.
Why Subscriptions Often Appear Cheaper Than Pay-as-You-Go
Subscriptions and pay-as-you-go APIs are not perfectly equivalent products.
A subscription typically bundles multiple conditions: usage windows, concurrency limits, task priority, available features, dynamic quotas, and peak-period access policies. Pay-as-you-go services emphasize programmatic access, call integration, and clearly defined billing boundaries.
Subscription pricing also reflects the usage distribution across the entire user base. Some users generate heavy usage, others use the service lightly. Providers care about the aggregate revenue and cost of the whole user group, not about making every individual account equally profitable.
Additionally, providers may reduce average costs through batching, request scheduling, resource pooling, and cache reuse, but the actual effectiveness of these mechanisms requires runtime data to support.
So converting a heavy user’s total usage at a single published API price yields an “equivalent retail amount” full of assumptions—not the provider’s real expenditure.
Observing a large price gap between subscription and pay-as-you-go proves neither sustained losses nor excessive profits.
How Developers Can Improve Cache Benefits
1. Stable Content First, Dynamic Content Last
Place long-term stable system rules, project conventions, and output guidelines in a stable position. Put the current question, temporary logs, and the latest tool results later. This helps preserve a reusable prefix.
Do not insert constantly changing timestamps, random identifiers, or unrelated tracking information at the very front of the prompt. If you must use them, consider how they affect the cache boundary.
2. Keep Context Focused on the Task
Cache discounts are not a reason to expand context without bound. Irrelevant files, repeated logs, and stale conclusions—even if cached—still occupy capacity and add attention access overhead during generation.
Prioritize relevant file snippets, structured check results, and necessary dependency information. Avoid stuffing the entire project into every request.
3. Use Constrained Summarization for History
Long tasks can benefit from periodic summaries of completed work, key constraints, and open issues. But summaries can lose detail.
For facts that cannot be lost, keep the original source or set up a way to re-read the record. Do not let a model-generated summary become the only reference.
4. Set Loop and Budget Boundaries
Set limits for tool-call counts, consecutive failure counts, accumulated cost, and maximum execution time. Even with a high cache hit rate, an agent can burn resources by repeatedly going in the wrong direction.
When a threshold is triggered, require human confirmation or re-planning instead of infinite retries.
5. Monitor Cost, Performance, and Quality Together
At a minimum, record:
- Uncached input tokens and cache-read tokens.
- Output tokens and the number of task turns.
- Time to first token and total wall-clock duration.
- Retry counts and failure reasons.
- Acceptance results and manual fix time.
- Final cost per successfully completed task.
A rising cache hit rate does not necessarily mean overall efficiency improved. If task turns, output redundancy, and rework rates also grow, the apparent discount may be masking a system design problem.
Conclusion: Look Past Token Volume to Effective Compute and Task Results
The most common source of misjudgment in LLM bills is treating all tokens as homogeneous resources and treating retail prices as underlying costs.
Coding agents do resend large amounts of context repeatedly, and caching does reduce redundant compute. Speculative decoding and resource scheduling may further improve service efficiency. But none of these facts directly implies anything about any provider’s profit level.
For individual developers, the priority is understanding subscription boundaries and avoiding exaggerated “equivalent retail value” calculations. For enterprises, the priority is unifying call structure, cache hits, task quality, and budget control into one evaluation framework.
The real optimization target is not maximizing token consumption or chasing the highest cache discount. It is completing tasks that meet acceptance criteria, at a predictable and auditable cost.
