Token problems: 12 of 20

By Prof. Tom Yeh

Published: 2026-05-28

URL: https://www.byhand.ai/p/library-agents-tokens-the-average-call


Token problems: the workbook

  1. Count the Tokens
  1. Subword Splitting
  1. Punctuation Counts
  1. Tokens per Word
  1. Will It Fit?
  1. The Price of a Call
  1. Two Kinds of Token
  1. Input or Output?
  1. The Two-Part Bill
  1. End-to-End Call Cost
  1. Comparing Three Calls
  1. The Average Call
  1. The System Prompt
  1. The System Prompt Tax
  1. Calls in a Budget
  1. Tokens on a Budget
  1. How Long Will It Take?
  1. The Split Matters
  1. Pricing per Million Tokens
  1. Tokens from the Bill

How do you estimate total usage when every call is different? Average a sample of recent calls to get a representative size, then multiply by the expected volume. Plans and budgets scale from the average, not from any single call. Agents running at production scale need this estimate to set daily budgets and catch cost spikes early.

Problem

An AI agent handled three sample calls of 400, 500, and 600 tokens. It will run 200 calls today. Using the average call size, estimate the total tokens for the day.

Average the sample calls

Multiply the average by the day's calls

Practice 1

An AI agent handled three sample calls of 300, 600, and 900 tokens. It will run 100 calls today. Using the average call size, estimate the total tokens for the day.

Average the sample calls

Multiply the average by the day's calls

Practice 2

An AI agent handled four sample calls of 200, 400, 400, and 600 tokens. It will run 500 calls today. Using the average call size, estimate the total tokens for the day.

Average the sample calls

Multiply the average by the day's calls


Next: 13. The System Prompt