Part 14 / Topic 7 of 7
Tokens, cost and prompt caching
Every response reports usage — read it, log it, multiply it. At Claude Opus 5.5 list prices (verified on the official pricing page, 2026-11-29: $4 per million input tokens, $20 per million output):
# executed in this repo (stage-5 track A example): 3,000 in + 400 out per request
# one request: $0.0200
# 10,000 per day: $200.00
# 30 days: $6,000.00
Small numbers multiply into budgets. The levers: shorter prompts, smaller models for simple steps, batching non-urgent work (the Batches API trades latency for a discount), and prompt caching — mark a stable prefix (system prompt, reference documents) as cacheable and repeated calls reread it at a fraction of the input price (guide).
Done here? The practice set for Part 14 — 4 exercises with solutions — is on the part page.