Why AI Inference Is So Expensive
AI inference costs persist after deployment because each generated token consumes compute and memory bandwidth. Learn what drives spend and how to control it.
In the full article
Read the transcript
Auto-generated captions; wording may contain recognition errors.
[music] Training an AI model makes the headlines. A hund00 million, months [music] of compute, a breakthrough result announced to the world. But training is a one-time fixed [music] cost. Once it finishes, the bill stops. Inference is the opposite. [music] It starts the moment you ship and accumulates every hour, every day, for as long as users are hitting your system. [music] For most AI products in production, inference costs exceed total training costs within weeks of launch. The reason comes down to what inference actually requires. [music] Every time a user sends a prompt, the model loads billions of parameters from GPU memory, runs matrix [music] multiplications across all of them, and repeats that process once per [music] output token. Generating a 500 token response means running that cycle 500 times sequentially. Each step [music] reading the full model weights from memory. That is why GPUs, specifically the high bandwidth memory architecture they [music] provide, are not optional for production inference. The math cannot run fast enough on anything else at scale. [music] Tokens are the billing unit and the cost structure is asymmetric in a way most teams underestimate. [music] Output tokens cost 3 to 10 times more than input tokens across major API providers [music] because generating each output token requires a full model forward pass while reading input tokens is processed in a single parallel prefill [music] step. An application that generates long responses pays disproportionately more than one that summarizes or classifies. The good news is that inference costs have fallen roughly a thousand times over three years, [music] making capabilities that once cost $60 per million tokens available [music] today for under a dollar. The challenging news is that total inference spending has grown simultaneously [music] because usage scales exponentially faster than costs decline. Teams save 90% per request [music] and then see 10 times the traffic resulting in the same or higher bills. Inference now represents [music] 55 to 65% of all AI infrastructure spending up from 1/3 in 2023. Cost per million tokens has become the [music] primary unit economics metric for any AI product and optimizing it through model routing, caching, quantization and right sizing [music] is where engineering effort now concentrates.


