Count tokens in a Message changedapi/beta/messages/count_tokens
Nearest release: v2.1.301, 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+2added
Lines−0removed
From line
3,723
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
The whole hunk
from line 3723, old and new numbered
/
from line 3723
37233723
37243724 The inference speed mode for this request. `"fast"` enables high output-tokens-per-second inference.
37253725
3726 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.
3727
37263728 - `"standard"`
37273729
37283730 - `"fast"`
No line in this hunk matches that.