Tokens From the Bill
Token problems: 20 of 20
Token problems: the workbook
Tokens from the Bill
Given a bill, how do you work out how many tokens were used? A real model bill lists input and output on separate lines, each priced per million tokens. Divide each line's cost by that side's price per million, then scale up to tokens. Agent operators use this to audit usage after the fact, confirming that the bill matches what the logs show.
Problem
An agent task's bill shows $12 for input and $30 for output. Input is priced at $3 per million tokens, output at $15 per million. How many tokens did the task process in total?
Input tokens from the input charge
Output tokens from the output charge
Add for the total tokens
Practice 1
An agent task's bill shows $35 for input and $45 for output. Input is priced at $5 per million tokens, output at $15 per million. How many tokens did the task process in total?
Input tokens from the input charge
Output tokens from the output charge
Add for the total tokens
Practice 2
An agent task's bill shows $6 for input and $50 for output. Input is priced at $2 per million tokens, output at $10 per million. How many tokens did the task process in total?










