The Two-Part Bill
Token problems: 9 of 20
Token problems: the workbook
The Two-Part Bill
Why does the same token count sometimes cost more? Because input and output are billed separately, at different rates. Input is read in a single pass; output is generated one token at a time, which is the expensive part. An agent that writes long replies will always cost more than one that reads the same amount and answers briefly.
Problem
An AI agent sends 600 input tokens and receives 200 output tokens. Input is priced at 2 cents per 100 tokens; output is priced at 8 cents per 100 tokens. What does the call cost in total?
Cost of the input tokens
Cost of the output tokens
Add the two costs
Practice 1
An AI agent sends 1,000 input tokens and receives 500 output tokens. Input is priced at 2 cents per 100 tokens; output is priced at 8 cents per 100 tokens. What does the call cost in total?
Cost of the input tokens
Cost of the output tokens
Add the two costs
Practice 2
An AI agent sends 400 input tokens and receives 300 output tokens. Input is priced at 2 cents per 100 tokens; output is priced at 8 cents per 100 tokens. What does the call cost in total?










