Count tokens in a Message changedapi/messages/count_tokens
Nearest release: v2.1.334, published 3 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+1added
Lines−13removed
From line
1,173
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits27to this page, all time
The whole hunk
from line 1173, old and new numbered
/
from line 1173
11731173
11741174 Powerful intelligence for long-running agents and coding
11751175
1176 - `"claude-sonnet-4-5"`
1177
1178 **Deprecated**: Will reach end-of-life on November 30, 2026. Please migrate to claude-sonnet-5-5. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.
1179
1180 High-performance model for agents and coding
1181
1182 - `"claude-sonnet-4-5-20250929"`
1183
1184 **Deprecated**: Will reach end-of-life on November 30, 2026. Please migrate to claude-sonnet-5-5. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.
1185
1186 High-performance model for agents and coding
1187
11881176 - `string`
11891177
11901178- `cache_control: optional CacheControlEphemeral or null`
from line 1213
12251213
12261214 The inference speed mode for this request. `"fast"` enables high output-tokens-per-second inference.
12271215
1228 Some models require the `fast-mode-2026-02-01` beta header for any `speed` value. See [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode?sdk_languages=http) for which models.
1216 Some models require the `fast-mode-2026-02-01` beta header when `speed` is `"fast"`. See [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode?sdk_languages=http) for which models.
12291217
12301218 - `"standard"`
12311219
No line in this hunk matches that.