AI Costs Explained: Why Output Tokens Cost 5x More · postter.us
AI Costs Explained: where the price of AI actually comes from, and why output tokens cost 5 times more than input tokens. No jargon.
We follow one prompt to an AI server, a $375,000 machine with eight NVIDIA H100 GPUs, and look at the two jobs the GPU does during inference. Reading your prompt (prefill: fast, the whole chip working) and writing the answer (decode: one word at a time, most of the chip waiting). Then the math behind the token cost: why one GPU can only write about 48 words per second per conversation, why input isn't free either (the KV cache), why every turn re-sends the whole conversation, what prompt caching really saves, why thinking tokens are billed as output, and why an AI agent costs 40 to 60 times a single question.
At the end, the five things that lower any AI bill.
Chapters
0:00 The bill
0:16 What a token is
0:34 The trip to the datacenter
0:52 What the machine costs
1:10 Two jobs, one chip
1:34 Reading: prefill
2:06 Why reading is cheap
2:38 Writing: decode
3:00 Why writing is slow
3:10 The ceiling: 48 words a second
3:14 Reading vs writing: 73x
3:30 The KV cache
3:46 The snowball
4:00 Caching
4:14 Thinking tokens
4:30 Cheaper tokens, bigger bills
4:50 Agents
5:10 Back to the bill
5:26 Five ways to lower the bill
Tradeoff Layer explains cloud and AI infrastructure, and what it costs, so anyone can understand it.
#AI #LLM #GPU #tokens #cloudcosts
Jelajahi Postter