LLM API Pricing Explained: Pay-as-You-Go vs. Subscription Plans

    This article explains why pay-as-you-go list prices can be several times higher than what subscription plans effectively cost. It covers how providers plan limited GPU capacity, how the two billing models differ in demand predictability and service control, and how a simple capacity model with per-token cost and sellable volume formulas can be applied, with a Python example.

    1. Background: The Engineering Behind Pricing

    Pricing for LLM services has been widely discussed recently. One common view holds that the list price of pay-as-you-go calls is several times, or even more, higher than the amount users effectively pay under subscription plans. Some people read this gap as a discount, while others argue that the list price itself is unreasonable.

    To understand this price structure, start from the provider’s perspective. LLM inference relies on accelerators such as GPUs, and over a given period the total available compute is limited. A provider needs to answer three questions: how much compute can be sold, when that compute will be consumed, and whether the rate of consumption can be predicted. Pricing strategy is essentially a response to these three questions.

    2. Pay-as-You-Go vs. Subscription Plans

    Pay-as-you-go billing measures usage per request or per token, and users do not commit to a usage level in advance. A subscription plan sets an available quota for a billing period. Users pay in advance, and the provider serves requests within that quota.

    Dimension Pay-as-you-go Subscription plan
    Metering Input and output tokens per request Quota or usage window within a period
    Demand predictability Low, depends on external callers High, quota is already sold and can be measured
    Resource planning Hard to reserve, so redundancy must be kept Required capacity can be estimated from sold quota
    User commitment Users can stop calling at any time Users have already paid, and renewal decides future usage
    Service guarantee difficulty Peak load may be hard to control Quotas and rate limits can constrain load

    The price levels of the two models should be compared within their own cost structures. The unit price of pay-as-you-go billing must cover the redundant capacity cost created by demand fluctuations. A subscription plan turns demand into a measurable committed volume. Providers can therefore plan capacity in advance, and unit cost is easier to control.

    3. A Basic Model for Capacity Planning

    Capacity planning has three steps: estimate the cost per token, estimate the total number of tokens that can be sold, and allocate that total across billing models.

    Cost per token generally depends on model size, hardware price, batching efficiency, and average throughput. A simplified formula is:

    Cost per token = hardware cost per unit time ÷ tokens processed per unit time

    Total sellable volume depends on peak throughput, the time window, and target utilization:

    Total sellable tokens = peak throughput × time window length × target utilization

    The code below demonstrates both calculations. The values are for illustration only and do not represent the cost of any real service.

    1. from dataclasses import dataclass
    2. @dataclass
    3. class CapacityPlan:
    4. hourly_hardware_cost: float # hardware cost per hour (CNY)
    5. tokens_per_second: float # measured average throughput (tokens/s)
    6. target_utilization: float # target utilization, between 0 and 1
    7. def cost_per_million_tokens(self) -> float:
    8. tokens_per_hour = self.tokens_per_second * 3600 * self.target_utilization
    9. return self.hourly_hardware_cost / tokens_per_hour * 1_000_000
    10. def monthly_token_capacity(self) -> float:
    11. return self.tokens_per_second * 3600 * 24 * 30 * self.target_utilization
    12. plan = CapacityPlan(hourly_hardware_cost=200.0, tokens_per_second=3000, target_utilization=0.6)
    13. print(f"Cost per million tokens: {plan.cost_per_million_tokens():.2f} CNY")
    14. print(f"Monthly token capacity: {plan.monthly_token_capacity():.0f} tokens")