Lesson 3 of 7
Input vs output
6 min read
Input and output are both tokens — so why does the reply cost several times more than the prompt you sent?
Reading is cheap, writing is dear
Input tokens — your prompt and any history — are read in one pass, so they're cheap. Output tokens — the reply — are generated one at a time, each step running the whole model again, so they typically cost around 5× more per token. The longer the answer you ask for, the more that side of the bill grows.
Output costs ~5× input — the answer is the pricey part.
You re-pay the history every turn
A model has no memory of the chat between turns, so every message re-sends the whole conversation as input. Turn ten pays to re-read turns one through nine. That's why long chats get more expensive with each reply — and why starting a fresh chat for a new topic saves money.
Every turn re-pays the whole conversation as fresh input.
For a cheaper, sharper answer: keep the chat focused, start fresh for new topics, and don't ask for more words than you need.
Where the money goes
- —Input (prompt + history) is cheap; read once.
- —Output (the reply) costs ~5× — made token by token.
- —Each turn re-pays the whole history — long chats cost more.
Why does a long conversation get more expensive over time?
Continue in the app
Take the whole What AI Costs course — tracked
Get your personalized path, progress and streaks in the app — this lesson and every next one, in order.