Pricing Per Million Tokens
Token problems: 19 of 20
Token problems: the workbook
Pricing per Million Tokens
How does real model pricing work? Every major API quotes its price per million tokens, with input and output on separate lines. Output costs several times more than input. To find the total cost, price each side on its own, then add. When comparing models for an agent, these two numbers together determine the real cost per call.
Problem
A model charges $3 per million input tokens and $15 per million output tokens. A task processes 2,000,000 input tokens and 1,000,000 output tokens. What does the task cost?
Cost of the input tokens
Cost of the output tokens
Add for the total cost
Practice 1
A model charges $4 per million input tokens and $12 per million output tokens. A task processes 3,000,000 input tokens and 2,000,000 output tokens. What does the task cost?
Cost of the input tokens
Cost of the output tokens
Add for the total cost
Practice 2
A model charges $2 per million input tokens and $10 per million output tokens. A task processes 4,000,000 input tokens and 1,000,000 output tokens. What does the task cost?










