LLM Cost Evaluation and Engineering Optimization After a Price Increase
The latest generation of large language models (LLMs) costs significantly more than the previous generation, especially on the output side, so developers and enterprises need a more precise way to evaluate the real cost instead of relying on list prices alone. This article explains how to build a three-layer cost model spanning billing, tasks, and business value, breaks down how input, output, and cache-hit pricing shape actual spend with token-level math, and shows why plan quota leverage can matter more than the monthly price. It then reframes evaluation around cost per qualified task and lays out practical engineering optimizations, including improving cache hit rates, controlling context and output length, routing tasks to cheaper models, and monitoring spend. It also covers when a price increase is justified and provides a ten-step checklist for real projects.
1. Start by Changing How You Evaluate Cost
The new generation of LLMs is noticeably more expensive than the previous one, and the increase is especially pronounced on the output side. Under a common industry billing convention, output is priced at ¥100, input at ¥20, and cache hits at ¥1 per million tokens. At this price point, the surface cost of a single call can be several times higher than with the previous generation. That does not necessarily mean the model is underpowered or has no practical value.
For developers and enterprise users, the real questions are not simply “Is it expensive?” but:
- In real-world business traffic, how many tokens go to input versus output?
- Is there a lot of reusable context that could trigger cache hits?
- Is output length controlled, or is it quietly driving up costs?
- Do plan quotas cover actual usage, and do lower tiers include enough quota for reliable availability?
- Does the improved model capability reduce human effort, error costs, or delivery value?
The traditional approach is to count the tokens each request consumes and multiply by the unit price. That linear thinking still works while prices are low and quotas are generous. But once input, output, and cache-hit pricing diverge significantly, and plan quotas create real leverage against actual consumption, judging by list price alone leads to misjudgment. A more accurate approach is a three-layer model:
- Billing layer: Input, output, and cache hits are priced separately, and each has a different cost impact.
- Task layer: Input length, output length, and cache reuse rates vary widely across workloads.
- Business layer: Model costs must be combined with human effort costs, error costs, and delivery value.
2. Three Billing Components Determine Real Cost
2.1 Input Pricing Sets the Baseline for Long-Context Tasks
Input tokens typically come from system instructions, tool descriptions, knowledge base snippets, conversation history, user questions, and retrieval results. In scenarios such as long-document summarization, code understanding, log analysis, and contract review, input is often much longer than output. In these cases, even with a higher output price, the input side can still account for the bulk of the total cost.
A long-document understanding task, for example, may take tens of thousands of input tokens but produce only a few hundred output tokens. If the cache hit rate is low, input costs rise quickly. So for long-context tasks, “Is output cheap?” is the wrong question. What matters is whether the input can be reused.
2.2 Output Pricing Is the Biggest Amplifier
Output tokens are usually where costs amplify most dramatically. Generative tasks naturally tend to produce long answers. Without length constraints, template constraints, or quality acceptance criteria, output costs can easily spiral out of control.
A task that only needs a summary may produce a verbose explanation if no output limit is set. A classification task that allows free-form text output may generate unnecessary paragraphs. The longer the output, the higher the cost, and the marginal cost of output is often higher than that of input.
On a model with a high output price, engineering teams must actively control output length. Techniques include setting a maximum output length, using structured fields, providing summary templates, generating in chunks, and creating an outline first before expanding.
2.3 Cache Hits Are a Structural Discount
Cache hits typically apply to reusable input content. If system instructions, tool descriptions, knowledge base snippets, or conversation history stay the same across multiple requests, those requests may hit the cache and be billed at a lower rate.
Cache hits are not automatic savings. They depend on call structure and how content is organized. A clear, stable prefix makes cache hits easier. Dynamic content placed near the beginning makes cache misses more likely. Cache hit rate is therefore an important engineering metric, not just a billing concept.
3. Building the Cost Model: From List Price to Actual Spend
Without caching, plans, or optimization, the cost of a single request is:
Cost per request = input tokens × input price + output tokens × output price
With cache hits, a more complete expression is:
Cost per request = uncached input tokens × input price+ cached tokens × cache hit price+ output tokens × output price
Suppose a task has 10,000 input tokens, of which 7,000 hit the cache, and produces 2,000 output tokens. If the input price is ¥20 per million tokens, the cache hit price is ¥1 per million tokens, and the output price is ¥100 per million tokens, then:
Cost = (10000 - 7000) × 20 / 1000000+ 7000 × 1 / 1000000+ 2000 × 100 / 1000000= 0.267 CNY
With no cache hits, the cost is:
Cost = 10000 × 20 / 1000000 + 2000 × 100 / 1000000= 0.4 CNY
Caching alone brings the cost down from ¥0.4 to ¥0.267, a reduction of roughly one-third. In high-frequency scenarios, the advantage of cache hits is amplified even further.
Now suppose the output grows from 2,000 to 10,000 tokens:
Cost = 3000 × 20 / 1000000+ 7000 × 1 / 1000000+ 10000 × 100 / 1000000= 1.067 CNY
Output length has now become the dominant cost factor. On models with a high output price, controlling output matters more than optimizing input alone.
4. Plan Quotas: A Low Price Does Not Mean High Value
Beyond pay-as-you-go billing, plans and quotas are another key dimension in cost evaluation. The plan price is only a surface-level entry point. What really determines value for money is the ratio between the plan price and the usage value the plan can cover.
A simple formula captures this:
Quota leverage = usage value covered within the plan / plan price
Suppose one plan costs ¥199 and covers roughly ¥1,200–2,800 worth of model consumption, while another costs ¥99 and covers ¥2,000–5,000. The ¥199 plan looks more expensive at first glance. However, by quota leverage, the ¥99 plan may offer better value for money.
This explains a common pattern. Some products do not look cheap, but if their plan quota is high enough, the real usable cost is more controllable. Conversely, if a low-priced plan includes only a limited quota, users quickly hit pay-as-you-go billing or overage limits, so the actual cost is not necessarily low.
To evaluate a plan properly, look beyond the monthly fee and ask:
- How much input quota is included?
- How much output quota is included?
- Are cache hits billed or credited separately?
- Does quota reset each month, or can it roll over?
- Are there rate limits during peak hours?
- Is the price acceptable once the quota is exceeded?
- Is real business consumption input-heavy, output-heavy, or mixed?
In high-frequency scenarios, quota leverage often matters more than the list price. A low tier delivers real overall competitiveness only when it also comes with a large quota.
5. Move from “Unit Price” to “Cost per Valid Unit of Output”
Whether a model is expensive ultimately comes down to business output. For enterprise applications, the most meaningful metric is not how much a million tokens cost, but how much it costs to complete one qualified task.
One useful metric is cost per valid unit of output:
Cost per valid output = (model call cost + human review cost + failed retry cost) / number of qualified tasks
A model with a higher unit price may still have a lower cost per valid output if it delivers higher accuracy, more stable formatting, and less need for human review.
For example:
- A low-priced model generates content that needs heavy manual editing, so human costs end up higher than model costs.
- A higher-priced model produces a qualified result on the first pass, reducing rework and review.
- A model with a higher output price significantly shortens the workflow and speeds up delivery, which brings business value.
Cost evaluation therefore cannot be separated from quality. In high-value scenarios, a cheap but unreliable model can create much higher hidden costs.
6. Engineering Optimization Paths: Lowering Cost Without Sacrificing Quality
6.1 Prioritize Improving the Cache Hit Rate
Cache hits are a low-cost, high-return optimization. In practice, this means:
- Place fixed content at the front of the request, such as system instructions, role definitions, tool descriptions, and example templates.
- Place dynamic content at the end, such as user input, real-time retrieval results, timestamps, and session state.
- Avoid inserting frequently changing content into the stable prefix.
- Use a unified prefix template for repeated calls.
- For multi-turn conversations, use summaries or external state instead of resending the full history every time.
- Clean up and standardize knowledge base content to make it more cache-friendly.
A common mistake is putting timestamps, random IDs, user IDs, and other dynamic information at the very front of the prompt. This breaks prefix consistency and lowers the cache hit rate.
6.2 Control Context Length
Longer context does not always produce better results. It can also increase input costs, latency, and noise. Common optimizations include:
- Use retrieval instead of sending the full context.
- Use summaries instead of full-length documents.
- Use structured extraction instead of dumping raw text.
- Use rolling summaries for multi-turn conversations.
- Streamline tool descriptions.
- Filter out low-relevance snippets.
In a document Q&A scenario, for example, you do not need to send the entire document on every request. First retrieve the snippets most relevant to the question, then pass those snippets to the model as input. This reduces token consumption and limits interference from irrelevant information.
6.3 Use Task Routing Instead of Using a High-End Model for Everything
Different tasks have different model capability requirements. Simple classification, structured extraction, and short-text rewriting do not necessarily need an expensive, high-quality model. Complex reasoning, code generation, long-document analysis, and high-risk decisions are better suited to more capable models.
The basic logic of task routing looks like this:
if task risk is low and input/output is short and quality can be validated by rules:use a low-cost modelelse:use a high-quality model
If the low-cost model’s output does not meet expectations, you can escalate to the high-quality model. This “try the low-cost model first, then upgrade as needed” approach can save costs on most routine requests.
6.4 Strictly Control Output Length
The key to controlling output costs is to define what success looks like first. Before calling the model, decide:
- Is the output a sentence, a paragraph, or structured fields?
- Does it need to be organized into bullet points, tables, or chunks?
- What is the maximum output length?
- Is the model allowed to explain its reasoning?
- Can content be expanded with a second call?
- Could a model with cheaper output generate the outline first, and a more capable model then refine it?
A common approach is “short first, then long”: have the model produce an outline or key conclusions first, then expand as needed. This avoids a single overly long generation that makes costs hard to control.
6.5 Set Up Budgets, Monitoring, and Alerts
Without monitoring, costs can easily get out of hand. At a minimum, track these metrics:
- Input tokens per request
- Cached tokens
- Output tokens per request
- Cost per request
- Cost aggregated by business, tenant, scenario, and model version
- Cache hit rate
- Average output length
- Number of failed retries
- Number of timeouts
- Share of requests that require human review
You can also set up budget alerts, such as:
- An alert when daily call costs exceed a threshold
- An alert when a scenario’s cache hit rate falls below expectations
- An alert when a single request’s output length is several times the average
- An alert when one type of task’s share of total cost rises abnormally
The purpose of monitoring is not just to cut costs. It is to detect abnormal patterns early, such as cache failures, prompt bloat, runaway output, or too many low-value calls.
7. When a Price Increase Is Worth Accepting
Not every price increase should be rejected. A higher price may be reasonable if the new-generation model delivers clear value in areas such as:
- Noticeably higher accuracy, reducing human review
- More stable output formats, lowering system integration costs
- Higher success rates on complex tasks, reducing failed retries
- Stronger reasoning, handling tasks the previous generation could not
- Lower latency, improving user experience
- Stronger context understanding, reducing stitching and data-cleaning work
- A lower overall cost for the same business value
On the other hand, if the price increase comes only from a higher list price with no gain in business value, combined with a low cache hit rate, uncontrolled output length, and insufficient plan quota, the cost pressure will be very noticeable.
8. Implementation Checklist
For real projects, use this checklist to evaluate and optimize costs:
- Build a cost formula: Separate input, cache-hit, and output tokens.
- Measure the real token mix: Do not estimate by gut feeling. Sample real requests.
- Assess cache feasibility: Put stable content first and reduce interference from dynamic content.
- Control output length: Set output budgets and structured templates for different tasks.
- Introduce task routing: Handle simple tasks with low-cost models and complex tasks with more capable ones.
- Evaluate plan leverage: Compare plan prices against the usage value they cover.
- Build a monitoring dashboard: Track cost, cache hit rate, output length, and failure rates by scenario.
- Re-evaluate regularly: After price changes, recalculate cost per valid unit of output.
- Set budget limits: Prevent the cost of any single task from getting out of control.
- Keep business value in focus: Cost optimization must not come at the expense of key quality.
9. Conclusion
The new generation of LLMs costs noticeably more than the previous one, and the output-side increase in particular makes it essential for developers and enterprises to build a refined cost evaluation system. Price alone is not a one-dimensional conclusion. Real cost depends on the input-output mix, cache hit rate, output length, plan quotas, and the value of the task.
Looking only at list prices, the intuitive conclusion is “it got more expensive.” But combining cache reuse, task routing, output control, and business value, there may still be room to optimize real costs. What matters is not whether a single number went up, but whether the system can keep balancing quality, latency, cost, and stability.
For engineering teams, the most reliable approach is to first build a cost model that can be calculated, monitored, and reviewed. Then optimize it step by step through caching, routing, compression, and budget control. Only by turning cost from an after-the-fact bill into part of architecture design can engineering practices stay sustainable when new-generation model prices rise.
