Count tokens in a Message changedapi/beta/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
3,226
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits38to this page, all time
The whole hunk
from line 3226, old and new numbered
/
from line 3226
32263226
32273227 Powerful intelligence for long-running agents and coding
32283228
3229 - `"claude-sonnet-4-5"`
3230
3231 **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.
3232
3233 High-performance model for agents and coding
3234
3235 - `"claude-sonnet-4-5-20250929"`
3236
3237 **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.
3238
3239 High-performance model for agents and coding
3240
32413229 - `string`
32423230
32433231 - `name: "advisor"`
from line 3819
38313819
38323820 The inference speed mode for this request. `"fast"` enables high output-tokens-per-second inference.
38333821
3834 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.
3822 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.
38353823
38363824 - `"standard"`
38373825
No line in this hunk matches that.