Why the Same Token Count Can Cost Several Times More: Token Pricing Tiers and Cache Reuse

    A model call’s cost is determined not only by total token count but by how those tokens are distributed across uncached input, cache writes, cache reads, and output. This article explains the four billing tiers, uses a single-turn example to show how cache hits can change the bill by more than 5x, and provides engineering practices for context management, cache reuse, output control, cost observability, and common pitfalls.

    Why the Same Token Count Can Cost Several Times More: Token Pricing Tiers and Cache Reuse

    1. The Problem Is Not Total Tokens but Which Pricing Tier They Fall Into

    When developers judge whether a model call is expensive, they often look first at total token count: how many input tokens, how many output tokens, and the combined total. That metric is useful, but it only answers “how much was used.” It does not answer “what price was applied to each part of that usage.”

    In a call path that supports context caching, the same number of tokens can fall into four completely different pricing tiers: uncached input, cache write, cache read, and model output. The unit price is not the same across these four tiers. The most expensive tier and the cheapest tier may differ by dozens of times.

    This explains a common phenomenon: two people complete similar tasks with the same class of model and a similar number of turns, yet their final costs differ by several times. The difference is usually not “who typed a few more lines.” It is whether a large amount of repeated content in the session hit the cache, whether new content was repeatedly written to the cache, and whether model output was effectively constrained. In other words, total token volume is only one dimension of the bill. Token structure is the core variable behind cost differences.

    One premise should be clear first: in each turn, the model does not receive only the sentence the user just typed. For multi-turn conversations, the system usually needs to reorganize and send the system prompt, historical messages, tool call results, file snippets, the previous model answer, and other context. The longer the session, the higher the share of historical content that is resent unchanged. If this content hits cache reads, cost drops significantly. If the cache misses or expires, it is billed as uncached input or cache writes, and the bill rises quickly.

    2. Four Pricing Tiers: the Same Tokens Can Differ by Tens of Times in Price

    For illustration, the following “relative unit price example table” describes a common pricing structure. Specific prices vary by provider, model tier, region, and billing policy, but the cost relationship among the four usage types is broadly useful as a reference.

    Pricing tier Meaning Billing characteristic Relative unit price example
    Uncached input Input content sent for the first time in this turn and not reused from cache Billed at the regular input price 1x
    Cache write Content written to cache for the first time so later turns can reuse it Usually higher than regular input, with a write premium About 1.25x
    Cache read Content previously written to cache and reused unchanged in this turn Usually the lowest tier About 0.1x
    Model output Content generated and returned by the model in this turn Usually the most expensive tier About 5x

    Under these example multipliers, output is about 50 times the price of cache reads, and cache writes are about 12.5 times the price of cache reads. Absolute unit prices may differ across models, but the structure is usually similar: output is expensive, cache reads are cheap, and writes carry a premium. Therefore, the focus of cost optimization is not simply reducing characters. It is to make large, stable, reusable blocks of context go through cache reads, let genuinely new and necessary content go through regular input or cache writes, and compress unnecessary model output.

    A neutral pseudocode snippet can represent the cost accumulation logic:

    1. usage = {
    2. uncached_input: 35,
    3. cache_write_input: 1977,
    4. cache_read_input: 41260,
    5. output: 804
    6. }
    7. cost =
    8. uncached_input * P_input +
    9. cache_write_input * P_cache_write +
    10. cache_read_input * P_cache_read +
    11. output * P_output

    This logic shows that the bill is not “total tokens × a single unit price.” It is the sum of four usage types, each multiplied by its corresponding unit price. As long as cache reads account for a high share, overall cost is pulled down. Conversely, if a large amount of reusable content is repeatedly billed as cache writes or uncached input, cost increases significantly.

    3. Single-Turn Billing Example: a Cache Hit or Miss Can Differ by More Than 5x

    Assume a single request turn has about 43K tokens of context. About 41K are historical content already sent in the previous turn and resent unchanged in this turn, about 2K are new content for this turn, and model output is about 800 tokens. Use the relative unit prices from the example above.

    Plan A: historical content hits cache reads.

    Item Tokens Relative unit price Relative cost
    Repeated context read from cache 41000 0.1 4100
    New content written to cache 2000 1.25 2500
    Model output 800 5 4000
    Total About 10600

    Plan B: cache misses or expires, so historical content must be written again.

    Item Tokens Relative unit price Relative cost
    Repeated context written again 41000 1.25 51250
    New content written to cache 2000 1.25 2500
    Model output 800 5 4000
    Total About 57750

    The difference between the two is about 5.45x. Note that the total token count is almost the same in both plans. The only difference is whether the 41K repeated context falls into “cache read” or “rewrite.” In long sessions, content resent unchanged often accounts for more than 90% of a single-turn request. Therefore, the pricing tier for this line item almost determines the slope of the bill.

    This also leads to a counterintuitive conclusion: when optimizing cost, prioritizing the cache hit rate of “large blocks of repeated context” is usually more effective than trimming a few dozen characters. Prompt optimization that adds a few hundred tokens can be meaningful, but if 41K of historical content does not hit the cache, the main issue is still cache reuse.

    4. Caching Is Not Automatically Cheaper: Calculate the Number of Reuses

    Cache writes usually carry a premium: the first write may be more expensive than regular input. Therefore, whether caching is worthwhile depends on how many times the content will be reused later. Suppose the relative unit price of regular input is 1, cache write is 1.25, and cache read is 0.1. If a piece of content is used only once, billing it directly as regular input may be cheaper. If it will be reused multiple times later, the low price of cache reads quickly amortizes the write premium.

    A simplified estimate is as follows:

    1. Total cost without cache ≈ first input cost + cost of each repeated input later
    2. Total cost with cache ≈ first cache write cost + cost of each cache read later

    Under the example multipliers, a cache write costs 0.25x more than regular input, while each cache read costs 0.9x less than regular input. As long as there are multiple reuses later, caching usually pays for itself. In engineering, however, you also need to consider cache TTL, whether content will be modified, whether the prefix is stable, and other factors. If the system prompt, tool descriptions, or historical message order changes every turn, the cache prefix becomes invalid, write costs occur repeatedly, and the benefit of low-cost reads cannot materialize.

    Therefore, the core of a caching strategy is “stable prefix + dynamic suffix.” Content that changes little, such as system prompts, project descriptions, code index summaries, and fixed tool specifications, should be placed at the front and kept stable. Dynamic content such as new user messages, the latest tool results, and temporary file snippets should be placed at the back. This makes it easier for later turns to reuse the front content unchanged and reduces repeated writes.

    5. In Multi-Turn Sessions, Output Has a Second-Order Cost

    Output tokens are not only billed at the most expensive tier. They also enter the next turn’s context as historical content and are sent again. In other words, a long explanation the model adds this turn may increase the input-side burden in every subsequent turn. If that output is not read from cache, the cost impact is further amplified. Therefore, controlling output length is not simply “making the answer shorter.” It directly reduces usage at the most expensive tier and limits later context growth.

    In multi-turn scenarios such as AI coding tools and code assistants, tool results are often large: file contents, command output, log snippets, retrieval results, and so on. If the full result is inserted into context every turn, even with cache hits, the read volume keeps accumulating. If the cache misses, cost rises sharply. A more reasonable approach is to summarize, trim, and segment tool results first, keeping only the snippets relevant to the current task; read large files on demand; replace repeated file content with references or summaries instead of full injection; and set cleanup policies for historical tool results.

    6. Engineering Optimization Checklist Outside the Model

    When the same token count costs several times more, the cost-saving work is often not inside the model but in the call orchestration and context management outside the model. Actionable optimization directions include:

    1. Stabilize the prefix and reduce cache invalidation: Keep the order and content of system prompts, tool descriptions, project conventions, and similar items fixed. Avoid meaningless changes. The more stable the prefix, the easier it is for cache reads to hit.
    2. Place dynamic content later: Put new messages, the latest tool results, and temporary error logs toward the end of the context to reduce disturbance to the stable prefix.
    3. Trim tool results: Inject only necessary line numbers, snippets, summaries, and conclusions. Filter large logs before sending. Do not repeatedly inject duplicate content in full.
    4. Constrain output: Ask the model for concise conclusions, structured fields, necessary code snippets, and verification steps, and avoid lengthy restatement. The shorter the output, the lower the usage at the most expensive tier and the lighter the later context.
    5. Balance task splitting and merging: Completing a short task in one pass may avoid repeated context across multiple turns. For long tasks, use caching to reuse a stable prefix. Do not blindly split work into many turns, and do not stuff everything into one extremely long request.
    6. Manage cache TTL: Arrange session rhythm according to the actual cache expiration policy. Continuing a long session after a long idle period may face cache invalidation and require rewriting.
    7. Observe costs: Record the four token usage types and unit prices by session, task, and turn. Calculate marginal cost per turn and the cache read share. Looking only at total tokens can easily hide cache misses.
    8. Set budget alerts: Set thresholds for per-task cost and per-session cost, and intervene when cache writes rise abnormally or output expands abnormally.

    7. Common Misconceptions

    Misconception 1: Focus only on total token count. With the same total tokens, different cache read shares can produce bills that differ by several times. Look at the structure of all four usage types at the same time.

    Misconception 2: Assume caching always saves money. Cache writes carry a premium. When content is used only once or the prefix changes frequently, caching may not be worthwhile. Evaluate it together with reuse count and TTL.

    Misconception 3: Modify system prompts and tool descriptions frequently. This breaks the stable prefix and causes repeated cache writes. Changes should be versioned and batched rather than fine-tuned every turn.

    Misconception 4: Insert large tool results into context in full. This increases input, cache write, and later read burdens at the same time. Summarize, trim, and segment first.

    Misconception 5: Ignore output cost. Output is usually the most expensive tier and also enters later context. Long answers are expensive and push up the cost of subsequent turns.

    8. Conclusion

    Two calls with the same token count can differ in price by several times because the token structure is different: whether large blocks of repeated context go through low-cost cache reads or through cache writes or uncached input; whether model output is constrained; whether tool results are trimmed; and whether the stable prefix is repeatedly broken. Break the bill into four accounts—uncached input, cache writes, cache reads, and output—and then optimize engineering around cache hit rate and output control. Only then can cost differences move from “random fluctuation” to results that are observable, explainable, and optimizable. The work of saving money does indeed happen largely in the code and orchestration outside the model.