How to Calculate the Real Cost of a Flagship LLM Beyond List Price

    This guide explains how to estimate the true cost of flagship large language models beyond their list prices. It covers six cost factors: input and output unit prices, cache read discounts, context and output limits, reasoning effort levels, default settings, and speed and throughput. It provides a cost formula, two worked examples, a model selection workflow, and checklists for batch jobs, hard reasoning tasks, and long-running agents. All prices are illustrative assumptions.

    1. Key Takeaways

    Flagship model spec sheets are becoming more alike. Most models offer context windows of about one million tokens and several reasoning effort levels. What actually changes spending is cache pricing, the default reasoning level, output limits, and output speed.

    The model with the lowest list price is not always the cheapest. Total cost depends on both unit price and actual usage. Usage depends on how many tokens a model generates to complete the same task. When choosing a model, calculate unit price, caching, reasoning levels, and task type together.

    This article provides one cost formula, two worked examples, a model selection workflow, and comparison checklists for three scenarios: batch jobs, hard reasoning tasks, and long-running agents. All prices in this article are illustrative assumptions used to demonstrate the calculation method. They do not represent any vendor’s current price list.

    2. Six Dimensions and What Each One Affects

    1. Input and Output Unit Prices

    Pricing is usually calculated per million tokens, and input and output are priced separately. Output prices are often higher than input prices. The multiple varies by model and reasoning level, so check the official price list.

    Long-running agent tasks repeatedly call tools and run multi-turn conversations. Cumulative input tokens often far exceed output tokens, so input unit price has a larger effect on total cost. Deep reasoning tasks generate large amounts of thinking content, so output unit price is more likely to be the main cost.

    2. Cache Read Discounts

    Most models support context caching. Repeated prefixes, such as system prompts, long documents, and few-shot examples, can be read at a lower price. Discount rates vary widely among vendors.

    Caching has two points to watch. First, cache entries have a validity period. After they expire, they must be written again. Second, some vendors charge separately for cache writes, and the write price may be higher than the regular input price. Looking only at the read price underestimates the cost of the first call.

    To judge whether caching pays off, consider how often a prefix is reused within its validity period. The more times it is reused, the less the write cost adds to each call. If a prefix is used only once or twice before it expires, the write fee may exceed the savings from cache reads.

    3. Context Window and Maximum Output Limit

    Many flagship models have context windows of about one million tokens. The maximum output limit, however, is not always stated in the documentation. When generating a long report or a large-scale code refactor, the output limit is a hard constraint. If the output exceeds the limit, it gets truncated. The task must then be split and rerun, which adds cost.

    4. Reasoning Levels

    Common levels include low, medium, high, xhigh, and max. Some models do not offer the highest level. Higher levels make the model produce more thinking tokens before it answers. This increases latency and cost. Accuracy on complex tasks usually improves as well.

    5. Default Reasoning Effort

    The default level determines spending when no level is specified. If a model defaults to high or max, even simple tasks consume many thinking tokens. A model with a lower unit price can still cost more in practice than a model that defaults to low. Always set the reasoning level explicitly instead of relying on the default.

    6. Speed and Throughput

    Output speed is measured in tokens per second. Time to first token (TTFT) is how long it takes for the first token to appear. Measure the two separately. Streaming output improves the interactive experience, but it does not reduce the total number of tokens or the total cost. In batch jobs, speed differences translate into wall-clock time and compute occupancy.

    3. Fields to Check When Verifying Parameters

    Field Description What to Check
    Input unit price Price per million uncached input tokens Whether pricing is tiered, and whether long contexts carry a surcharge
    Output unit price Price per million output tokens Whether thinking tokens are included
    Cache read price Price when a cache hit occurs Discount rate
    Cache write price Price when a prefix is first written to the cache Whether it is billed separately. If the page does not specify, mark it as “to be confirmed”
    Cache validity and expiration rules How long a prefix is retained, and when it must be rewritten Trigger conditions, refresh rules, and hit rules
    Context window Total length a single request can hold Whether input and output share the same limit
    Maximum output Maximum tokens generated in a single response Whether the documentation states it explicitly
    Default reaso