Token problems: 14 of 20

By Prof. Tom Yeh

Published: 2026-05-28

URL: https://www.byhand.ai/p/library-agents-tokens-the-system-prompt-tax


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

What does it cost to repeat the same instructions on every call? The model has no memory between turns, so the system prompt is re-sent in full each time, adding a fixed cost regardless of what the user asks. A longer system prompt means a larger per-call tax. For agents with detailed instructions, this fixed cost can add up to a significant share of the total bill.

Problem

An AI agent's system prompt is 250 tokens. Over 10 calls, at 2 cents per 100 tokens, what do those system-prompt tokens cost?

Total system-prompt tokens over all calls

Price those tokens

Practice 1

An AI agent's system prompt is 300 tokens. Over 20 calls, at 2 cents per 100 tokens, what do those system-prompt tokens cost?

Total system-prompt tokens over all calls

Price those tokens

Practice 2

An AI agent's system prompt is 400 tokens. Over 5 calls, at 3 cents per 100 tokens, what do those system-prompt tokens cost?

Total system-prompt tokens over all calls

Price those tokens


Next: 15. Calls in a Budget