The Economics of LLM API Pricing: Why Larger Models Are Not Always More Expensive

    This article breaks down the compute economics behind large language model API pricing, explaining why parameter count alone does not determine cost. It covers the inference cost structure behind input and output token pricing, how prompt caching reduces repeated prefill work, how to calculate effective capacity from subscription quotas rather than per-token rates, and a task-tiering framework for model selection. Readers will learn practical methods for estimating cost per task, improving cache hit rates, and controlling overall API spending.

    1. The Phenomenon: Parameter Count and Call Price Rising Together

    A notable pattern has recently emerged in the industry: a new generation of ultra-large-parameter models has raised its external API pricing several times over compared to the previous generation, with output and input sides priced on the order of one hundred yuan and twenty yuan per million tokens respectively, while the cached portion is only about one yuan per million tokens. At the same time, a different technical approach shows the opposite trend — after scaling parameters to the trillion level, the unit price has dropped further.

    Looking at these two facts together leads to a conclusion that is easy to overlook: model price is not monotonically determined by parameter count. Parameter count determines the upper bound of capability and the lower bound of VRAM usage, while price is determined jointly by supply and demand, batching efficiency, cache reuse rate, unit compute cost, and commercial strategy. Treating “the model got bigger, so it got more expensive” as a causal relationship is a simplified misreading of inference economics.

    2. Cost Structure: What You Actually Pay for in a Single Call

    To understand pricing differences, you first need to break down inference cost. During the autoregressive decoding stage, every generated token requires moving all weights from VRAM to the compute units once, so cost is roughly proportional to “parameter count × number of output tokens.” The prefill stage, by contrast, can be highly parallelized, so its cost is closer to “number of input tokens × compute per token,” with a significantly lower unit cost.

    This explains a long-standing pricing convention: output price is usually three to five times the input price. It is not a marketing design but a faithful mapping of compute consumption. Any pricing that claims “same price for input and output with unchanged performance” must be subsidizing something else.

    Schematically, the cost of a single request can be written as:

    1. cost ≈ Pin * N_in + Pout * N_out
    2. where Pin is far smaller than Pout, and Pin drops by one to two orders of magnitude on a cache hit

    3. Cache Hits: What the One-Yuan Price Really Means

    Pushing the cache-hit price down to one yuan is essentially pricing the fact that “a repeated prefix does not need to be recomputed.” System prompts, tool definitions, long documents, and code repository context are often carried repeatedly within a single session. Prefilling them in full every time would be extremely wasteful.

    To make caching actually work in engineering terms, a few constraints must be respected:

    • Prefix stability: put volatile content (timestamps, random IDs, user input) at the end of the prompt to avoid polluting the prefix hash.
    • Fixed ordering: do not dynamically reorder tool lists and system instructions; a change in order invalidates the cache entirely.
    • Controlled granularity: split very long context into blocks so that reusable parts form independent segments.
    1. [Stable prefix: system instructions + tool definitions + project conventions] <- high hit rate
    2. [Semi-stable zone: long documents / code snippets] <- medium hit rate
    3. [Volatile tail: the current user question] <- no hit

    Raising the hit rate from thirty percent to seventy percent can cut overall input overhead by more than half — a larger gain than repeatedly comparing prices between models.

    4. Subscription Quotas: A Metric More Worth Counting Than Unit Price

    The original discussion raised a key observation: external API unit prices are often unaffordable for ordinary developers, and the actual quota of a subscription plan is the comparable measure. This has been repeatedly confirmed in practice.

    A real-scale usage record serves as a reference: in a project of roughly eighty thousand lines, doing only frontend interface and interaction optimization (rather than architectural refactoring) consumed most of the plan’s five-hour quota and more than ten percent of the weekly quota, with context usage exceeding two hundred thousand tokens. From this, the weekly quota of that plan tier can be inferred to be roughly equal to five “five-hour windows.”

    Converted into usable capacity, that means “one deep-work session per workday.” This positioning determines its reasonable use: it is not suited to continuous high-frequency iteration, but to tackling the single hardest problem each day. Used as an unlimited tool, the quota will be exhausted within two or three hours.

    It should be emphasized that quota definitions, window lengths, and model options vary greatly across vendors; specific numbers should be based on the official documentation. This article only provides the calculation method:

    1. effective capacity = window quota × number of daily windows × cache hit rate correction
    2. cost per task = plan price / number of task rounds completable per week

    5. A Selection Framework: Tier by Task, Not by Leaderboard

    Overall, the rational approach is to tier tasks and then match each tier to a cost level:

    1. High-value, low-frequency tasks (architecture design, diagnosing difficult defects, performance bottleneck analysis): use the strongest model; the cost share is acceptable.
    2. Medium-frequency daily development (feature implementation, test completion, code review): use a mid-tier model, combined with a stable prefix to improve cache hit rate.
    3. High-frequency lightweight tasks (formatting, comments, simple refactoring, log categorization): use a small or local model, with cost approaching zero.

    Supporting budget governance measures include: setting quota caps and alerts for different environments, instrumenting logging and monitoring services to track token consumption and cache hit rates, applying retrieval-based trimming to very long context rather than feeding it in full, and consolidating reusable conventions into a fixed prefix.

    6. Conclusion

    A several-fold price increase is not itself a basis for a decision. The real questions to answer are three: what is the cost per task, can the cache hit rate be raised, and is task tiering clear. Do these three things well, and total spending may still fall even if unit prices rise; conversely, even the cheapest unit price will be offset by inefficient context management. For a team, building observable usage data has more long-term value than chasing any price sheet.