LLM API Pricing in 2026: A Rational Breakdown of Costs, Margins, and Subsidies

    This article explains why low LLM API prices cannot be judged by model scale or per-call fees alone. It separates training, inference, and commercial subsidy costs; outlines a reusable inference cost model; and shows how utilization, batching, KV caching, quantization, and input/output economics affect pricing. It also offers a framework for comparing managed APIs with self-hosting based on total task cost rather than headline price per million tokens.

    In recent years, LLM API prices have continued to fall. Pricing has gradually moved from early per-call billing toward finer-grained token-based billing. As input and output prices keep declining, a widely repeated judgment has emerged: current API prices are unsustainable, and providers are merely subsidizing the service with capital investment. Once external funding decreases, prices will rise quickly.

    That view is not entirely groundless. LLM training requires enormous compute and data resources, and inference continuously consumes high-performance accelerators, electricity, data center space, and network bandwidth. On the surface, the fees users pay may seem hard to cover the full investment. But if model R&D costs, inference service costs, and consumer subscription subsidies are separated, it becomes clear that whether an API price is loss-making cannot be determined only by model size or the cost of a single call. A complete cost model is needed.

    1. Separate Three Cost Categories: Training, Inference, and Commercial Subsidy

    When discussing API pricing, the most common mistake is to add all costs together and compare the total directly with token revenue. In reality, the LLM business contains at least three categories of spending with different characteristics.

    1.1 Training cost is a one-time or staged investment

    Model training usually involves large-scale data processing, algorithm experiments, cluster scheduling, engineering development, and long periods of accelerator operation. Training costs can be very high, but they do not increase linearly with every API request.

    From an accounting and business operations perspective, training cost is closer to a long-term asset investment. Providers spread it across future user calls, subscription revenue, and enterprise service revenue over a longer period. Therefore, it is not valid to infer that every token is losing money simply because a model required a large training investment.

    Of course, if a model has a very short lifecycle and insufficient user scale, the training investment may indeed fail to be recovered. That is a failure of product commercialization or insufficient return on investment. It is not the same as saying that the marginal cost of the inference API itself is higher than its selling price.

    1.2 Inference cost is the core basis of API pricing

    Every time a user calls an API, the provider must allocate inference resources to the request. The main costs include:

    • Accelerator depreciation;
    • Server procurement and maintenance;
    • Data center colocation and cooling;
    • Electricity consumption;
    • Network egress and cross-region transmission;
    • Scheduling, gateway, logging, and monitoring systems;
    • Labor costs for R&D, operations, and security teams.

    Among these, the costs most closely tied to token volume and generation speed are inference compute resources. Input tokens usually require context processing, while output tokens must be generated step by step. Different model architectures, context lengths, batching methods, and hardware utilization all affect per-token cost.

    1.3 Consumer subscriptions may carry more subsidy

    Consumer subscriptions are often charged monthly rather than strictly by usage. High-frequency users may consume far more compute than average, while low-frequency users may never use their full quota. Providers balance costs through aggregate statistics across the user base.

    By contrast, enterprise APIs usually price input and output tokens separately, and their price structure is closer to actual resource consumption. Therefore, the market phenomenon of “model services being heavily subsidized” may occur more often in fixed monthly fees, free quotas, and promotional packages than in every individual API token.

    2. Building a Reusable Inference Cost Model

    To judge whether an API price is reasonable, one can estimate from the perspective of building a dedicated inference cluster. It is not necessary to know all of a provider’s internal data. Public hardware prices, power consumption, and operating assumptions are enough to arrive at an approximate range.

    A simplified monthly cost formula is as follows:

    1. Monthly total cost =
    2. hardware depreciation
    3. + data center colocation
    4. + electricity
    5. + network and storage
    6. + operations and management

    To calculate per-token cost:

    1. Per-token cost =
    2. monthly total cost ÷ monthly effective processed tokens

    Here, “monthly effective processed tokens” is the most critical variable. With the same hardware, different utilization rates can lead to unit costs that differ by several times.

    2.1 Hardware depreciation should not be calculated from the one-time purchase price

    Suppose an inference server is configured with several high-end accelerators and the complete system costs hundreds of thousands of dollars. This amount should not simply be divided by the number of tokens processed in the current month. Instead, it should be amortized over the expected service life.

    For example, if the hardware service life is set to three years, monthly hardware depreciation is roughly:

    1. Monthly hardware depreciation = total server purchase price ÷ 36

    Actual calculations must also consider residual value, repairs, replacement parts, and idle time. If a provider adopts a shorter technology refresh cycle, depreciation pressure increases noticeably. If hardware can run at high load for many years, per-token cost will decrease.

    2.2 Electricity cost is usually not the only major component

    Accelerator power consumption is only part of electricity cost. It must be combined with CPUs, memory, network equipment, storage devices, and cooling systems. Engineering practice often uses a power usage effectiveness metric to estimate additional data center overhead:

    1. Total electricity consumption = IT equipment electricity consumption × data center power usage effectiveness factor

    Assuming servers run at high load for long periods, power consumption and electricity prices directly affect cost. In many scenarios, however, hardware depreciation and losses from idle resources may deserve more attention than electricity bills.

    2.3 Utilization determines whether self-hosting is cost-effective

    In theory, self-hosted servers may be cheaper than API prices, but only if the equipment continuously receives enough effective requests.

    For example, a set of servers can process a large number of tokens per month. If only 20% of theoretical throughput is actually used, hardware depreciation, colocation, and operations costs still occur as usual, and the final per-token cost rises significantly.

    Therefore, cost should not be calculated using full-load throughput alone. A more reasonable approach is to calculate three scenarios at the same time:

    • Low utilization: resource usage of about 20%;
    • Medium utilization: resource usage of about 50%;
    • High utilization: resource usage of about 80%.

    Only at medium-to-high utilization can a self-built cluster show a clear cost advantage. This is also why cloud APIs have value: they transfer hardware procurement and idle risk to the provider, and users pay only for the resources they actually use.

    3. Why API Prices Keep Falling

    Even when per-token prices are already low, the market may continue to cut prices. The reason is not necessarily that providers are losing money unconditionally. Inference efficiency is also improving.

    3.1 Batching improves hardware utilization

    Online requests arrive at different times and have different lengths. If every request monopolizes a set of inference resources, utilization will be very low. Modern inference systems combine multiple requests into batches to keep accelerators working as continuously as possible.

    The more fully batching is applied, the more tokens each unit of hardware can process, and the easier fixed costs are to spread. In high-concurrency scenarios, providers can achieve economies of scale more easily than an individual enterprise running its own servers.

    3.2 KV caching reduces repeated computation

    In multi-turn conversations and long-context tasks, a large amount of historical content may remain unchanged. Inference systems can cache intermediate states that have already been processed, avoiding the need to recompute from scratch on every turn.

    This reduces repeated computation in long-context scenarios, but caching also consumes VRAM and introduces scheduling complexity. Therefore, caching does not lower costs unconditionally. It must be evaluated together with request patterns, context reuse rate, and VRAM capacity.

    3.3 Quantization and model compression reduce resource requirements

    Techniques such as model quantization, sparsification, and layered loading can reduce VRAM usage and improve inference speed. For tasks that do not require extremely high precision, compressed models can often deliver results close to the original model at lower cost.

    This also explains why stronger model capabilities do not necessarily lead to higher prices. With software optimization and hardware iteration, the price of unit compute may fall, and inference efficiency may improve further.

    3.4 Input and output prices have structural differences

    Input tokens can often be made cheaper through caching, batching, and parallel processing. Output tokens must be generated step by step and are affected by generation speed and the decoding process, so their cost structure is often different.

    Therefore, pricing input and output separately is not merely a marketing design. It reflects differences in resource consumption between the two types of computational tasks. When estimating budgets, enterprises should not look only at the input unit price. They should also analyze average output length, context reuse ratio, and peak concurrency.

    4. Low Prices Do Not Mean Providers Have No Profit

    API prices may be lower than the intuitive cost for users to procure all resources themselves, but that does not mean providers are necessarily losing money. Providers have several advantages that individual users find difficult to replicate.

    First, providers can aggregate a large number of user requests and keep hardware at high utilization. Second, they can dynamically schedule requests based on request characteristics, assigning short requests, long requests, and high-priority requests to different resource pools. Third, they usually set rate limits, concurrency limits, and different service levels, allocating limited compute to users with different willingness to pay.

    In addition, API revenue does not necessarily carry all business objectives. It may form a revenue portfolio together with enterprise solutions, platform services, value-added capabilities, and long-term customer contracts. Looking at a single token price in isolation makes it difficult to reconstruct the full business model.

    However, this does not mean every low price is reasonable. If a price remains below the combined cost of hardware, energy, and operations for a long time, the provider can only sustain it through financing, cross-subsidy, or strategic investment. The key question is whether price declines are accompanied by improvements in inference efficiency, expansion of user scale, and higher resource utilization.

    5. Enterprises Should Not Compare Only Price per Million Tokens

    For development teams, the lowest unit price does not necessarily produce the lowest total cost. A more useful metric is “the total cost of completing one effective task.”

    It can be estimated as follows:

    1. Total task cost =
    2. input tokens × input price
    3. + output tokens × output price
    4. + retry cost
    5. + failed request cost
    6. + business cost caused by latency
    7. + operations and integration cost

    For example, a lower-priced model that frequently generates incorrect results may require manual review, repeated calls, or additional workflow steps, making the final total cost higher. Conversely, a slightly more expensive model with a higher first-pass success rate may be more suitable for critical business tasks.

    Enterprises should focus on evaluating the following metrics:

    1. Cost per task: the average cost required to complete summarization, code generation, classification, or question answering.
    2. Success rate: the proportion of requests that meet business acceptance criteria.
    3. Latency and throughput: whether the service can respond stably during peak periods.
    4. Context capability: effective performance in long documents and complex conversations.
    5. Billing transparency: whether input, output, caching, and failed requests are clearly traceable.
    6. Data security and compliance: whether data processing, retention, and access control meet business requirements.
    7. Migration cost: whether changing models or providers in the future requires large-scale rework.

    Cloud platforms such as Baidu AI Cloud typically offer model services of different specifications and general cloud resources. Enterprises should compare managed APIs, self-hosted inference clusters, and hybrid deployment based on business scale, data sensitivity, and peak traffic, rather than making decisions solely on advertised unit prices.

    6. When to Call an API and When to Self-Host

    APIs are better suited to the following scenarios:

    • The business is in the validation stage and call volume is not yet stable;
    • The team needs to integrate multiple models quickly;
    • The team lacks accelerator operations and inference optimization expertise;
    • Requests have obvious peak and trough differences;
    • Elasticity, speed to launch, and service availability are more important.

    Self-hosting or dedicated deployment is better suited to the following scenarios:

    • Request volume is stable and large over the long term;
    • Data isolation and compliance requirements are high;
    • The business requires custom models or specialized inference workflows;
    • The business needs stronger control over latency, concurrency, and resource scheduling;
    • The team has the capability to operate hardware, containers, scheduling, and monitoring.

    A more realistic option is a hybrid architecture: use dedicated resources for stable baseline traffic, scale burst traffic through APIs, use lower-cost models for low-risk tasks, and upgrade high-value tasks to stronger models. This balances cost, performance, and reliability.

    Conclusion: Focus on the Cost Curve, Not a Single Price

    LLM API pricing in 2026 cannot be reduced simply to “capital subsidy” or “provider profiteering.” On the inference side, hardware depreciation, resource utilization, batching, caching, and model compression are jointly pushing down unit token cost. On the commercial side, consumer subscriptions, free quotas, and strategic investment may carry part of the subsidy. On the user side, a low-priced API does not necessarily mean low total cost.

    A more reliable approach is to separate training investment from inference cost, separate theoretical full-load values from real utilization, and convert token prices into the comprehensive cost of specific business tasks. Only with such an accounting framework can enterprises judge whether a price reflects a reasonable decline brought by technological progress or a temporary market subsidy.

    For developers, the most important task is not to predict when prices will rise, but to build cost observability: record input and output tokens for each request, task success rate, retry count, and actual business output. Once this data is accumulated continuously, model selection can move from “comparing unit prices by feel” to engineering decisions based on a real unit economics model.