Follow Discord
Sweep 31 Oct 2026 · 01:10Z Build v2.1.316 534 read Stable v2.1.309 Latest v2.1.316 Next v2.1.316 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

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

Recorded here
Lines+51added
Lines−1removed
From line 6 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

## Availability ### API support #### [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) #### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) ### Data handling

The whole hunk

from line 6, old and new numbered
/
lines
from line 6
66 status: ga
77 zdr:
88 eligibility: eligible
9 note: Excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
9 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.
10 supportedModels:
11 - claude-fable-5-1
12 - claude-mythos-5-1
13 - claude-fable-5
14 - claude-mythos-5
15 - claude-mythos-preview
16 - claude-opus-5-5
17 - claude-opus-5
18 - claude-sonnet-5-5
19 - claude-sonnet-5
20 - claude-haiku-5-5
21 - claude-haiku-4-5-20251001
22 - claude-opus-4-8
23 - claude-opus-4-7
24 - claude-opus-4-6
25 - claude-sonnet-4-6
26 - claude-opus-4-5-20251101
1027 supportedPlatforms:
1128 Claude API: ga
1229 Claude Platform on AWS: ga
30 Claude Models on Google Cloud (Anthropic managed): ga
1331 Amazon Bedrock: ga
32 Amazon Bedrock (InvokeModel): ga
1433 Claude Models on Google Cloud (Google managed): ga
1534 Microsoft Foundry: ga
1635---
from line 1477
14581477 Reduce cost and latency on repeated prompts by caching prompt prefixes.
14591478 </Card>
14601479</CardGroup>
1480 
1481## Availability
1482 
1483Token counting is available on select models and eligible for zero data retention and HIPAA readiness.
1484 
1485### API support
1486 
1487#### [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages)
1488 
1489* Availability: Available
1490 
1491| Status | Models |
1492| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1493| Available | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/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) |
1494 
1495#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
1496 
1497* Availability: Not available
1498 
1499### Data handling
1500 
1501[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
1502 
1503| Item | Zero data retention | HIPAA |
1504| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
1505| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1506| Details | Count tokens before sending requests. | — |
1507 
1508Applicable endpoints:
1509 
1510* `/v1/messages/count_tokens`
14611511 
Feedback