Count tokens in a Message changedapi/messages/count_tokens
Nearest release: v2.1.284, published 8 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+88added
Lines−80removed
From line
1,061
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits11to this page, all time
The whole hunk
from line 1061, old and new numbered
/
from line 1061
10611061
10621062 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10631063
1064 - `string`
1064 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
10651065
1066 - `"claude-fable-5-1" or "claude-opus-5-5" or "claude-mythos-5-1" or 15 more`
1067
10681066 The model that will complete your prompt.
10691067
10701068 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10711069
1070 - `"claude-sonnet-5-5"`
1071
1072 Efficient model for coding and agents
1073
10721074 - `"claude-fable-5-1"`
10731075
10741076 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
from line 1085
10831085
10841086 - `"claude-sonnet-5"`
10851087
1086 High-performance model for coding and agents
1088 Efficient model for coding and agents
10871089
10881090 - `"claude-fable-5"`
10891091
from line 1145
11431145
11441146 New class of intelligence, strongest in coding and cybersecurity
11451147
1148 - `string`
1149
11461150- `cache_control: optional CacheControlEphemeral or null`
11471151
11481152 Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
from line 1236
12321236 - `ThinkingConfigDisabled object`
12331237
12341238 - `type: "disabled"`
1239
1240 - `ThinkingConfigBetweenTools object`
1241
1242 - `type: "between_tools"`
12351243
12361244 - `ThinkingConfigAdaptive object`
12371245
No line in this hunk matches that.