How Many Tokens Can One kWh Generate: Inference Cost and Pricing Analysis

    This article analyzes how electricity, throughput, and API pricing relate in LLM inference. It estimates tokens per kilowatt-hour under explicit assumptions, explains the energy asymmetry between prefill and decode, converts energy into revenue under current pricing, and clarifies why energy-to-revenue ratios alone cannot determine business viability. A sample Python framework for measuring your own inference costs is included.

    1. Background

    A recent argument claims that the number of tokens generated per kilowatt-hour (kWh), combined with current API prices, is enough to show that the business outlook for closed-source LLMs is under threat. Such arguments typically place electricity, compute, and pricing under a single metric. To judge whether this holds, each component must first be broken down.

    This article does not evaluate any specific model’s benchmark results, since benchmark scores depend on test sets, prompts, and evaluation settings and require separate verification. It addresses one general question: in inference scenarios, what is the relationship between electricity, throughput, and price, and what does this imply for industry competition?

    2. Estimation Model and Key Assumptions

    Any energy estimate depends on assumptions, and the credibility of conclusions depends on whether those assumptions are reasonable. This article adopts the following assumptions and explains later how conclusions change as each assumption varies.

    2.1 Power Consumption Baseline

    Take a mainstream data-center AI accelerator card with a rated power of about 700 W. Cooling, networking, CPUs, and other overhead are captured by PUE (Power Usage Effectiveness, the ratio of total facility power to IT equipment power). With a PUE of about 1.3, the effective per-card power is:

    700 W × 1.3 ≈ 910 W, rounded to 900 W in this article.

    2.2 Throughput

    Throughput is the number of output tokens aggregated per second on a single card during large-batch inference. The baseline here is 1000 token/s, with a range of 500 to 3000 token/s considered. Throughput depends on model size, batching strategy, quantization, software optimization, and hardware utilization. Real values vary widely, so it should be treated as the primary source of uncertainty.

    2.3 Core Formula

    Energy per output token:

    E_token = P_eff / R

    where P_eff is effective power (joules per second, i.e., watts) and R is throughput (tokens per second). Since 1 kWh equals 3.6×10^6 joules, the number of tokens generated per kWh is:

    N = 3.6×10^6 / E_token

    3. From Electricity to Tokens

    Plugging in the baseline values:

    • Energy per output token: 900 ÷ 1000 = 0.9 joules
    • Output tokens per kWh: 3.6×10^6 ÷ 0.9 = 4 million

    The table below shows results as throughput varies. Energy is calculated at 900 W, and pricing is assumed at $50 per million output tokens.

    Per-card throughput (token/s) Output tokens per kWh Revenue at output price (USD)
    500 2 million 100
    1000 4 million 200
    3000 12 million 600

    Every doubling of throughput doubles the result. This shows how valuable engineering optimization is: with the same hardware and electricity, a system with higher throughput produces more tokens.

    4. The Asymmetry Between Input and Output

    Inference consists of two stages with different computational characteristics.

    Prefill stage processes the entire input context. These tokens can be computed in parallel, hardware utilization is high, and per-token energy is low. This article assumes prefill throughput of about 10,000 token/s per card, at roughly 0.09 joules per token. Therefore:

    3.6×10^6 ÷ 0.09 = 40 million input tokens per kWh

    Decode stage generates output tokens one by one. Each step depends on the previous result and requires frequent reads and writes of model parameters and cache, leaving compute units frequently idle. Per-token energy is therefore significantly higher.

    This asymmetry explains why per-token energy on the input side is far lower than on the output side. It also means the cost structure of the same model can differ greatly across tasks—for example, long-document question answering versus long-form text generation.

    5. Converting Revenue per kWh at Current Prices

    Assume input pricing of $10 per million tokens and output pricing of $50 per million tokens.

    • Output side: 4 million × 50 ÷ 1 million = $200 per kWh
    • Input side: 40 million × 10 ÷ 1 million = $400 per kWh

    Real requests usually contain both input and output. Assuming an input-to-output token ratio of 3:1, every group of 4 tokens contains 3 input tokens and 1 output token.

    • Energy: 3 × 0.09 + 1 × 0.9 = 1.17 joules per group
    • Groups per kWh: 3.6×10^6 ÷ 1.17 ≈ 3.077 million groups
    • Revenue: 3 × 10 + 50 = $80 per million groups, i.e., $0.00008 per group

    The combined result is about 3.077 million × 80 ÷ 1 million ≈ $246 per kWh (roughly ¥1,800 at an exchange rate of about 7.2 CNY per USD).

    This figure must be interpreted correctly. It represents “the notional revenue corresponding to one kWh of electricity under current pricing,” not the actual profit a provider earns from each kWh.

    6. Revenue per kWh Does Not Equal Cost or Profit

    Comparing revenue directly against energy consumption tends to overstate the share of energy in total cost. A simple calculation illustrates this.

    Electricity cost per million output tokens:

    • Energy: 0.9 joules × 1,000,000 = 900,000 joules, or 0.25 kWh
    • At $0.1 per kWh, the electricity cost is $0.025
    • Compared with a price of $50 per million output tokens, electricity accounts for about 0.05% of the price

    This shows that electricity is a very small share of the current price structure. The main costs of an inference service typically include:

    1. Hardware depreciation: purchase costs of accelerators, servers, and networking equipment, amortized over their useful life.
    2. Data center and infrastructure: fixed investments in facilities, cooling, power redundancy, and racks.
    3. Operations and R&D: engineering teams, model training, security and compliance, and customer support.
    4. Idle capacity: hardware sitting idle due to traffic fluctuations.
    5. Profit and competitive pricing: prices set by providers for market share or brand strategy.

    Therefore, price is determined mainly by hardware utilization, model efficiency, and market strategy—not directly by electricity rates. Revenue per kWh can serve as an efficiency reference, but it is insufficient to judge whether a business model is sustainable.

    7. Implications for the Industry Landscape

    Combining the above estimates, the following conclusions can be drawn.

    7.1 Competition Shifts from Model Capability Alone to Overall Efficiency

    At the same price, a service provider with higher throughput can sustain lower prices or earn higher margins. This raises the importance of inference optimization, batch scheduling, quantization, speculative decoding, and similar techniques. Model quality remains critical, but engineering capability directly translates into pricing advantage.

    7.2 The Division of Roles Between Open-Source and Closed-Source Models May Change

    Open-source or open-weight models allow users to deploy on their own or rented infrastructure. As deployment barriers fall, value shifts toward deployment, operations, and domain adaptation. Closed-source providers then need to differentiate on model quality, stability, ecosystem tooling, and security compliance.

    7.3 Price Pressure Will Persist, but Conclusions Require Caution

    When multiple providers compete at similar quality levels, price declines are a common outcome. However, falling prices do not mean a category of models will disappear. Many software and cloud markets have experienced price declines while developing a layered structure with coexisting high-end and low-end offerings. Judging sustainability requires considering R&D investment, user retention, and cost structure together—the ratio of energy to price alone cannot settle the question.

    8. Engineering Practice: How to Measure Your Own Inference Costs

    When selecting a solution, organizations should measure with their own workloads rather than citing third-party estimates. The sample code below provides a basic calculation framework.

    1. def energy_per_token(effective_power_w: float, throughput_tps: float) -> float:
    2. """Energy per output token (joules). Power in watts, throughput in tokens per second."""
    3. return effective_power_w / throughput_tps
    4. def tokens_per_kwh(joules_per_token: float) -> float:
    5. """Number of tokens that can be generated per kWh."""
    6. return 3.6e6 / joules_per_token
    7. def cost_per_million_tokens(hourly_cost: float, throughput_tps: float) -> float:
    8. """Total cost per million output tokens (same currency unit as hourly_cost)."""
    9. tokens_per_hour = throughput_tps * 3600
    10. return hourly_cost / tokens_per_hour * 1e6
    11. if __name__ == "__main__":
    12. e = energy_per_token(effective_power_w=900, throughput_tps=1000)
    13. print(f"Energy per token: {e:.2f} J")
    14. print(f"Tokens per kWh: {tokens_per_kwh(e):,.0f}")
    15. # hourly_cost is an example value; replace with your actual hourly total cost
    16. print(f"Cost per million tokens: {cost_per_million_tokens(hourly_cost=10.0, throughput_tps=1000):.4f}")

    In practice, focus on the following metrics:

    • Throughput: measure under real request distributions, not theoretical peak values.
    • Time to first token and tail latency: determines user experience and affects batching strategy.
    • Hardware utilization: chronically low utilization significantly raises unit costs.
    • Total cost: includes hardware depreciation, data center expenses, labor, and networking—not just electricity.

    9. Conclusion

    One kWh of electricity can generate roughly 4 million output tokens—a figure that…