Token Economics: Why AI Inference Costs Are Plummeting While Total Spend Keeps Rising
This article breaks down the paradox behind falling per-token prices and growing AI bills, explaining the Jevons effect, how token metering works, the four real drivers of cost, and a four-layer engineering approach to measurement, input compression, model routing, and governance. It also shows how to shift from raw spend to unit economics so teams can judge whether their AI usage is actually worth it.
1. The Paradox: Unit Prices Are Collapsing, Total Bills Are Expanding
Look at two sets of data moving in opposite directions. In early 2023, a model at the then state of the art cost roughly $30 per million output tokens. By early 2026, the same capability tier had dropped to around $0.40, a compression of more than 98% over three years. An annual AI index report from a university AI research institution goes further, noting that inference costs for a general-purpose chat model tier fell more than 280-fold between late 2022 and late 2024. Extrapolating roughly along that curve, by around 2027 the inference cost of “generating an entire book” could be less than a cup of coffee.
Yet the experience on the enterprise side is the exact opposite: average monthly AI-related spend rose from about $63,000 in 2024 to about $85,500 in 2025, an increase of roughly 36%; the share of enterprises planning to spend more than $100,000 per month more than doubled; and about 40% of enterprises have crossed the $10 million annual AI spend threshold, most of them unable to clearly answer “what did this money buy us.”
This is not a contradiction but a textbook case of the Jevons Paradox: when unit cost falls by two orders of magnitude, the number of reachable scenarios, call frequency, and context length all expand at the same time, and total consumption often grows faster than the unit price falls. The engineering conclusion is clear: unit price is no longer the main variable; the “usage structure” of tokens is.
2. Why Tokens Are the Billing Unit: Understanding the Metering Basis
A token is the smallest discrete unit a model processes text into, roughly corresponding to a subword fragment. In English, one token is about 0.75 of a word; in Chinese, one character usually maps to one or two tokens. Billing is generally split into four parts:
- Input (prompt) tokens: everything you send;
- Output (completion) tokens: what the model generates, usually priced significantly higher than input;
- Cached input tokens: a discounted price when a repeated prefix is reused;
- Multimodal inputs such as vision or audio: converted into equivalent tokens by image tiles or duration.
The key point: cost is not “how many times you asked,” but “how many characters you sent each time, how many it generated, and how many were repeated.” A coding assistant that stuffs an entire 4,000-line codebase into context can cost the same in a single call as hundreds of concise queries.
An illustrative cost estimation function:
def estimate_cost(in_tok, out_tok, p_in=0.15, p_out=0.60,cache_ratio=0.0, cache_discount=0.1):# Unit price: USD per million tokenshit = in_tok * cache_ratiomiss = in_tok - hitreturn (miss * p_in + hit * p_in * cache_discount+ out_tok * p_out) / 1_000_000
3. The Four Real Drivers of Cost Structure
- Context inflation: long-document summarization and full-corpus retrieval augmentation make input tokens grow linearly or even quadratically.
- Chain-of-thought and reasoning tiers: higher reasoning tiers consume large amounts of “thinking tokens,” which count as output and amplify the bill most visibly.
- Retries and failure amplification: retries caused by timeouts, malformed output, or wrong tool-call parameters often produce 2 to 3 times wasted consumption.
- Multi-agent orchestration: one orchestration task dispatches several subtasks, token consumption multiplies roughly with the number of agents, and there is no unified accounting basis.
4. Engineering Token Costs: A Practical Four-Layer Approach
4.1 Metering Layer: Instrument First, Optimize Later
Tag every call with a business identifier, record input/output/cached tokens, latency, and result status, write it all to a logging service, and aggregate by business line, scenario, and model tier on a monitoring and alerting platform. A bill without attribution cannot be optimized.
{"trace_id":"a1b2","scene":"doc_qa","model_tier":"mid","in_tok":5820,"out_tok":410,"cache_hit":0.72,"status":"ok"}
4.2 Structure Layer: Compress the Input
- On the retrieval side, control Top-K and fragment length, deduplicate and rerank before concatenation;
- Stabilize prompt prefixes by placing the unchanging system instructions first to improve cache hit rates;
- Summarize long documents in layers before feeding them into the Q&A pipeline.
4.3 Routing Layer: Assign Tiers by Difficulty
Use a lightweight classifier or rules to judge task complexity: simple tasks go to a smaller-tier model, complex ones escalate. A common practice is to try a small tier first and escalate when confidence is insufficient, which can significantly cut expensive output tokens.
4.4 Governance Layer: Budgets, Quotas, and Circuit Breakers
Set token budgets and rate quotas per business, automatically degrade or queue beyond thresholds; cap failed retries with exponential backoff to avoid a “billing avalanche.”
5. From Cost to Unit Economics: Answering “Is It Worth It”
Technical teams should switch the metric from “how much was spent” to “cost per unit of business outcome”:
- Cost per thousand successful Q&A, cost per document processed, cost per merged line of code;
- First-pass success rate, manual rework rate, cache hit rate;
- Effective token ratio = tokens that produce usable results / total tokens.
When the effective token ratio stays below 50% over the long term, the problem lies in pipeline design rather than unit price. The right move then is to rework context and workflow, not to wait for the next price cut.
6. Architecture and Selection Recommendations
Use a model abstraction layer to isolate the concrete implementation, switching tiers and parameters via configuration to avoid tightly coupling business code to any single implementation; schedule asynchronous batch jobs off-peak, moving deferrable bulk generation to low-load periods; use object storage for raw corpora and intermediate artifacts, a message queue for peak shaving, and a container platform for an elastic inference gateway. In these scenarios, Baidu AI Cloud typically provides a combination of general-purpose capabilities such as object storage, message queue, container platform, logging service, and monitoring and alerting, to build a measurable and governable token cost foundation.
7. Conclusion
The essence of token economics is turning “intelligence” into a measurable, attributable, and optimizable production factor. Falling unit prices are an irreversible long-term trend, but whether total spend stays under control depends on whether an enterprise has built the engineering loop of metering, compression, routing, and governance. Whoever manages tokens as a first-class metric first will capture real cost dividends in a period of price deflation.
