token-counting changedbuild-with-claude/token-counting
Nearest release: v2.1.307, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−3removed
From line
32
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits18to this page, all time
The whole hunk
from line 32, old and new numbered
/
from line 32
3232<Note>
3333 The token count is an **estimate**. In some cases, the actual number of input tokens used when creating a message might differ by a small amount.
3434
35 Token counts may include tokens added automatically by Anthropic for system optimizations. **You are not billed for system-added tokens**. Billing reflects only your content.
35 Token counts might include tokens added automatically by Anthropic for system optimizations. **You are not billed for system-added tokens**. Billing reflects only your content.
3636</Note>
3737
3838### Supported models
from line 784
784784<Note>
785785 See [Thinking and the context window](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-and-the-context-window) for more details.
786786
787 * Thinking blocks from **previous** assistant turns count toward your input tokens on models that [keep all prior turns](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model); on models that keep only the last turn, the API strips them and they do **not** count
788 * **Current** assistant turn thinking **does** count toward your input tokens
787 * Thinking blocks from **previous** assistant turns count toward your input tokens on models that [keep all prior turns](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model); on models that keep only the last turn, the API strips them and they do **not** count.
788 * **Current** assistant turn thinking **does** count toward your input tokens.
789789</Note>
790790
791791<CodeGroup>
No line in this hunk matches that.