Count tokens in a Message changedapi/beta/messages/count_tokens
Nearest release: v2.1.287, 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+12added
Lines−6removed
From line
119
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits16to this page, all time
The whole hunk
from line 119, old and new numbered
/
from line 119
119119
120120 - `"ce-plugins-2026-09-01"`
121121
122 - `"spend-limit-reads-2026-09-26"`
123
122124- `"anthropic-user-profile-id": optional string`
123125
124126 The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header.
from line 3156
31543156
31553157 Powerful intelligence for long-running agents and coding
31563158
3159 - `"claude-mythos-preview"`
3160
3161 **Deprecated**: Will reach end-of-life on June 30, 2026. Please migrate to claude-mythos-5. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.
3162
3163 New class of intelligence, strongest in coding and cybersecurity
3164
31573165 - `"claude-sonnet-4-5"`
31583166
3167 **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.
3168
31593169 High-performance model for agents and coding
31603170
31613171 - `"claude-sonnet-4-5-20250929"`
31623172
3163 High-performance model for agents and coding
3173 **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.
31643174
3165 - `"claude-mythos-preview"`
3166
3167 **Deprecated**: Will reach end-of-life on June 30, 2026. Please migrate to claude-mythos-5. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.
3168
3169 New class of intelligence, strongest in coding and cybersecurity
3175 High-performance model for agents and coding
31703176
31713177 - `string`
31723178
No line in this hunk matches that.