After LLM Price Changes: How to Evaluate Real Inference Costs and User Experience
This article explains why a lower per-token price does not show the full cost picture. It covers how to split billing by input, output, and cache usage, how to measure latency beyond average speed, and how to compare local and cloud deployments by cost per effective task. It also outlines the memory, quantization, and long-context trade-offs to check before deciding whether a price change is worth it.
1. Beyond Price Changes: Focus on the Real Cost of Completing a Task
After an LLM service changes its prices, developers most often ask how much cheaper each million tokens has become. For real applications, though, unit price is only one variable in the cost formula. The more useful question is how many resources it takes to complete one effective task while meeting requirements for quality, latency, and stability.
Take AI-assisted programming as an example. Some requests produce only a few dozen lines of suggested changes but must read many source files, chat history, and test logs. Others have short inputs but require a complete module with detailed documentation. These two workloads have different input and output structures, so even under the same billing rules, their final bills can differ greatly.
To judge the benefit of a price change, you need to answer at least four questions:
- In everyday tasks, what share do input, output, and reusable context each take?
- Which billing items does the price change actually affect?
- On average, how many calls are needed to get a usable result?
- Do response quality and waiting time meet business requirements?
Only by analyzing these four questions together can you avoid two common mistakes: assuming a large unit price drop will cut the bill substantially when it barely changes, or assuming a lower bill is a saving when manual rework has increased.
2. Understand the Call Structure First, Then Calculate the Impact of Price Changes
1. Don’t Look Only at Total Token Count
The total token count in usage statistics usually cannot explain the real cost. A better approach is to split usage by the actual billing basis: input, output, and the portions that hit or miss the cache.
If billing items do not overlap and units are consistent, you can use this general model:
Total call cost = uncached input × unit price + cached input × unit price + output × unit price + other explicitly charged items
This formula is only an analytical framework. It does not describe the billing rules of any specific service. In practice, you also need to check for batch discounts, storage fees, request fees, or separate metering of reasoning-related tokens.
A common mistake is to count the total input, which already includes the cached portion, and then count the cache-hit volume again. Before analyzing a bill, confirm whether the usage fields are inclusive (one field contains another) or separate (mutually exclusive).
2. Little Output Does Not Mean the Model Did Little Work
In code retrieval, document Q&A, and multi-turn development assistance, input can be much larger than output. A single request may carry a large amount of context but return only one edit location, one patch, or one conclusion.
This pattern does not apply to every use case. Long-form generation, report writing, and bulk content production often have a much higher output share.
Also, “visible output,” “internal reasoning process,” and “billed usage” are not necessarily the same thing. Some services meter reasoning-related usage separately, and others may use different accounting methods. You cannot infer the computation scale or cost of a whole request from the length of the answer shown on screen.
3. Cache Benefits Depend on Reuse Conditions
Large input does not guarantee meaningful cache savings. Whether caching takes effect usually depends on repeated content, prefix stability, retention time, and the implementation of the service.
For example, placing stable task instructions, fixed rules, and shared reference material in a consistent position may help meet the cache-matching conditions of a particular service. If every request inserts timestamps, random IDs, or large blocks of changing content at the front, however, reuse opportunities can drop.
A cache hit reduces repeated computation or billing for a specific stage. It does not mean the whole request needs no processing, and it does not guarantee better output quality. When optimizing, check the actual hit statistics rather than judging by how similar the prompts look.
3. Experience Evaluation Should Not Rely on Output Speed Alone
1. Input Processing and Step-by-Step Generation Are Different Stages
LLM inference has two main stages: input prefill and step-by-step decoding. Prefill processes the existing context and builds the related state. Decoding generates new tokens one at a time.
The two stages have different computational characteristics. You should not directly compare “input tokens processed per second” with “output tokens generated per second,” and you should not assume one speed metric represents the whole experience.
For short-answer tasks, the time spent reading very long material may matter more than the final output. For long-form generation, sustained decoding speed is more likely to be the bottleneck.
A output speed measured on one device applies only to a specific model, quantization method, context length, and runtime conditions. It cannot be extended to all machines or all tasks.
2. Record at Least Three Types of Timing
To better reflect what users actually perceive, record the following:
- Time to first visible output: the time from submitting a request to the first visible content.
- Sustained output speed: the number of tokens generated per second once stable generation begins.
- End-to-end completion time: the total time from sending a request to receiving the complete result.
If the application also includes retrieval, external tool calls, or several rounds of revision, measure the whole workflow rather than a single model response.
Averages are not enough. In real systems, a small number of very slow requests often cause the most damage to the experience. Track the median along with higher percentile latencies, and separate cold-start performance from steady-state performance.
4. Compare Local Inference and Cloud Calls Within the Same Cost Framework
Local deployment appears to have no per-call bill, but it still has costs. Hardware purchase and depreciation, electricity, storage, maintenance, and failure handling should all be included in the evaluation.
The local cost over a measurement period can be summarized as:
Local total cost = depreciation allocation for hardware + electricity and storage expenses + deployment and maintenance investment + other operating expenses
Divide this cost by the number of tasks that were both high quality and completed on time in the same period. The result is a more meaningful cost per effective task.
Apply the same approach to cloud calls. Beyond direct call fees, account for spending caused by failed retries, repeated context transmission, and extra revisions.
The comparison assumes that task quality is roughly comparable. If a local setup needs more interaction rounds to complete the same task, comparing only the cost of a single inference will underestimate the actual spending.
Device utilization is also critical. With occasional use, the fixed asset cost is hard to spread out. Local deployment becomes more cost-effective when it runs stably over the long term with a matching workload. Whether it pays off should still be decided by actual measurement.
5. Understanding Memory and Quantization: A Model That Fits in Memory Does Not Guarantee Good Task Performance
1. Model File Size Is Not the Full Memory Requirement
Local deployment must reserve space for at least the following:
- Model weights and the quantization metadata they require;
- Runtime workspace and intermediate computation buffers;
- Attention key-value cache, which grows with context length and concurrency;
- Basic overhead from the operating system and other applications.
Even on devices with a unified memory architecture, this space does not disappear. Unified memory can reduce some data movement, but the system and the inference process still share limited physical resources.
A model file smaller than physical memory does not guarantee stable deployment. A more reliable method is to measure peak usage at the target context length and concurrency, and keep a reasonable margin.
2. Low-Bit Quantization Is a Trade-Off Between Resources and Quality
Lowering the precision of weight representation usually reduces storage and memory needs, but
