token-counting changedbuild-with-claude/token-counting
Nearest release: v2.1.318, published 4 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+10added
Lines−9removed
From line
24
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 24, old and new numbered
/
from line 24
2424 - claude-opus-4-6
2525 - claude-sonnet-4-6
2626 - claude-opus-4-5-20251101
27 - claude-sonnet-4-5-20250929
2728 supportedPlatforms:
2829 Claude API: stable
2930 Claude Platform on AWS: stable
from line 78
7778 curl https://api.anthropic.com/v1/messages/count_tokens \
7879 -H "x-api-key: $ANTHROPIC_API_KEY" \
7980 -H "content-type: application/json" \
80 -H "anthropic-version: 2023-06-01" \
81 -H "anthropic-version: 2026-10-21" \
8182 -d '{
8283 "model": "claude-opus-5-5",
8384 "system": "You are a scientist",
from line 229
228229 curl https://api.anthropic.com/v1/messages/count_tokens \
229230 -H "x-api-key: $ANTHROPIC_API_KEY" \
230231 -H "content-type: application/json" \
231 -H "anthropic-version: 2023-06-01" \
232 -H "anthropic-version: 2026-10-21" \
232233 -d '{
233234 "model": "claude-opus-5-5",
234235 "tools": [
from line 511
510511
511512 curl https://api.anthropic.com/v1/messages/count_tokens \
512513 -H "x-api-key: $ANTHROPIC_API_KEY" \
513 -H "anthropic-version: 2023-06-01" \
514 -H "anthropic-version: 2026-10-21" \
514515 -H "content-type: application/json" \
515516 -d @- <<EOF
516517 {
from line 826
825826 curl https://api.anthropic.com/v1/messages/count_tokens \
826827 -H "x-api-key: $ANTHROPIC_API_KEY" \
827828 -H "content-type: application/json" \
828 -H "anthropic-version: 2023-06-01" \
829 -H "anthropic-version: 2026-10-21" \
829830 -d '{
830831 "model": "claude-opus-5-5",
831832 "thinking": {
from line 1146
11451146 curl https://api.anthropic.com/v1/messages/count_tokens \
11461147 -H "x-api-key: $ANTHROPIC_API_KEY" \
11471148 -H "content-type: application/json" \
1148 -H "anthropic-version: 2023-06-01" \
1149 -H "anthropic-version: 2026-10-21" \
11491150 -d @- <<EOF
11501151 {
11511152 "model": "claude-opus-5-5",
from line 1481
14801481
14811482## Availability
14821483
1483Token counting is available on select models and eligible for zero data retention and HIPAA readiness.
1484Token counting is available on every model and eligible for zero data retention and HIPAA readiness.
14841485
14851486### API support
14861487
from line 1489
14881489
14891490* Availability: Available
14901491
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) |
1492| Status | Models |
1493| --------- | ----------------------------------------------------------------- |
1494| Available | [All models](https://platform.claude.com/docs/en/models/overview) |
14941495
14951496#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
14961497
No line in this hunk matches that.