Every API response tells you what it cost, but Claude, OpenAI and Gemini split cached, written and thinking tokens differently. Read the fields the wrong way and your per-run cost meter is off by 40 percent or more. Here’s how to do the math on each.
Turning the usage object into dollars: how Claude, OpenAI and Gemini count the tokens you pay for
calendar_today
November 27, 2026
domain
agenttoolbox-net