Count tokens in a Message changedapi/beta/messages/count_tokens
Nearest release: v2.1.247, published under an hour 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+21added
Lines−3removed
From line
16
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 16, old and new numbered
/
from line 16
1616
1717 - `string`
1818
19 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
19 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
2020
2121 - `"message-batches-2024-09-24"`
2222
from line 86
8686
8787 - `"mid-conversation-tool-changes-2026-07-01"`
8888
89 - `"compact-2026-01-12"`
90
91 - `"computer-use-2025-11-24"`
92
93 - `"mcp-tunnels-2026-06-22"`
94
95 - `"structured-outputs-2025-11-13"`
96
97 - `"task-budgets-2026-03-13"`
98
99 - `"thinking-display-updates-2026-08-18"`
100
101 - `"ce-user-management-2026-07-13"`
102
89103- `"anthropic-user-profile-id": optional string`
90104
91105 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 1704
16901704
16911705 - `type: "enabled"`
16921706
1693 - `display: optional "summarized" or "omitted" or null`
1707 - `display: optional "summarized" or "omitted" or "updates" or null`
16941708
16951709 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.
16961710
from line 1712
16981712
16991713 - `"omitted"`
17001714
1715 - `"updates"`
1716
17011717 - `BetaThinkingConfigDisabled object`
17021718
17031719 - `type: "disabled"`
from line 1722
17061722
17071723 - `type: "adaptive"`
17081724
1709 - `display: optional "summarized" or "omitted" or null`
1725 - `display: optional "summarized" or "omitted" or "updates" or null`
17101726
17111727 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.
17121728
from line 1729
17131729 - `"summarized"`
17141730
17151731 - `"omitted"`
1732
1733 - `"updates"`
17161734
17171735- `tool_choice: optional BetaToolChoice`
17181736
No line in this hunk matches that.