Token Cost Accounting Guide for New-Generation General-Purpose Models: Input, Cache-Hit, and Output Pricing

    As large language models are integrated into enterprise applications, API cost has become an engineering constraint that must be considered during system design. This article explains why comparing “cost per request” is not enough, and breaks down the three token categories that determine actual API spend: regular input tokens, cache-hit input tokens, and output tokens. It also covers recent pricing changes for a new generation of general-purpose models, how to build a monthly cost estimate, how to choose between high-tier and fast-response models, and practical engineering methods for reducing token consumption and monitoring cost drivers.

    API cost is no longer just a billing detail. When large models are used in production systems such as intelligent customer service, knowledge-base Q&A, code assistance, and automated analysis, the cost of each API call becomes a factor that affects architecture, prompt design, model routing, and capacity planning.

    Comparing “cost per request” is misleading, because one request typically includes three types of tokens that may be billed at different rates:

    • Regular input tokens
    • Cache-hit input tokens
    • Output tokens

    A single blended average price is therefore not enough for cost estimation. Each token category should be tracked and calculated separately.

    Recently, a model service provider published pricing for two new-generation general-purpose model classes. The higher-tier model, designed for complex reasoning, long-text processing, and comprehensive task capability, has API input and output unit prices about 20% lower than the previous generation of comparable models. On a per-million-token basis, its price is:

    • Input: $8 per 1,000,000 tokens
    • Cache-hit input: $0.40 per 1,000,000 tokens
    • Output: $40 per 1,000,000 tokens

    The other model class, focused on fast response and high-concurrency workloads, retains the same API price structure as its previous generation.

    The important takeaway is not only that unit prices have dropped. The more useful insight is that token costs should be estimated by token type, not by a single average price per request.

    Three Token Types in a Model Request

    A typical model request can be represented as:

    1. Total cost =
    2. regular input token count × input unit price
    3. + cache-hit input token count × cache-hit input unit price
    4. + output token count × output unit price

    Regular input tokens refer to content that the model must read and process anew in the current request. Examples include user questions, temporary uploaded documents, dynamic business data, and new context added in this turn.

    Cache-hit input tokens refer to content that is highly consistent with earlier calls and can be reused. Common examples include fixed system instructions, enterprise knowledge-base descriptions, long rule documents, role settings, format constraints, and repeated background materials. Because this content does not need to be fully reprocessed as new input, its unit price is usually much lower than regular input.

    Output tokens are the tokens generated by the model: answers, structured results, code, analysis reports, or action recommendations. Output prices are often higher than input prices. For tasks that require long generated content, complex reasoning, or detailed results, output tokens can become the main cost driver.

    For this reason, system designers should record all three token categories separately. Without that split, it is difficult to know where the money is actually going.

    Why Cache Hits Matter for Budget Planning

    Many enterprise applications do not send completely new materials on every request. For example, an internal knowledge-base Q&A system may send the same product manual, policy documents, and response guidelines in every call, while the user question changes.

    Assume a request contains:

    1. Fixed rules and background: 800,000 tokens
    2. Dynamic user question: 20,000 tokens
    3. Model output: 5,000 tokens

    If the fixed content is always processed as regular input, the input portion will be based on 820,000 tokens. But if 800,000 tokens can hit cache, most of that input is billed at the cache-hit rate, and the actual cost can be significantly lower.

    Cache hits cannot be assumed too easily. The cache effect depends on context ordering, content stability, request intervals, and the provider’s cache mechanism. During budget estimation, it is safer to model conservative, neutral, and optimistic cache-hit scenarios rather than treating all historical context as cacheable.

    How to Choose Between High-Tier and Fast-Response Models

    The high-tier model is suitable for complex reasoning, multi-step analysis, long-document summarization, structured decision-making, and tasks with higher answer-quality requirements. Its output price is higher, so it is more important to control prompt length, avoid unnecessary output, and reuse stable background content through cache.

    The fast-response model is better suited to high-frequency Q&A, simple classification, summarization, field extraction, batch rewriting, and real-time interaction. For these tasks, the main concerns are throughput, latency, and unit cost per task.

    A production system should not try to solve every problem with one model. A layered strategy works better:

    1. Use a lower-cost model for intent recognition, routing, and simple task classification.
    2. Route requests that need deeper analysis to the high-tier model.
    3. Validate the output format from the high-tier model to avoid repeated calls caused by invalid results.
    4. Manage fixed materials, system rules, and long-lived context centrally to improve cache-hit rate.

    This approach balances quality and cost, but it requires business teams to define quality requirements clearly. Switching models only based on price is not enough.

    Build an Executable Cost Estimation Model

    At a minimum, track the following metrics:

    • Number of requests per day
    • Average regular input tokens per request
    • Average cache-hit input tokens per request
    • Average output tokens per request
    • Request share by model type
    • Cache-hit rate
    • Average cost per request
    • Monthly cost per business process
    • Extra consumption from retries, timeouts, and failed requests

    For a business process, a monthly cost estimate can be built like this:

    1. Monthly cost =
    2. request count ×
    3. (
    4. average regular input tokens / 1,000,000 × 8
    5. +
    6. average cache-hit input tokens / 1,000,000 × 0.40
    7. +
    8. average output tokens / 1,000,000 × 40
    9. )

    The prices above correspond to the high-tier model example in this article. For the fast-response model that keeps the previous-generation pricing structure, substitute its actual input, cache-hit input, and output prices. Do not reuse these numbers for that model.

    Production systems should also include retries. Network instability, parameter validation failures, invalid output formats, or temporary downstream service outages can cause the same task to be submitted more than once. If the average task requires 1.1 API calls, the monthly budget should not be calculated only from business request count. It should include the corresponding call amplification factor.

    Engineering Methods to Reduce Token Costs

    1. Remove ineffective input

    Remove repeated explanations, outdated documents, irrelevant conversation history, and redundant fields. Longer input does not always produce better answers. Excessive context can even make it harder for the model to find the relevant information.

    2. Optimize prompt structure

    Place long-lived rules, format requirements, and background descriptions in stable positions. Put dynamic user content later in the prompt. For multi-turn calls, avoid re-appending unchanged material on every turn.

    3. Control output length

    Require fixed fields, limit summary length, or use structured output. For tasks that only need a decision or classification result, do not require the model to generate long explanations.

    4. Process long documents in stages

    For long-document tasks, first chunk, filter, or summarize the document. Then send only the relevant portions to the model for deeper analysis. This avoids carrying the full original text in every request.

    5. Reduce invalid retries

    Distinguish recoverable errors from non-recoverable errors. Validate output format before calling the model again. For batch tasks, use checkpointing so that an interruption does not require the whole task to restart.

    6. Add budget protection

    Set token quotas by user, department, application, or time window. When consumption exceeds a threshold, automatically switch to a lower-cost processing strategy, shorten the context, or route the request to human review.

    Monitoring and Review Should Go Beyond the Total Bill

    Total cost only tells you how much was spent. It does not explain why it was spent. More useful monitoring dimensions include:

    • Input token share
    • Cache-hit rate
    • Output token share
    • Average cost per request
    • Average cost per business task
    • Retry rate
    • Task success rate by model
    • Quality score by model

    For example, a rising total bill could be caused by an increase in request volume, a drop in cache-hit rate, or longer model output. With only the total bill, it is hard to determine the right optimization direction. By splitting token statistics, you can identify whether the problem is excessive input, cache misses, output growth, or duplicate execution in the call chain.

    Cost optimization cannot be separated from quality. If you compress context too aggressively, answer accuracy can drop. If you limit output length too strictly, key fields may be missing. The recommendation is to track accuracy, completeness, latency, and cost together, and evaluate them according to business priority.

    Overall, the price change for new-generation models gives enterprises more room to reduce the cost of generative AI applications. But the final spend is still determined by the calling architecture and token management approach. Developers should account for regular input, cache-hit input, and output tokens separately, distinguish fixed context from dynamic content, choose models based on task difficulty, and build a complete cost governance system through cache reuse, context trimming, output constraints, and budget monitoring. That is how a unit price change becomes a sustainable engineering benefit.