token-counting changedbuild-with-claude/token-counting
Nearest release: v2.1.316, published under an hour before 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+8added
Lines−8removed
From line
3
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 3, old and new numbered
/
from line 3
33url: https://platform.claude.com/docs/en/build-with-claude/token-counting
44description: Count the tokens in a message before you send it to Claude. Use token counts to manage rate limits and costs, make model routing decisions, and fit prompts to a target length.
55featureMetadata:
6 status: ga
6 status: stable
77 zdr:
88 eligibility: eligible
99 note: Excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Count tokens before sending requests.
from line 25
2525 - claude-sonnet-4-6
2626 - claude-opus-4-5-20251101
2727 supportedPlatforms:
28 Claude API: ga
29 Claude Platform on AWS: ga
30 Claude Models on Google Cloud (Anthropic managed): ga
31 Amazon Bedrock: ga
32 Amazon Bedrock (InvokeModel): ga
33 Claude Models on Google Cloud (Google managed): ga
34 Microsoft Foundry: ga
28 Claude API: stable
29 Claude Platform on AWS: stable
30 Claude Models on Google Cloud (Anthropic managed): stable
31 Amazon Bedrock: stable
32 Amazon Bedrock (InvokeModel): stable
33 Claude Models on Google Cloud (Google managed): stable
34 Microsoft Foundry: stable
3535---
3636
3737Token counting lets you determine the number of tokens in a message before you send it to Claude. This helps you make informed decisions about your prompts and usage. With token counting, you can:
No line in this hunk matches that.