Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

token-counting changedbuild-with-claude/token-counting

Nearest release: v2.1.334, published 11 hours 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+12added
Lines−7removed
From line 29 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits31to this page, all time

The whole hunk

from line 29, old and new numbered
/
lines
from line 29
2929 supportedPlatforms:
3030 Claude API: stable
3131 Amazon Bedrock: stable
32 Amazon Bedrock (bedrock-runtime): stable
32 Amazon Bedrock (bedrock-runtime):
33 availability: stable
34 note: Through Amazon Bedrock's `CountTokens` API.
3335 Claude Platform on AWS: stable
3436 Claude Models on Google Cloud (Anthropic managed): stable
3537 Claude Models on Google Cloud (Google managed): stable
from line 68
6668 
6769### Supported models
6870 
69All [active models](https://platform.claude.com/docs/en/models/overview) support token counting.
71All [active models](https://platform.claude.com/docs/en/models/overview) support token counting on the Claude API. For cloud platforms, see [Availability of token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting#feature-availability).
7072 
7173<Note>
7274 Claude 4.7 and later models and Claude Mythos Preview use a newer tokenizer. The same input text produces approximately 30 percent more tokens than on earlier models. The exact increase depends on the content and workload shape. Recount prompts against the model you plan to use rather than reusing counts measured against earlier models.
from line 1192
11901192 
11911193 ```python Python
11921194 import base64
1193 import anthropic
1195 # ...
11941196 
11951197 client = anthropic.Anthropic()
11961198 
from line 1486
14841486 
14851487## Availability
14861488 
1487Token counting is available on every model and eligible for zero data retention and HIPAA readiness.
1489Token counting is available on select models and eligible for zero data retention and HIPAA readiness.
14881490 
14891491### API support
14901492 
from line 1494
14921494 
14931495* Availability: Available
14941496 
1495| Status | Models |
1496| ----- | ----- |
1497| Available | [All models](https://platform.claude.com/docs/en/models/overview) |
1497| Status | Cloud platforms | Models |
1498| ----- | ----- | ----- |
1499| Available | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [All models](https://platform.claude.com/docs/en/models/overview) |
1500| Available<sup>1</sup> | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview), [Claude Opus 4.5](https://platform.claude.com/docs/en/models/opus-4-5/overview) |
1501 
15021. Through Amazon Bedrock’s `CountTokens` API.
14981503 
14991504#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
15001505 
Feedback