Large Model Inference Pricing Enters the “Time-of-Use” Era: How Should AI Costs Be Measured?

    Inference pricing for large language models has fallen dramatically, while billing is becoming more granular through time-of-use rates and prompt-cache pricing. This article explains the infrastructure constraints behind peak and off-peak pricing, shows how cache-aware prompts and output controls reduce costs, and presents practical methods for cost estimation, workload scheduling, model routing, chargeback, and budget management.

    Large Model Inference Pricing Enters the “Time-of-Use” Era: How Should AI Costs Be Measured?

    1. From Luxury Product to Utility: The Sharp Decline in Inference Prices

    Over the past few years, the price of large language model inference has followed an unusually steep downward curve. For models that reached the level of early flagship conversational systems on widely used academic benchmarks—roughly comparable to the general industry level at the end of 2022—the calling price per million tokens fell from approximately $20 in November 2022 to about $0.07 in October 2024, a decline of nearly 286 times.

    This is not simply the result of promotional pricing by one provider. It reflects a broad reduction driven by several technical trends:

    1. Inference-specific hardware and compiler optimization: Operator fusion, quantization methods such as INT8, INT4, AWQ, and GPTQ, continuous batching, speculative decoding, and other techniques have significantly increased token throughput per unit of compute.
    2. A more mature open-weight ecosystem: Ongoing community improvements to attention mechanisms, KV-cache management, and sparse inference have substantially reduced the cost of running models at the same capability level.
    3. Economies of scale and automated operations: Multi-tenant deployment, elastic scaling, and cache reuse have pushed hardware utilization closer to its theoretical limits.

    For developers, this means that inference cost has shifted from an experimental budget item to an engineering variable that can be optimized. Model selection can no longer focus only on quality. Teams must also consider per-token pricing, caching strategies, and when workloads are executed.

    2. Why Time-of-Use Pricing Is Emerging: The Physical Constraints of Compute Supply

    Electricity has peak and off-peak rates because generation and transmission capacity cannot be stored indefinitely across time. Large model inference faces similar constraints:

    • GPU clusters are capital-intensive assets, and unused capacity cannot simply be stored for later;
    • Inference requests typically peak during the day and on working days, while utilization falls significantly overnight and on weekends;
    • Capacity reserved for peak demand may remain idle for long periods during low-demand hours.

    As a result, some service providers have begun introducing time-of-use pricing. The day is divided into peak and off-peak periods, with off-peak rates reduced to half of peak prices in some cases. The underlying idea is to sell idle compute at a discount and use pricing to shift workloads away from periods of high demand. Recently, one large model service adopted this approach while also releasing a new model version and lowering its API prices, continuing the broader industry trend toward lower inference costs.

    For users, time-of-use pricing offers two immediate benefits:

    • Move schedulable workloads to off-peak periods: Batch data processing, corpus cleaning, offline evaluation, and RAG index rebuilding do not require real-time execution and can be moved to lower-cost windows, potentially cutting the cost in half.
    • Build a more precise cost model: Instead of tracking only a per-token price, teams can calculate costs as tokens × time period × cache status, creating new optimization opportunities for FinOps and cloud cost management.

    3. Cache Hits: An Underestimated Cost Lever

    Modern APIs often distinguish between cache-hit and cache-miss input tokens, and the price difference can reach several dozen times. For example, based on publicly available pricing from one service:

    • For a lightweight model, cached input costs approximately CNY 0.04 per million tokens during peak hours, compared with CNY 2 for uncached input and CNY 8 for output;
    • For a more capable model, the corresponding prices are approximately CNY 0.3, CNY 9, and CNY 27;
    • For both models, off-peak prices are half of the peak rates.

    The pricing structure makes two points clear: output tokens are significantly more expensive than input tokens, while uncached input tokens are much more expensive than cached input tokens. This has direct implications for application design.

    Designing Cache-Friendly Prompts

    Many inference services provide prefix caching for identical prompt prefixes. If the system prompt, few-shot examples, and the beginning of the document context remain consistent across requests, the corresponding KV cache can be reused. A cache-friendly request structure looks like this:

    1. # Recommended structure: put stable content first and dynamic content last
    2. messages = [
    3. {"role": "system", "content": STABLE_SYSTEM_PROMPT}, # Cacheable
    4. {"role": "user", "content": LONG_CONTEXT_DOCS}, # Keep as stable as possible
    5. {"role": "user", "content": f"Question: {user_question}"}, # Put changing content last
    6. ]

    If every request begins with changing user input and only then appends a long document, the cache hit rate may approach zero. Putting variable content at the end is the first principle of prompt-cache optimization.

    Controlling Output Length

    Output tokens are usually several times more expensive than input tokens, so unnecessarily long generation can quickly increase costs. Practical techniques include:

    • Explicitly requesting concise, structured responses in the prompt;
    • Using JSON mode or structured-output constraints to avoid redundant explanations;
    • Setting a max_tokens limit for summarization tasks;
    • Routing requests to a lightweight model first and escalating only complex requests to a more capable model.

    4. A Cost Estimation Model: Installing a “Meter” in the Architecture

    Managing inference costs like electricity bills requires a cost model that is observable and predictable. One practical approach is to record the token counts, cache status, and time period for every request at the gateway layer, then calculate the charge using the applicable pricing table:

    1. PRICE_TABLE = {
    2. "lite": {
    3. "peak": {"hit_in": 0.04, "miss_in": 2.0, "out": 8.0},
    4. "offpeak": {"hit_in": 0.02, "miss_in": 1.0, "out": 4.0},
    5. },
    6. "pro": {
    7. "peak": {"hit_in": 0.3, "miss_in": 9.0, "out": 27.0},
    8. "offpeak": {"hit_in": 0.15, "miss_in": 4.5, "out": 13.5},
    9. },
    10. }
    11. def estimate_cost(model, period, usage):
    12. p = PRICE_TABLE[model][period]
    13. return (usage.hit_in_tokens / 1e6 * p["hit_in"]
    14. + usage.miss_in_tokens / 1e6 * p["miss_in"]
    15. + usage.out_tokens / 1e6 * p["out"])

    Embedding this estimation logic into the request path makes it possible to:

    • Allocate costs by business dimension: Track how much each feature, tenant, or prompt template consumes;
    • Detect anomalies: A sudden increase in the proportion of output tokens may indicate prompt degradation or a change in task design;
    • Enforce budgets: When spending reaches a threshold, automatically fall back to a lightweight model or return a cached result.

    5. Time-Based Workload Scheduling: Low-Cost Strategies for Three Task Types

    Time-of-use pricing allows workloads to be divided into three broad categories:

    1. Real-time interactive workloads — conversations and search-augmented question answering require immediate responses and must generally use peak-period capacity. Optimization should focus on cache hit rates and output length.
    2. Near-real-time workloads — report generation and content moderation can often tolerate delays ranging from several minutes to several hours. These jobs can be queued and processed in batches near lower-cost time windows.
    3. Offline batch workloads — corpus labeling, embedding generation, and evaluation regression testing have no strict latency requirements. They can be scheduled entirely during off-peak hours, such as overnight or early morning, directly reducing the unit cost by half.

    In production, scheduled jobs, message queues, and container orchestration can support this approach. During the day, keep only the minimum required instances running; at night, scale out to process batch workloads. If a task fails, retry it automatically while recording its actual token usage to avoid duplicate charges.

    6. Model Tiering: Use the Right Model for the Job

    The price gap between lightweight and highly capable models can be several times, but not every task requires the strongest model. A practical routing strategy is:

    • Intent classification, format conversion, and simple categorization: Use a lightweight model;
    • Complex reasoning, long-document synthesis, and code generation: Use a more capable model;
    • Draft with a lightweight model, then validate or refine with a stronger model: Balance quality and cost.

    Combined with caching and time-based scheduling, this approach can reduce the effective overall cost by an order of magnitude compared with using a powerful model for every request during peak hours.

    7. Conclusion: The “Meter” for AI Intelligence Is Now in Place

    Large model services are moving from scarce compute resources toward utility-like infrastructure. Prices are falling rapidly, billing is becoming more granular through the combination of tokens, cache status, and time period, and model tiers are becoming more distinct.

    For developers, the key competitive advantage is no longer simply knowing how to call an API. It is knowing how to optimize the cost of intelligence in the same way that engineers optimize energy consumption: design cache-friendly prompts, control generation length, schedule offline workloads during lower-cost periods, and establish chargeback and budget controls.

    When inference costs become observable, predictable, and optimizable like electricity bills, AI can be deployed at scale with greater confidence. Teams that learn to read and optimize this new “meter” will be able to obtain several times more intelligent workload capacity within the same budget.