OpenAI and Anthropic count cached tokens in opposite ways
This story is from 2026-11-30. It is preserved in the archive; the latest stories are on the live feed.
Send the same 2,048-token prompt to OpenAI and to Anthropic, with most of it served from the prompt cache, and look at the usage objects that come back: OpenAI prompt_tokens = 2048 (prompt_tokens_details.cached_tokens = 1792) Anthropic input_tokens = 256 (cache_read_input_tokens = 1792) Same prompt…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-30 09:02 · DEV Community — AI
OpenAI and Anthropic count cached tokens in opposite ways