Open Source and Price Increases in Parallel: The Compute Pricing Logic Behind LLM Services

    This article explains why large model providers are pursuing open sourcing and API price adjustments at the same time. It breaks down how compute scarcity changes pricing logic, decomposes the cost structure of an inference request (including caching, hit rate, and retention time), shows a sample weighted-price calculation, and offers a framework for evaluating price hikes, multimodal engineering paths, and user-side cost models, plus practical engineering recommendations.

    1. Background: Open Sourcing and Price Adjustments in Parallel

    The price of large model services has long been determined by two factors: the value created by model capability, and the real cost of inference resources. For a while, some providers used low prices to rapidly grow their user base while open sourcing model weights and inference frameworks, lowering the barrier for external teams. Once resources become tight, the same strategy creates new tensions. Open sourcing lets more teams deploy models themselves, while API price adjustments shift cost pressure onto pay-as-you-go users.

    To understand this combination, “openness” and “charging” need to be examined separately. Open sourcing addresses technology accessibility and ecosystem adoption; price adjustment addresses resource allocation and unit cost. The two goals do not conflict.

    2. How Compute Scarcity Changes Pricing Logic

    High-end accelerator cards are expensive to purchase, delivery cycles are affected by the supply chain, and deploying a single server or cluster can cost a very large amount. For inference services, the value of resources depends not only on total capacity but also on utilization. If a cluster runs at low load for long periods, fixed costs cannot be amortized effectively; if load exceeds capacity, queuing and timeouts directly hurt the user experience.

    When training jobs and online inference compete for the same pool of resources, price becomes a control mechanism. Raising the unit price reduces demand from low-value, high-frequency, easily replaceable calls, freeing capacity for core scenarios. This is a standard demand-side management method, similar in logic to peak/off-peak electricity pricing.

    The effect of this adjustment depends on users’ price elasticity. For batch jobs that are insensitive to latency and can switch providers, a price increase significantly reduces call volume. For deeply integrated workloads with high migration costs, demand usually remains stable in the short term.

    3. Breaking Down the Cost Structure of API Pricing

    The cost of a single inference request can be decomposed into the following parts:

    • Compute cost: the compute consumed during prefill and decoding;
    • Memory and bandwidth cost: the longer the context, the more it occupies;
    • Network and scheduling cost: load balancing, routing, and rate limiting;
    • Caching cost: the storage cost of retaining computed results for reused prefixes;
    • Operations and compliance cost: monitoring, auditing, incident handling, and so on.

    Caching has received particular attention in recent years. When multiple requests share the same prefix — such as a system prompt, a long document, or a code repository context — the server can reuse previously computed intermediate results, avoiding repeated prefill computation. On a cache hit, the compute per unit of input drops. However, caching consumes GPU memory or other storage, and retention time is limited.

    The real benefit of caching therefore depends on two variables: hit rate and retention time. Longer retention increases the probability of a hit but also increases storage usage. If a provider prices cache hits too low, it must rely on higher request volume to cover costs.

    The example below illustrates how to compute an effective unit price. The numbers are illustrative only and do not represent the pricing of any specific service.

    1. def effective_input_price(hit_rate: float,
    2. hit_price: float,
    3. miss_price: float) -> float:
    4. """Compute the weighted input unit price based on the cache hit rate
    5. (unit: yuan per million tokens)."""
    6. if not 0.0 <= hit_rate <= 1.0:
    7. raise ValueError("hit_rate must be between 0 and 1")
    8. return hit_rate * hit_price + (1 - hit_rate) * miss_price
    9. # Illustrative parameters: hit price is one tenth of the miss price, hit rate is 60%
    10. print(effective_input_price(0.6, 0.1, 1.0)) # 0.46

    From this formula, every 10-percentage-point increase in hit rate lowers the weighted unit price by an amount determined by the gap between the hit and miss prices. The larger the gap, the more significant the impact of cache design on total cost.

    4. Evaluating Price Increases and Making Horizontal Comparisons

    Whether a price adjustment is reasonable cannot be judged by the percentage increase alone. The original price may have been low to begin with, so the increase needs to be compared against the cost baseline. The price range of comparable services should also be considered. A common analytical framework involves three steps:

    1. Estimate the true cost per request, including inference, storage, and operations;
    2. Estimate the price sensitivity of the target user group;
    3. Compare the pricing of comparable services at similar capability levels to determine an acceptable price range.

    Price level must be compared together with capability level. At the same unit price, differences in context length, output quality, stability, and response speed can produce very different real cost-performance ratios.

    5. Engineering Paths for Multimodal Capability

    A common approach to landing visual understanding is to first validate the alignment between the vision encoder and the language model with a standalone model, then merge the capability into the main model once it is stable. A typical architecture consists of three parts: an image encoder, a projection layer, and a language decoder.

    When evaluating this kind of capability, keep the following points in mind:

    • Evaluate text and vision capabilities separately to avoid one masking the other;
    • Interpret benchmark differences together with sample size and task distribution — small gains may not be statistically significant;
    • In real business scenarios, test chart recognition, text extraction, and UI understanding individually.

    6. User-Side Cost Evaluation Methods

    The choice between pay-as-you-go and subscription billing depends on monthly usage. Let monthly usage be U, the per-token price be p, and the fixed subscription fee be F. When U × p exceeds F, the subscription is usually more economical; otherwise, pay-as-you-go is more appropriate.

    Subscriptions are not always the better option. They typically come with usage caps, feature restrictions, or differences in service terms, each of which needs to be checked individually.

    When selecting a provider, enterprises are advised to focus on the following aspects:

    • Unit pricing and caching rules, including hit conditions and retention duration;
    • Context window and output length limits;
    • Concurrency quotas, rate-limiting policies, and failover capability;
    • Data storage location and compliance requirements;
    • Model update frequency and version compatibility.

    7. Engineering Practice Recommendations

    1. Place static content such as system prompts and fixed documents at the beginning of the request to improve the cache hit rate.
    2. Build a unified invocation abstraction layer so you can switch between multiple providers, reducing the risk from a single provider’s price changes.
    3. Log the input/output token counts, latency, and cost of each call, and aggregate them by business line.
    4. Use asynchronous queues for low-value, batchable tasks and schedule calls during off-peak periods.
    5. Periodically re-test the quality and cost of different services with the same test set, instead of making decisions based on impressions.

    8. Conclusion

    Open sourcing and price adjustments are not contradictory. Open sourcing expands access to the technology, while price adjustments reflect resource allocation pressure when compute is scarce. When evaluating such strategies, you can build your own assessment framework from four angles: cost structure, caching mechanisms, usage models, and horizontal comparison.