Follow Discord
Sweep 02 Oct 2026 · 18:55Z Build v2.1.288 509 read Stable v2.1.285 Latest v2.1.288 Next v2.1.288 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20260930T153709Z

266 pages moved out of 642 read.

Pages moved 266 significant first
Pages read 642 in this capture
Captured 15:37 UTC
Corpus hash 5fbd08954ac7 corpus-hash

What this read moved

201-225 of 266, page 9 of 11

This capture is too large to show at once. Changes 201-225 of 266 are below, significant first; the rest are on the following screens.

api/beta/vaults/delete Changed · +48 / -50 lines

from line 23
2323 
2424 - `string`
2525 
26 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
26 - `"message-batches-2024-09-24"`
2727 
28 - `"message-batches-2024-09-24"`
28 - `"prompt-caching-2024-07-31"`
2929 
30 - `"prompt-caching-2024-07-31"`
30 - `"computer-use-2024-10-22"`
3131 
32 - `"computer-use-2024-10-22"`
32 - `"computer-use-2025-01-24"`
3333 
34 - `"computer-use-2025-01-24"`
34 - `"pdfs-2024-09-25"`
3535 
36 - `"pdfs-2024-09-25"`
36 - `"token-counting-2024-11-01"`
3737 
38 - `"token-counting-2024-11-01"`
38 - `"token-efficient-tools-2025-02-19"`
3939 
40 - `"token-efficient-tools-2025-02-19"`
40 - `"output-128k-2025-02-19"`
4141 
42 - `"output-128k-2025-02-19"`
42 - `"files-api-2025-04-14"`
4343 
44 - `"files-api-2025-04-14"`
44 - `"mcp-client-2025-04-04"`
4545 
46 - `"mcp-client-2025-04-04"`
46 - `"mcp-client-2025-11-20"`
4747 
48 - `"mcp-client-2025-11-20"`
48 - `"dev-full-thinking-2025-05-14"`
4949 
50 - `"dev-full-thinking-2025-05-14"`
50 - `"interleaved-thinking-2025-05-14"`
5151 
52 - `"interleaved-thinking-2025-05-14"`
52 - `"code-execution-2025-05-22"`
5353 
54 - `"code-execution-2025-05-22"`
54 - `"extended-cache-ttl-2025-04-11"`
5555 
56 - `"extended-cache-ttl-2025-04-11"`
56 - `"context-1m-2025-08-07"`
5757 
58 - `"context-1m-2025-08-07"`
58 - `"context-management-2025-06-27"`
5959 
60 - `"context-management-2025-06-27"`
60 - `"model-context-window-exceeded-2025-08-26"`
6161 
62 - `"model-context-window-exceeded-2025-08-26"`
62 - `"skills-2025-10-02"`
6363 
64 - `"skills-2025-10-02"`
64 - `"fast-mode-2026-02-01"`
6565 
66 - `"fast-mode-2026-02-01"`
66 - `"output-300k-2026-03-24"`
6767 
68 - `"output-300k-2026-03-24"`
68 - `"user-profiles-2026-03-24"`
6969 
70 - `"user-profiles-2026-03-24"`
70 - `"user-profiles-2026-08-18"`
7171 
72 - `"user-profiles-2026-08-18"`
72 - `"user-profiles-2026-09-04"`
7373 
74 - `"user-profiles-2026-09-04"`
74 - `"advisor-tool-2026-03-01"`
7575 
76 - `"advisor-tool-2026-03-01"`
76 - `"managed-agents-2026-04-01"`
7777 
78 - `"managed-agents-2026-04-01"`
78 - `"cache-diagnosis-2026-04-07"`
7979 
80 - `"cache-diagnosis-2026-04-07"`
80 - `"dreaming-2026-04-21"`
8181 
82 - `"dreaming-2026-04-21"`
82 - `"thinking-token-count-2026-05-13"`
8383 
84 - `"thinking-token-count-2026-05-13"`
84 - `"server-side-fallback-2026-06-01"`
8585 
86 - `"server-side-fallback-2026-06-01"`
86 - `"server-side-fallback-2026-07-01"`
8787 
88 - `"server-side-fallback-2026-07-01"`
88 - `"fallback-credit-2026-06-01"`
8989 
90 - `"fallback-credit-2026-06-01"`
90 - `"fallback-credit-2026-07-01"`
9191 
92 - `"fallback-credit-2026-07-01"`
92 - `"agent-memory-2026-07-22"`
9393 
94 - `"agent-memory-2026-07-22"`
94 - `"mid-conversation-tool-changes-2026-07-01"`
9595 
96 - `"mid-conversation-tool-changes-2026-07-01"`
96 - `"compact-2026-01-12"`
9797 
98 - `"compact-2026-01-12"`
98 - `"computer-use-2025-11-24"`
9999 
100 - `"computer-use-2025-11-24"`
100 - `"mcp-tunnels-2026-06-22"`
101101 
102 - `"mcp-tunnels-2026-06-22"`
102 - `"structured-outputs-2025-11-13"`
103103 
104 - `"structured-outputs-2025-11-13"`
104 - `"task-budgets-2026-03-13"`
105105 
106 - `"task-budgets-2026-03-13"`
106 - `"thinking-display-updates-2026-08-18"`
107107 
108 - `"thinking-display-updates-2026-08-18"`
108 - `"ce-user-management-2026-07-13"`
109109 
110 - `"ce-user-management-2026-07-13"`
110 - `"mid-conversation-output-config-2026-07-01"`
111111 
112 - `"mid-conversation-output-config-2026-07-01"`
112 - `"thinking-binding-controls-2026-08-01"`
113113 
114 - `"thinking-binding-controls-2026-08-01"`
114 - `"mid-conversation-system-clear-at-2026-08-21"`
115115 
116 - `"mid-conversation-system-clear-at-2026-08-21"`
116 - `"compact-2026-09-04"`
117117 
118 - `"compact-2026-09-04"`
118 - `"inline-tools-2026-09-15"`
119119 
120 - `"inline-tools-2026-09-15"`
121 
122 - `"mcp-client-2026-09-15"`
120 - `"mcp-client-2026-09-15"`
123121 
124122- `"anthropic-workspace-id": optional string`
125123 

api/beta/vaults/list Changed · +95 / -97 lines

from line 33
3333 
3434 - `string`
3535 
36 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
36 - `"message-batches-2024-09-24"`
3737 
38 - `"message-batches-2024-09-24"`
38 - `"prompt-caching-2024-07-31"`
3939 
40 - `"prompt-caching-2024-07-31"`
40 - `"computer-use-2024-10-22"`
4141 
42 - `"computer-use-2024-10-22"`
42 - `"computer-use-2025-01-24"`
4343 
44 - `"computer-use-2025-01-24"`
44 - `"pdfs-2024-09-25"`
4545 
46 - `"pdfs-2024-09-25"`
46 - `"token-counting-2024-11-01"`
4747 
48 - `"token-counting-2024-11-01"`
48 - `"token-efficient-tools-2025-02-19"`
4949 
50 - `"token-efficient-tools-2025-02-19"`
50 - `"output-128k-2025-02-19"`
5151 
52 - `"output-128k-2025-02-19"`
52 - `"files-api-2025-04-14"`
5353 
54 - `"files-api-2025-04-14"`
54 - `"mcp-client-2025-04-04"`
5555 
56 - `"mcp-client-2025-04-04"`
56 - `"mcp-client-2025-11-20"`
5757 
58 - `"mcp-client-2025-11-20"`
58 - `"dev-full-thinking-2025-05-14"`
5959 
60 - `"dev-full-thinking-2025-05-14"`
60 - `"interleaved-thinking-2025-05-14"`
6161 
62 - `"interleaved-thinking-2025-05-14"`
62 - `"code-execution-2025-05-22"`
6363 
64 - `"code-execution-2025-05-22"`
64 - `"extended-cache-ttl-2025-04-11"`
6565 
66 - `"extended-cache-ttl-2025-04-11"`
66 - `"context-1m-2025-08-07"`
6767 
68 - `"context-1m-2025-08-07"`
68 - `"context-management-2025-06-27"`
6969 
70 - `"context-management-2025-06-27"`
70 - `"model-context-window-exceeded-2025-08-26"`
7171 
72 - `"model-context-window-exceeded-2025-08-26"`
72 - `"skills-2025-10-02"`
7373 
74 - `"skills-2025-10-02"`
74 - `"fast-mode-2026-02-01"`
7575 
76 - `"fast-mode-2026-02-01"`
76 - `"output-300k-2026-03-24"`
7777 
78 - `"output-300k-2026-03-24"`
78 - `"user-profiles-2026-03-24"`
7979 
80 - `"user-profiles-2026-03-24"`
80 - `"user-profiles-2026-08-18"`
8181 
82 - `"user-profiles-2026-08-18"`
82 - `"user-profiles-2026-09-04"`
8383 
84 - `"user-profiles-2026-09-04"`
84 - `"advisor-tool-2026-03-01"`
8585 
86 - `"advisor-tool-2026-03-01"`
86 - `"managed-agents-2026-04-01"`
8787 
88 - `"managed-agents-2026-04-01"`
88 - `"cache-diagnosis-2026-04-07"`
8989 
90 - `"cache-diagnosis-2026-04-07"`
90 - `"dreaming-2026-04-21"`
9191 
92 - `"dreaming-2026-04-21"`
92 - `"thinking-token-count-2026-05-13"`
9393 
94 - `"thinking-token-count-2026-05-13"`
94 - `"server-side-fallback-2026-06-01"`
9595 
96 - `"server-side-fallback-2026-06-01"`
96 - `"server-side-fallback-2026-07-01"`
9797 
98 - `"server-side-fallback-2026-07-01"`
98 - `"fallback-credit-2026-06-01"`
9999 
100 - `"fallback-credit-2026-06-01"`
100 - `"fallback-credit-2026-07-01"`
101101 
102 - `"fallback-credit-2026-07-01"`
102 - `"agent-memory-2026-07-22"`
103103 
104 - `"agent-memory-2026-07-22"`
104 - `"mid-conversation-tool-changes-2026-07-01"`
105105 
106 - `"mid-conversation-tool-changes-2026-07-01"`
106 - `"compact-2026-01-12"`
107107 
108 - `"compact-2026-01-12"`
108 - `"computer-use-2025-11-24"`
109109 
110 - `"computer-use-2025-11-24"`
110 - `"mcp-tunnels-2026-06-22"`
111111 
112 - `"mcp-tunnels-2026-06-22"`
112 - `"structured-outputs-2025-11-13"`
113113 
114 - `"structured-outputs-2025-11-13"`
114 - `"task-budgets-2026-03-13"`
115115 
116 - `"task-budgets-2026-03-13"`
116 - `"thinking-display-updates-2026-08-18"`
117117 
118 - `"thinking-display-updates-2026-08-18"`
118 - `"ce-user-management-2026-07-13"`
119119 
120 - `"ce-user-management-2026-07-13"`
120 - `"mid-conversation-output-config-2026-07-01"`
121121 
122 - `"mid-conversation-output-config-2026-07-01"`
122 - `"thinking-binding-controls-2026-08-01"`
123123 
124 - `"thinking-binding-controls-2026-08-01"`
124 - `"mid-conversation-system-clear-at-2026-08-21"`
125125 
126 - `"mid-conversation-system-clear-at-2026-08-21"`
126 - `"compact-2026-09-04"`
127127 
128 - `"compact-2026-09-04"`
128 - `"inline-tools-2026-09-15"`
129129 
130 - `"inline-tools-2026-09-15"`
131 
132 - `"mcp-client-2026-09-15"`
130 - `"mcp-client-2026-09-15"`
133131 
134132- `"anthropic-workspace-id": optional string`
135133 

api/beta/vaults/retrieve Changed · +48 / -50 lines

from line 23
2323 
2424 - `string`
2525 
26 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
26 - `"message-batches-2024-09-24"`
2727 
28 - `"message-batches-2024-09-24"`
28 - `"prompt-caching-2024-07-31"`
2929 
30 - `"prompt-caching-2024-07-31"`
30 - `"computer-use-2024-10-22"`
3131 
32 - `"computer-use-2024-10-22"`
32 - `"computer-use-2025-01-24"`
3333 
34 - `"computer-use-2025-01-24"`
34 - `"pdfs-2024-09-25"`
3535 
36 - `"pdfs-2024-09-25"`
36 - `"token-counting-2024-11-01"`
3737 
38 - `"token-counting-2024-11-01"`
38 - `"token-efficient-tools-2025-02-19"`
3939 
40 - `"token-efficient-tools-2025-02-19"`
40 - `"output-128k-2025-02-19"`
4141 
42 - `"output-128k-2025-02-19"`
42 - `"files-api-2025-04-14"`
4343 
44 - `"files-api-2025-04-14"`
44 - `"mcp-client-2025-04-04"`
4545 
46 - `"mcp-client-2025-04-04"`
46 - `"mcp-client-2025-11-20"`
4747 
48 - `"mcp-client-2025-11-20"`
48 - `"dev-full-thinking-2025-05-14"`
4949 
50 - `"dev-full-thinking-2025-05-14"`
50 - `"interleaved-thinking-2025-05-14"`
5151 
52 - `"interleaved-thinking-2025-05-14"`
52 - `"code-execution-2025-05-22"`
5353 
54 - `"code-execution-2025-05-22"`
54 - `"extended-cache-ttl-2025-04-11"`
5555 
56 - `"extended-cache-ttl-2025-04-11"`
56 - `"context-1m-2025-08-07"`
5757 
58 - `"context-1m-2025-08-07"`
58 - `"context-management-2025-06-27"`
5959 
60 - `"context-management-2025-06-27"`
60 - `"model-context-window-exceeded-2025-08-26"`
6161 
62 - `"model-context-window-exceeded-2025-08-26"`
62 - `"skills-2025-10-02"`
6363 
64 - `"skills-2025-10-02"`
64 - `"fast-mode-2026-02-01"`
6565 
66 - `"fast-mode-2026-02-01"`
66 - `"output-300k-2026-03-24"`
6767 
68 - `"output-300k-2026-03-24"`
68 - `"user-profiles-2026-03-24"`
6969 
70 - `"user-profiles-2026-03-24"`
70 - `"user-profiles-2026-08-18"`
7171 
72 - `"user-profiles-2026-08-18"`
72 - `"user-profiles-2026-09-04"`
7373 
74 - `"user-profiles-2026-09-04"`
74 - `"advisor-tool-2026-03-01"`
7575 
76 - `"advisor-tool-2026-03-01"`
76 - `"managed-agents-2026-04-01"`
7777 
78 - `"managed-agents-2026-04-01"`
78 - `"cache-diagnosis-2026-04-07"`
7979 
80 - `"cache-diagnosis-2026-04-07"`
80 - `"dreaming-2026-04-21"`
8181 
82 - `"dreaming-2026-04-21"`
82 - `"thinking-token-count-2026-05-13"`
8383 
84 - `"thinking-token-count-2026-05-13"`
84 - `"server-side-fallback-2026-06-01"`
8585 
86 - `"server-side-fallback-2026-06-01"`
86 - `"server-side-fallback-2026-07-01"`
8787 
88 - `"server-side-fallback-2026-07-01"`
88 - `"fallback-credit-2026-06-01"`
8989 
90 - `"fallback-credit-2026-06-01"`
90 - `"fallback-credit-2026-07-01"`
9191 
92 - `"fallback-credit-2026-07-01"`
92 - `"agent-memory-2026-07-22"`
9393 
94 - `"agent-memory-2026-07-22"`
94 - `"mid-conversation-tool-changes-2026-07-01"`
9595 
96 - `"mid-conversation-tool-changes-2026-07-01"`
96 - `"compact-2026-01-12"`
9797 
98 - `"compact-2026-01-12"`
98 - `"computer-use-2025-11-24"`
9999 
100 - `"computer-use-2025-11-24"`
100 - `"mcp-tunnels-2026-06-22"`
101101 
102 - `"mcp-tunnels-2026-06-22"`
102 - `"structured-outputs-2025-11-13"`
103103 
104 - `"structured-outputs-2025-11-13"`
104 - `"task-budgets-2026-03-13"`
105105 
106 - `"task-budgets-2026-03-13"`
106 - `"thinking-display-updates-2026-08-18"`
107107 
108 - `"thinking-display-updates-2026-08-18"`
108 - `"ce-user-management-2026-07-13"`
109109 
110 - `"ce-user-management-2026-07-13"`
110 - `"mid-conversation-output-config-2026-07-01"`
111111 
112 - `"mid-conversation-output-config-2026-07-01"`
112 - `"thinking-binding-controls-2026-08-01"`
113113 
114 - `"thinking-binding-controls-2026-08-01"`
114 - `"mid-conversation-system-clear-at-2026-08-21"`
115115 
116 - `"mid-conversation-system-clear-at-2026-08-21"`
116 - `"compact-2026-09-04"`
117117 
118 - `"compact-2026-09-04"`
118 - `"inline-tools-2026-09-15"`
119119 
120 - `"inline-tools-2026-09-15"`
121 
122 - `"mcp-client-2026-09-15"`
120 - `"mcp-client-2026-09-15"`
123121 
124122- `"anthropic-workspace-id": optional string`
125123 

api/beta/vaults/update Changed · +95 / -97 lines

from line 23
2323 
2424 - `string`
2525 
26 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
26 - `"message-batches-2024-09-24"`
2727 
28 - `"message-batches-2024-09-24"`
28 - `"prompt-caching-2024-07-31"`
2929 
30 - `"prompt-caching-2024-07-31"`
30 - `"computer-use-2024-10-22"`
3131 
32 - `"computer-use-2024-10-22"`
32 - `"computer-use-2025-01-24"`
3333 
34 - `"computer-use-2025-01-24"`
34 - `"pdfs-2024-09-25"`
3535 
36 - `"pdfs-2024-09-25"`
36 - `"token-counting-2024-11-01"`
3737 
38 - `"token-counting-2024-11-01"`
38 - `"token-efficient-tools-2025-02-19"`
3939 
40 - `"token-efficient-tools-2025-02-19"`
40 - `"output-128k-2025-02-19"`
4141 
42 - `"output-128k-2025-02-19"`
42 - `"files-api-2025-04-14"`
4343 
44 - `"files-api-2025-04-14"`
44 - `"mcp-client-2025-04-04"`
4545 
46 - `"mcp-client-2025-04-04"`
46 - `"mcp-client-2025-11-20"`
4747 
48 - `"mcp-client-2025-11-20"`
48 - `"dev-full-thinking-2025-05-14"`
4949 
50 - `"dev-full-thinking-2025-05-14"`
50 - `"interleaved-thinking-2025-05-14"`
5151 
52 - `"interleaved-thinking-2025-05-14"`
52 - `"code-execution-2025-05-22"`
5353 
54 - `"code-execution-2025-05-22"`
54 - `"extended-cache-ttl-2025-04-11"`
5555 
56 - `"extended-cache-ttl-2025-04-11"`
56 - `"context-1m-2025-08-07"`
5757 
58 - `"context-1m-2025-08-07"`
58 - `"context-management-2025-06-27"`
5959 
60 - `"context-management-2025-06-27"`
60 - `"model-context-window-exceeded-2025-08-26"`
6161 
62 - `"model-context-window-exceeded-2025-08-26"`
62 - `"skills-2025-10-02"`
6363 
64 - `"skills-2025-10-02"`
64 - `"fast-mode-2026-02-01"`
6565 
66 - `"fast-mode-2026-02-01"`
66 - `"output-300k-2026-03-24"`
6767 
68 - `"output-300k-2026-03-24"`
68 - `"user-profiles-2026-03-24"`
6969 
70 - `"user-profiles-2026-03-24"`
70 - `"user-profiles-2026-08-18"`
7171 
72 - `"user-profiles-2026-08-18"`
72 - `"user-profiles-2026-09-04"`
7373 
74 - `"user-profiles-2026-09-04"`
74 - `"advisor-tool-2026-03-01"`
7575 
76 - `"advisor-tool-2026-03-01"`
76 - `"managed-agents-2026-04-01"`
7777 
78 - `"managed-agents-2026-04-01"`
78 - `"cache-diagnosis-2026-04-07"`
7979 
80 - `"cache-diagnosis-2026-04-07"`
80 - `"dreaming-2026-04-21"`
8181 
82 - `"dreaming-2026-04-21"`
82 - `"thinking-token-count-2026-05-13"`
8383 
84 - `"thinking-token-count-2026-05-13"`
84 - `"server-side-fallback-2026-06-01"`
8585 
86 - `"server-side-fallback-2026-06-01"`
86 - `"server-side-fallback-2026-07-01"`
8787 
88 - `"server-side-fallback-2026-07-01"`
88 - `"fallback-credit-2026-06-01"`
8989 
90 - `"fallback-credit-2026-06-01"`
90 - `"fallback-credit-2026-07-01"`
9191 
92 - `"fallback-credit-2026-07-01"`
92 - `"agent-memory-2026-07-22"`
9393 
94 - `"agent-memory-2026-07-22"`
94 - `"mid-conversation-tool-changes-2026-07-01"`
9595 
96 - `"mid-conversation-tool-changes-2026-07-01"`
96 - `"compact-2026-01-12"`
9797 
98 - `"compact-2026-01-12"`
98 - `"computer-use-2025-11-24"`
9999 
100 - `"computer-use-2025-11-24"`
100 - `"mcp-tunnels-2026-06-22"`
101101 
102 - `"mcp-tunnels-2026-06-22"`
102 - `"structured-outputs-2025-11-13"`
103103 
104 - `"structured-outputs-2025-11-13"`
104 - `"task-budgets-2026-03-13"`
105105 
106 - `"task-budgets-2026-03-13"`
106 - `"thinking-display-updates-2026-08-18"`
107107 
108 - `"thinking-display-updates-2026-08-18"`
108 - `"ce-user-management-2026-07-13"`
109109 
110 - `"ce-user-management-2026-07-13"`
110 - `"mid-conversation-output-config-2026-07-01"`
111111 
112 - `"mid-conversation-output-config-2026-07-01"`
112 - `"thinking-binding-controls-2026-08-01"`
113113 
114 - `"thinking-binding-controls-2026-08-01"`
114 - `"mid-conversation-system-clear-at-2026-08-21"`
115115 
116 - `"mid-conversation-system-clear-at-2026-08-21"`
116 - `"compact-2026-09-04"`
117117 
118 - `"compact-2026-09-04"`
118 - `"inline-tools-2026-09-15"`
119119 
120 - `"inline-tools-2026-09-15"`
121 
122 - `"mcp-client-2026-09-15"`
120 - `"mcp-client-2026-09-15"`
123121 
124122- `"anthropic-workspace-id": optional string`
125123 

api/completions Changed · +326 / -346 lines

from line 31
3131 
3232 - `string`
3333 
34 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
34 - `"message-batches-2024-09-24"`
3535 
36 - `"message-batches-2024-09-24"`
36 - `"prompt-caching-2024-07-31"`
3737 
38 - `"prompt-caching-2024-07-31"`
38 - `"computer-use-2024-10-22"`
3939 
40 - `"computer-use-2024-10-22"`
40 - `"computer-use-2025-01-24"`
4141 
42 - `"computer-use-2025-01-24"`
42 - `"pdfs-2024-09-25"`
4343 
44 - `"pdfs-2024-09-25"`
44 - `"token-counting-2024-11-01"`
4545 
46 - `"token-counting-2024-11-01"`
46 - `"token-efficient-tools-2025-02-19"`
4747 
48 - `"token-efficient-tools-2025-02-19"`
48 - `"output-128k-2025-02-19"`
4949 
50 - `"output-128k-2025-02-19"`
50 - `"files-api-2025-04-14"`
5151 
52 - `"files-api-2025-04-14"`
52 - `"mcp-client-2025-04-04"`
5353 
54 - `"mcp-client-2025-04-04"`
54 - `"mcp-client-2025-11-20"`
5555 
56 - `"mcp-client-2025-11-20"`
56 - `"dev-full-thinking-2025-05-14"`
5757 
58 - `"dev-full-thinking-2025-05-14"`
58 - `"interleaved-thinking-2025-05-14"`
5959 
60 - `"interleaved-thinking-2025-05-14"`
60 - `"code-execution-2025-05-22"`
6161 
62 - `"code-execution-2025-05-22"`
62 - `"extended-cache-ttl-2025-04-11"`
6363 
64 - `"extended-cache-ttl-2025-04-11"`
64 - `"context-1m-2025-08-07"`
6565 
66 - `"context-1m-2025-08-07"`
66 - `"context-management-2025-06-27"`
6767 
68 - `"context-management-2025-06-27"`
68 - `"model-context-window-exceeded-2025-08-26"`
6969 
70 - `"model-context-window-exceeded-2025-08-26"`
70 - `"skills-2025-10-02"`
7171 
72 - `"skills-2025-10-02"`
72 - `"fast-mode-2026-02-01"`
7373 
74 - `"fast-mode-2026-02-01"`
74 - `"output-300k-2026-03-24"`
7575 
76 - `"output-300k-2026-03-24"`
76 - `"user-profiles-2026-03-24"`
7777 
78 - `"user-profiles-2026-03-24"`
78 - `"user-profiles-2026-08-18"`
7979 
80 - `"user-profiles-2026-08-18"`
80 - `"user-profiles-2026-09-04"`
8181 
82 - `"user-profiles-2026-09-04"`
82 - `"advisor-tool-2026-03-01"`
8383 
84 - `"advisor-tool-2026-03-01"`
84 - `"managed-agents-2026-04-01"`
8585 
86 - `"managed-agents-2026-04-01"`
86 - `"cache-diagnosis-2026-04-07"`
8787 
88 - `"cache-diagnosis-2026-04-07"`
88 - `"dreaming-2026-04-21"`
8989 
90 - `"dreaming-2026-04-21"`
90 - `"thinking-token-count-2026-05-13"`
9191 
92 - `"thinking-token-count-2026-05-13"`
92 - `"server-side-fallback-2026-06-01"`
9393 
94 - `"server-side-fallback-2026-06-01"`
94 - `"server-side-fallback-2026-07-01"`
9595 
96 - `"server-side-fallback-2026-07-01"`
96 - `"fallback-credit-2026-06-01"`
9797 
98 - `"fallback-credit-2026-06-01"`
98 - `"fallback-credit-2026-07-01"`
9999 
100 - `"fallback-credit-2026-07-01"`
100 - `"agent-memory-2026-07-22"`
101101 
102 - `"agent-memory-2026-07-22"`
102 - `"mid-conversation-tool-changes-2026-07-01"`
103103 
104 - `"mid-conversation-tool-changes-2026-07-01"`
104 - `"compact-2026-01-12"`
105105 
106 - `"compact-2026-01-12"`
106 - `"computer-use-2025-11-24"`
107107 
108 - `"computer-use-2025-11-24"`
108 - `"mcp-tunnels-2026-06-22"`
109109 
110 - `"mcp-tunnels-2026-06-22"`
110 - `"structured-outputs-2025-11-13"`
111111 
112 - `"structured-outputs-2025-11-13"`
112 - `"task-budgets-2026-03-13"`
113113 
114 - `"task-budgets-2026-03-13"`
114 - `"thinking-display-updates-2026-08-18"`
115115 
116 - `"thinking-display-updates-2026-08-18"`
116 - `"ce-user-management-2026-07-13"`
117117 
118 - `"ce-user-management-2026-07-13"`
118 - `"mid-conversation-output-config-2026-07-01"`
119119 
120 - `"mid-conversation-output-config-2026-07-01"`
120 - `"thinking-binding-controls-2026-08-01"`
121121 
122 - `"thinking-binding-controls-2026-08-01"`
122 - `"mid-conversation-system-clear-at-2026-08-21"`
123123 
124 - `"mid-conversation-system-clear-at-2026-08-21"`
124 - `"compact-2026-09-04"`
125125 
126 - `"compact-2026-09-04"`
126 - `"inline-tools-2026-09-15"`
127127 
128 - `"inline-tools-2026-09-15"`
128 - `"mcp-client-2026-09-15"`
129129 
130 - `"mcp-client-2026-09-15"`
131 
132130### Body parameters
133131 
134132- `max_tokens_to_sample: number`
from line 143
145143 
146144 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
147145 
148 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
146 - `"claude-sonnet-5-5"`
149147 
150 The model that will complete your prompt.
148 Efficient model for coding and agents
151149 
152 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
150 - `"claude-fable-5-1"`
153151 
154 - `"claude-sonnet-5-5"`
152 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
155153 
156 Efficient model for coding and agents
154 - `"claude-opus-5-5"`
157155 
158 - `"claude-fable-5-1"`
156 Powerful intelligence for coding, knowledge work, and long-running agents
159157 
160 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
158 - `"claude-mythos-5-1"`
161159 
162 - `"claude-opus-5-5"`
160 Our most capable model for cybersecurity and biology research, available through trusted access programs
163161 
164 Powerful intelligence for coding, knowledge work, and long-running agents
162 - `"claude-sonnet-5"`
165163 
166 - `"claude-mythos-5-1"`
164 Efficient model for coding and agents
167165 
168 Our most capable model for cybersecurity and biology research, available through trusted access programs
166 - `"claude-fable-5"`
169167 
170 - `"claude-sonnet-5"`
168 Next generation of intelligence for the hardest knowledge work and coding problems
171169 
172 Efficient model for coding and agents
170 - `"claude-mythos-5"`
173171 
174 - `"claude-fable-5"`
172 Most capable model for cybersecurity and biology research
175173 
176 Next generation of intelligence for the hardest knowledge work and coding problems
174 - `"claude-opus-5"`
177175 
178 - `"claude-mythos-5"`
176 Powerful intelligence for long-running agents and coding
179177 
180 Most capable model for cybersecurity and biology research
178 - `"claude-opus-4-8"`
181179 
182 - `"claude-opus-5"`
180 Powerful intelligence for long-running agents and coding
183181 
184 Powerful intelligence for long-running agents and coding
182 - `"claude-opus-4-7"`
185183 
186 - `"claude-opus-4-8"`
184 Powerful intelligence for long-running agents and coding
187185 
188 Powerful intelligence for long-running agents and coding
186 - `"claude-opus-4-6"`
189187 
190 - `"claude-opus-4-7"`
188 Powerful intelligence for long-running agents and coding
191189 
192 Powerful intelligence for long-running agents and coding
190 - `"claude-sonnet-4-6"`
193191 
194 - `"claude-opus-4-6"`
192 Best combination of speed and intelligence
195193 
196 Powerful intelligence for long-running agents and coding
194 - `"claude-haiku-4-5"`
197195 
198 - `"claude-sonnet-4-6"`
196 Fastest model with near-frontier intelligence
199197 
200 Best combination of speed and intelligence
198 - `"claude-haiku-4-5-20251001"`
201199 
202 - `"claude-haiku-4-5"`
200 Fastest model with near-frontier intelligence
203201 
204 Fastest model with near-frontier intelligence
202 - `"claude-opus-4-5"`
205203 
206 - `"claude-haiku-4-5-20251001"`
204 Powerful intelligence for long-running agents and coding
207205 
208 Fastest model with near-frontier intelligence
206 - `"claude-opus-4-5-20251101"`
209207 
210 - `"claude-opus-4-5"`
208 Powerful intelligence for long-running agents and coding
211209 
212 Powerful intelligence for long-running agents and coding
210 - `"claude-sonnet-4-5"`
213211 
214 - `"claude-opus-4-5-20251101"`
212 High-performance model for agents and coding
215213 
216 Powerful intelligence for long-running agents and coding
214 - `"claude-sonnet-4-5-20250929"`
217215 
218 - `"claude-sonnet-4-5"`
216 High-performance model for agents and coding
219217 
220 High-performance model for agents and coding
218 - `"claude-mythos-preview"`
221219 
222 - `"claude-sonnet-4-5-20250929"`
220 **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.
223221 
224 High-performance model for agents and coding
222 New class of intelligence, strongest in coding and cybersecurity
225223 
226 - `"claude-mythos-preview"`
227 
228 **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.
229 
230 New class of intelligence, strongest in coding and cybersecurity
231 
232224 - `string`
233225 
234226- `prompt: string`
from line 335
343335 
344336 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
345337 
346 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
338 - `"claude-sonnet-5-5"`
347339 
348 The model that will complete your prompt.
340 Efficient model for coding and agents
349341 
350 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
342 - `"claude-fable-5-1"`
351343 
352 - `"claude-sonnet-5-5"`
344 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
353345 
354 Efficient model for coding and agents
346 - `"claude-opus-5-5"`
355347 
356 - `"claude-fable-5-1"`
348 Powerful intelligence for coding, knowledge work, and long-running agents
357349 
358 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
350 - `"claude-mythos-5-1"`
359351 
360 - `"claude-opus-5-5"`
352 Our most capable model for cybersecurity and biology research, available through trusted access programs
361353 
362 Powerful intelligence for coding, knowledge work, and long-running agents
354 - `"claude-sonnet-5"`
363355 
364 - `"claude-mythos-5-1"`
356 Efficient model for coding and agents
365357 
366 Our most capable model for cybersecurity and biology research, available through trusted access programs
358 - `"claude-fable-5"`
367359 
368 - `"claude-sonnet-5"`
360 Next generation of intelligence for the hardest knowledge work and coding problems
369361 
370 Efficient model for coding and agents
362 - `"claude-mythos-5"`
371363 
372 - `"claude-fable-5"`
364 Most capable model for cybersecurity and biology research
373365 
374 Next generation of intelligence for the hardest knowledge work and coding problems
366 - `"claude-opus-5"`
375367 
376 - `"claude-mythos-5"`
368 Powerful intelligence for long-running agents and coding
377369 
378 Most capable model for cybersecurity and biology research
370 - `"claude-opus-4-8"`
379371 
380 - `"claude-opus-5"`
372 Powerful intelligence for long-running agents and coding
381373 
382 Powerful intelligence for long-running agents and coding
374 - `"claude-opus-4-7"`
383375 
384 - `"claude-opus-4-8"`
376 Powerful intelligence for long-running agents and coding
385377 
386 Powerful intelligence for long-running agents and coding
378 - `"claude-opus-4-6"`
387379 
388 - `"claude-opus-4-7"`
380 Powerful intelligence for long-running agents and coding
389381 
390 Powerful intelligence for long-running agents and coding
382 - `"claude-sonnet-4-6"`
391383 
392 - `"claude-opus-4-6"`
384 Best combination of speed and intelligence
393385 
394 Powerful intelligence for long-running agents and coding
386 - `"claude-haiku-4-5"`
395387 
396 - `"claude-sonnet-4-6"`
388 Fastest model with near-frontier intelligence
397389 
398 Best combination of speed and intelligence
390 - `"claude-haiku-4-5-20251001"`
399391 
400 - `"claude-haiku-4-5"`
392 Fastest model with near-frontier intelligence
401393 
402 Fastest model with near-frontier intelligence
394 - `"claude-opus-4-5"`
403395 
404 - `"claude-haiku-4-5-20251001"`
396 Powerful intelligence for long-running agents and coding
405397 
406 Fastest model with near-frontier intelligence
398 - `"claude-opus-4-5-20251101"`
407399 
408 - `"claude-opus-4-5"`
400 Powerful intelligence for long-running agents and coding
409401 
410 Powerful intelligence for long-running agents and coding
402 - `"claude-sonnet-4-5"`
411403 
412 - `"claude-opus-4-5-20251101"`
404 High-performance model for agents and coding
413405 
414 Powerful intelligence for long-running agents and coding
406 - `"claude-sonnet-4-5-20250929"`
415407 
416 - `"claude-sonnet-4-5"`
408 High-performance model for agents and coding
417409 
418 High-performance model for agents and coding
410 - `"claude-mythos-preview"`
419411 
420 - `"claude-sonnet-4-5-20250929"`
412 **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.
421413 
422 High-performance model for agents and coding
414 New class of intelligence, strongest in coding and cybersecurity
423415 
424 - `"claude-mythos-preview"`
425 
426 **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.
427 
428 New class of intelligence, strongest in coding and cybersecurity
429 
430416 - `string`
431417 
432418 - `stop_reason: string or null`
from line 484
498484 
499485 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
500486 
501 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
487 - `"claude-sonnet-5-5"`
502488 
503 The model that will complete your prompt.
489 Efficient model for coding and agents
504490 
505 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
491 - `"claude-fable-5-1"`
506492 
507 - `"claude-sonnet-5-5"`
493 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
508494 
509 Efficient model for coding and agents
495 - `"claude-opus-5-5"`
510496 
511 - `"claude-fable-5-1"`
497 Powerful intelligence for coding, knowledge work, and long-running agents
512498 
513 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
499 - `"claude-mythos-5-1"`
514500 
515 - `"claude-opus-5-5"`
501 Our most capable model for cybersecurity and biology research, available through trusted access programs
516502 
517 Powerful intelligence for coding, knowledge work, and long-running agents
503 - `"claude-sonnet-5"`
518504 
519 - `"claude-mythos-5-1"`
505 Efficient model for coding and agents
520506 
521 Our most capable model for cybersecurity and biology research, available through trusted access programs
507 - `"claude-fable-5"`
522508 
523 - `"claude-sonnet-5"`
509 Next generation of intelligence for the hardest knowledge work and coding problems
524510 
525 Efficient model for coding and agents
511 - `"claude-mythos-5"`
526512 
527 - `"claude-fable-5"`
513 Most capable model for cybersecurity and biology research
528514 
529 Next generation of intelligence for the hardest knowledge work and coding problems
515 - `"claude-opus-5"`
530516 
531 - `"claude-mythos-5"`
517 Powerful intelligence for long-running agents and coding
532518 
533 Most capable model for cybersecurity and biology research
519 - `"claude-opus-4-8"`
534520 
535 - `"claude-opus-5"`
521 Powerful intelligence for long-running agents and coding
536522 
537 Powerful intelligence for long-running agents and coding
523 - `"claude-opus-4-7"`
538524 
539 - `"claude-opus-4-8"`
525 Powerful intelligence for long-running agents and coding
540526 
541 Powerful intelligence for long-running agents and coding
527 - `"claude-opus-4-6"`
542528 
543 - `"claude-opus-4-7"`
529 Powerful intelligence for long-running agents and coding
544530 
545 Powerful intelligence for long-running agents and coding
531 - `"claude-sonnet-4-6"`
546532 
547 - `"claude-opus-4-6"`
533 Best combination of speed and intelligence
548534 
549 Powerful intelligence for long-running agents and coding
535 - `"claude-haiku-4-5"`
550536 
551 - `"claude-sonnet-4-6"`
537 Fastest model with near-frontier intelligence
552538 
553 Best combination of speed and intelligence
539 - `"claude-haiku-4-5-20251001"`
554540 
555 - `"claude-haiku-4-5"`
541 Fastest model with near-frontier intelligence
556542 
557 Fastest model with near-frontier intelligence
543 - `"claude-opus-4-5"`
558544 
559 - `"claude-haiku-4-5-20251001"`
545 Powerful intelligence for long-running agents and coding
560546 
561 Fastest model with near-frontier intelligence
547 - `"claude-opus-4-5-20251101"`
562548 
563 - `"claude-opus-4-5"`
549 Powerful intelligence for long-running agents and coding
564550 
565 Powerful intelligence for long-running agents and coding
551 - `"claude-sonnet-4-5"`
566552 
567 - `"claude-opus-4-5-20251101"`
553 High-performance model for agents and coding
568554 
569 Powerful intelligence for long-running agents and coding
555 - `"claude-sonnet-4-5-20250929"`
570556 
571 - `"claude-sonnet-4-5"`
557 High-performance model for agents and coding
572558 
573 High-performance model for agents and coding
559 - `"claude-mythos-preview"`
574560 
575 - `"claude-sonnet-4-5-20250929"`
561 **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.
576562 
577 High-performance model for agents and coding
578 
579 - `"claude-mythos-preview"`
580 
581 **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.
582 
583 New class of intelligence, strongest in coding and cybersecurity
563 New class of intelligence, strongest in coding and cybersecurity
584564 
585565 - `string`
586566 

api/completions/create Changed · +249 / -263 lines

from line 29
2929 
3030 - `string`
3131 
32 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
32 - `"message-batches-2024-09-24"`
3333 
34 - `"message-batches-2024-09-24"`
34 - `"prompt-caching-2024-07-31"`
3535 
36 - `"prompt-caching-2024-07-31"`
36 - `"computer-use-2024-10-22"`
3737 
38 - `"computer-use-2024-10-22"`
38 - `"computer-use-2025-01-24"`
3939 
40 - `"computer-use-2025-01-24"`
40 - `"pdfs-2024-09-25"`
4141 
42 - `"pdfs-2024-09-25"`
42 - `"token-counting-2024-11-01"`
4343 
44 - `"token-counting-2024-11-01"`
44 - `"token-efficient-tools-2025-02-19"`
4545 
46 - `"token-efficient-tools-2025-02-19"`
46 - `"output-128k-2025-02-19"`
4747 
48 - `"output-128k-2025-02-19"`
48 - `"files-api-2025-04-14"`
4949 
50 - `"files-api-2025-04-14"`
50 - `"mcp-client-2025-04-04"`
5151 
52 - `"mcp-client-2025-04-04"`
52 - `"mcp-client-2025-11-20"`
5353 
54 - `"mcp-client-2025-11-20"`
54 - `"dev-full-thinking-2025-05-14"`
5555 
56 - `"dev-full-thinking-2025-05-14"`
56 - `"interleaved-thinking-2025-05-14"`
5757 
58 - `"interleaved-thinking-2025-05-14"`
58 - `"code-execution-2025-05-22"`
5959 
60 - `"code-execution-2025-05-22"`
60 - `"extended-cache-ttl-2025-04-11"`
6161 
62 - `"extended-cache-ttl-2025-04-11"`
62 - `"context-1m-2025-08-07"`
6363 
64 - `"context-1m-2025-08-07"`
64 - `"context-management-2025-06-27"`
6565 
66 - `"context-management-2025-06-27"`
66 - `"model-context-window-exceeded-2025-08-26"`
6767 
68 - `"model-context-window-exceeded-2025-08-26"`
68 - `"skills-2025-10-02"`
6969 
70 - `"skills-2025-10-02"`
70 - `"fast-mode-2026-02-01"`
7171 
72 - `"fast-mode-2026-02-01"`
72 - `"output-300k-2026-03-24"`
7373 
74 - `"output-300k-2026-03-24"`
74 - `"user-profiles-2026-03-24"`
7575 
76 - `"user-profiles-2026-03-24"`
76 - `"user-profiles-2026-08-18"`
7777 
78 - `"user-profiles-2026-08-18"`
78 - `"user-profiles-2026-09-04"`
7979 
80 - `"user-profiles-2026-09-04"`
80 - `"advisor-tool-2026-03-01"`
8181 
82 - `"advisor-tool-2026-03-01"`
82 - `"managed-agents-2026-04-01"`
8383 
84 - `"managed-agents-2026-04-01"`
84 - `"cache-diagnosis-2026-04-07"`
8585 
86 - `"cache-diagnosis-2026-04-07"`
86 - `"dreaming-2026-04-21"`
8787 
88 - `"dreaming-2026-04-21"`
88 - `"thinking-token-count-2026-05-13"`
8989 
90 - `"thinking-token-count-2026-05-13"`
90 - `"server-side-fallback-2026-06-01"`
9191 
92 - `"server-side-fallback-2026-06-01"`
92 - `"server-side-fallback-2026-07-01"`
9393 
94 - `"server-side-fallback-2026-07-01"`
94 - `"fallback-credit-2026-06-01"`
9595 
96 - `"fallback-credit-2026-06-01"`
96 - `"fallback-credit-2026-07-01"`
9797 
98 - `"fallback-credit-2026-07-01"`
98 - `"agent-memory-2026-07-22"`
9999 
100 - `"agent-memory-2026-07-22"`
100 - `"mid-conversation-tool-changes-2026-07-01"`
101101 
102 - `"mid-conversation-tool-changes-2026-07-01"`
102 - `"compact-2026-01-12"`
103103 
104 - `"compact-2026-01-12"`
104 - `"computer-use-2025-11-24"`
105105 
106 - `"computer-use-2025-11-24"`
106 - `"mcp-tunnels-2026-06-22"`
107107 
108 - `"mcp-tunnels-2026-06-22"`
108 - `"structured-outputs-2025-11-13"`
109109 
110 - `"structured-outputs-2025-11-13"`
110 - `"task-budgets-2026-03-13"`
111111 
112 - `"task-budgets-2026-03-13"`
112 - `"thinking-display-updates-2026-08-18"`
113113 
114 - `"thinking-display-updates-2026-08-18"`
114 - `"ce-user-management-2026-07-13"`
115115 
116 - `"ce-user-management-2026-07-13"`
116 - `"mid-conversation-output-config-2026-07-01"`
117117 
118 - `"mid-conversation-output-config-2026-07-01"`
118 - `"thinking-binding-controls-2026-08-01"`
119119 
120 - `"thinking-binding-controls-2026-08-01"`
120 - `"mid-conversation-system-clear-at-2026-08-21"`
121121 
122 - `"mid-conversation-system-clear-at-2026-08-21"`
122 - `"compact-2026-09-04"`
123123 
124 - `"compact-2026-09-04"`
124 - `"inline-tools-2026-09-15"`
125125 
126 - `"inline-tools-2026-09-15"`
126 - `"mcp-client-2026-09-15"`
127127 
128 - `"mcp-client-2026-09-15"`
129 
130128## Body parameters
131129 
132130- `max_tokens_to_sample: number`
from line 141
143141 
144142 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
145143 
146 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
144 - `"claude-sonnet-5-5"`
147145 
148 The model that will complete your prompt.
146 Efficient model for coding and agents
149147 
150 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
148 - `"claude-fable-5-1"`
151149 
152 - `"claude-sonnet-5-5"`
150 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
153151 
154 Efficient model for coding and agents
152 - `"claude-opus-5-5"`
155153 
156 - `"claude-fable-5-1"`
154 Powerful intelligence for coding, knowledge work, and long-running agents
157155 
158 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
156 - `"claude-mythos-5-1"`
159157 
160 - `"claude-opus-5-5"`
158 Our most capable model for cybersecurity and biology research, available through trusted access programs
161159 
162 Powerful intelligence for coding, knowledge work, and long-running agents
160 - `"claude-sonnet-5"`
163161 
164 - `"claude-mythos-5-1"`
162 Efficient model for coding and agents
165163 
166 Our most capable model for cybersecurity and biology research, available through trusted access programs
164 - `"claude-fable-5"`
167165 
168 - `"claude-sonnet-5"`
166 Next generation of intelligence for the hardest knowledge work and coding problems
169167 
170 Efficient model for coding and agents
168 - `"claude-mythos-5"`
171169 
172 - `"claude-fable-5"`
170 Most capable model for cybersecurity and biology research
173171 
174 Next generation of intelligence for the hardest knowledge work and coding problems
172 - `"claude-opus-5"`
175173 
176 - `"claude-mythos-5"`
174 Powerful intelligence for long-running agents and coding
177175 
178 Most capable model for cybersecurity and biology research
176 - `"claude-opus-4-8"`
179177 
180 - `"claude-opus-5"`
178 Powerful intelligence for long-running agents and coding
181179 
182 Powerful intelligence for long-running agents and coding
180 - `"claude-opus-4-7"`
183181 
184 - `"claude-opus-4-8"`
182 Powerful intelligence for long-running agents and coding
185183 
186 Powerful intelligence for long-running agents and coding
184 - `"claude-opus-4-6"`
187185 
188 - `"claude-opus-4-7"`
186 Powerful intelligence for long-running agents and coding
189187 
190 Powerful intelligence for long-running agents and coding
188 - `"claude-sonnet-4-6"`
191189 
192 - `"claude-opus-4-6"`
190 Best combination of speed and intelligence
193191 
194 Powerful intelligence for long-running agents and coding
192 - `"claude-haiku-4-5"`
195193 
196 - `"claude-sonnet-4-6"`
194 Fastest model with near-frontier intelligence
197195 
198 Best combination of speed and intelligence
196 - `"claude-haiku-4-5-20251001"`
199197 
200 - `"claude-haiku-4-5"`
198 Fastest model with near-frontier intelligence
201199 
202 Fastest model with near-frontier intelligence
200 - `"claude-opus-4-5"`
203201 
204 - `"claude-haiku-4-5-20251001"`
202 Powerful intelligence for long-running agents and coding
205203 
206 Fastest model with near-frontier intelligence
204 - `"claude-opus-4-5-20251101"`
207205 
208 - `"claude-opus-4-5"`
206 Powerful intelligence for long-running agents and coding
209207 
210 Powerful intelligence for long-running agents and coding
208 - `"claude-sonnet-4-5"`
211209 
212 - `"claude-opus-4-5-20251101"`
210 High-performance model for agents and coding
213211 
214 Powerful intelligence for long-running agents and coding
212 - `"claude-sonnet-4-5-20250929"`
215213 
216 - `"claude-sonnet-4-5"`
214 High-performance model for agents and coding
217215 
218 High-performance model for agents and coding
216 - `"claude-mythos-preview"`
219217 
220 - `"claude-sonnet-4-5-20250929"`
218 **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.
221219 
222 High-performance model for agents and coding
220 New class of intelligence, strongest in coding and cybersecurity
223221 
224 - `"claude-mythos-preview"`
225 
226 **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.
227 
228 New class of intelligence, strongest in coding and cybersecurity
229 
230222 - `string`
231223 
232224- `prompt: string`
from line 333
341333 
342334 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
343335 
344 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
336 - `"claude-sonnet-5-5"`
345337 
346 The model that will complete your prompt.
338 Efficient model for coding and agents
347339 
348 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
340 - `"claude-fable-5-1"`
349341 
350 - `"claude-sonnet-5-5"`
342 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
351343 
352 Efficient model for coding and agents
344 - `"claude-opus-5-5"`
353345 
354 - `"claude-fable-5-1"`
346 Powerful intelligence for coding, knowledge work, and long-running agents
355347 
356 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
348 - `"claude-mythos-5-1"`
357349 
358 - `"claude-opus-5-5"`
350 Our most capable model for cybersecurity and biology research, available through trusted access programs
359351 
360 Powerful intelligence for coding, knowledge work, and long-running agents
352 - `"claude-sonnet-5"`
361353 
362 - `"claude-mythos-5-1"`
354 Efficient model for coding and agents
363355 
364 Our most capable model for cybersecurity and biology research, available through trusted access programs
356 - `"claude-fable-5"`
365357 
366 - `"claude-sonnet-5"`
358 Next generation of intelligence for the hardest knowledge work and coding problems
367359 
368 Efficient model for coding and agents
360 - `"claude-mythos-5"`
369361 
370 - `"claude-fable-5"`
362 Most capable model for cybersecurity and biology research
371363 
372 Next generation of intelligence for the hardest knowledge work and coding problems
364 - `"claude-opus-5"`
373365 
374 - `"claude-mythos-5"`
366 Powerful intelligence for long-running agents and coding
375367 
376 Most capable model for cybersecurity and biology research
368 - `"claude-opus-4-8"`
377369 
378 - `"claude-opus-5"`
370 Powerful intelligence for long-running agents and coding
379371 
380 Powerful intelligence for long-running agents and coding
372 - `"claude-opus-4-7"`
381373 
382 - `"claude-opus-4-8"`
374 Powerful intelligence for long-running agents and coding
383375 
384 Powerful intelligence for long-running agents and coding
376 - `"claude-opus-4-6"`
385377 
386 - `"claude-opus-4-7"`
378 Powerful intelligence for long-running agents and coding
387379 
388 Powerful intelligence for long-running agents and coding
380 - `"claude-sonnet-4-6"`
389381 
390 - `"claude-opus-4-6"`
382 Best combination of speed and intelligence
391383 
392 Powerful intelligence for long-running agents and coding
384 - `"claude-haiku-4-5"`
393385 
394 - `"claude-sonnet-4-6"`
386 Fastest model with near-frontier intelligence
395387 
396 Best combination of speed and intelligence
388 - `"claude-haiku-4-5-20251001"`
397389 
398 - `"claude-haiku-4-5"`
390 Fastest model with near-frontier intelligence
399391 
400 Fastest model with near-frontier intelligence
392 - `"claude-opus-4-5"`
401393 
402 - `"claude-haiku-4-5-20251001"`
394 Powerful intelligence for long-running agents and coding
403395 
404 Fastest model with near-frontier intelligence
396 - `"claude-opus-4-5-20251101"`
405397 
406 - `"claude-opus-4-5"`
398 Powerful intelligence for long-running agents and coding
407399 
408 Powerful intelligence for long-running agents and coding
400 - `"claude-sonnet-4-5"`
409401 
410 - `"claude-opus-4-5-20251101"`
402 High-performance model for agents and coding
411403 
412 Powerful intelligence for long-running agents and coding
404 - `"claude-sonnet-4-5-20250929"`
413405 
414 - `"claude-sonnet-4-5"`
406 High-performance model for agents and coding
415407 
416 High-performance model for agents and coding
408 - `"claude-mythos-preview"`
417409 
418 - `"claude-sonnet-4-5-20250929"`
410 **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.
419411 
420 High-performance model for agents and coding
421 
422 - `"claude-mythos-preview"`
423 
424 **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.
425 
426 New class of intelligence, strongest in coding and cybersecurity
412 New class of intelligence, strongest in coding and cybersecurity
427413 
428414 - `string`
429415 

api/errors Changed · +4 / -4 lines

from line 1
11---
22title: Claude API errors
33url: https://platform.claude.com/docs/en/api/errors
4description: Understand the HTTP status codes, error response shape, and request IDs the Claude API returns, and handle errors with the SDKs' typed exceptions.
4description: Understand the HTTP status codes, error response shape, and request IDs the Claude API returns, and handle errors with the SDK's typed exceptions.
55---
66 
77## HTTP errors
from line 36
3636 In rare cases, if your organization has a sharp increase in usage, you might see 429 errors because of acceleration limits on the API. To avoid hitting acceleration limits, ramp up your traffic gradually and maintain consistent usage patterns.
3737 </Warning>
3838 
39The official SDKs automatically retry transient failures (such as connection errors, rate limits, and 5xx server errors) with exponential backoff, twice by default, honoring the `retry-after` header when present. The SDK client accepts `max_retries` (typescript, java, php: `maxRetries`; csharp: `MaxRetries`; go: `option.WithMaxRetries`) to configure or disable this behavior.
39The official SDK automatically retries transient failures (such as connection errors, rate limits, and 5xx server errors) with exponential backoff, twice by default, honoring the `retry-after` header when present. The SDK client accepts `max_retries` (typescript, java, php: `maxRetries`; csharp: `MaxRetries`; go: `option.WithMaxRetries`) to configure or disable this behavior.
4040 
4141When receiving a [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) response over server-sent events (SSE), an error can occur after the API returns a 200 response. In that case, error handling doesn't follow these standard mechanisms. See [Error events](https://platform.claude.com/docs/en/build-with-claude/streaming#error-events) for the shape of mid-stream errors.
4242 
from line 72
7272 
7373## SDK error types
7474 
75The official SDKs raise typed exceptions for these errors instead of returning raw JSON, and the class names and namespaces differ by language. For example, a 404 surfaces as `anthropic.NotFoundError` (python; typescript: `Anthropic.NotFoundError`; ruby: `Anthropic::Errors::NotFoundError`; java: `com.anthropic.errors.NotFoundException`; csharp: `AnthropicNotFoundException`; php: `Anthropic\Core\Exceptions\NotFoundException`; go: `*anthropic.Error`). The Go SDK has one error type for every status, `*anthropic.Error`: branch on `StatusCode`. Catch the SDK's typed classes rather than string-matching error messages, handling the most specific classes first. Each SDK page documents its full exception hierarchy:
75The official SDK raises typed exceptions for these errors instead of returning raw JSON. For example, a 404 surfaces as `anthropic.NotFoundError` (python; typescript: `Anthropic.NotFoundError`; ruby: `Anthropic::Errors::NotFoundError`; java: `com.anthropic.errors.NotFoundException`; csharp: `AnthropicNotFoundException`; php: `Anthropic\Core\Exceptions\NotFoundException`; go: `*anthropic.Error`). The Go SDK has one error type for every status, `*anthropic.Error`: branch on `StatusCode`. Catch the SDK's typed classes rather than string-matching error messages, handling the most specific classes first. Your SDK's page documents the full exception hierarchy:
7676 
7777* [Python](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python#handling-errors) · [TypeScript](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#handling-errors) · [C#](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/csharp#error-handling) · [Go](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#error-handling) · [Java](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/java#error-handling) · [PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php#error-handling) · [Ruby](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/ruby#handling-errors)
7878 
from line 267
267267 
268268The [SDKs](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) validate that your non-streaming Messages API requests are not expected to exceed a 10-minute timeout. They also set a socket option for TCP keep-alive.
269269 
270If you don't need to process events incrementally, the SDKs can consume the stream for you and return the complete `Message` object, identical to what a non-streaming call returns:
270If you don't need to process events incrementally, the SDK can consume the stream for you and return the complete `Message` object, identical to what a non-streaming call returns:
271271 
272272<CodeGroup>
273273 ```bash cURL

api/messages Changed · +693 / -747 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 1075
10751075 
10761076 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10771077 
1078 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
1078 - `"claude-sonnet-5-5"`
10791079 
1080 The model that will complete your prompt.
1080 Efficient model for coding and agents
10811081 
1082 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1082 - `"claude-fable-5-1"`
10831083 
1084 - `"claude-sonnet-5-5"`
1084 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
10851085 
1086 Efficient model for coding and agents
1086 - `"claude-opus-5-5"`
10871087 
1088 - `"claude-fable-5-1"`
1088 Powerful intelligence for coding, knowledge work, and long-running agents
10891089 
1090 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1090 - `"claude-mythos-5-1"`
10911091 
1092 - `"claude-opus-5-5"`
1092 Our most capable model for cybersecurity and biology research, available through trusted access programs
10931093 
1094 Powerful intelligence for coding, knowledge work, and long-running agents
1094 - `"claude-sonnet-5"`
10951095 
1096 - `"claude-mythos-5-1"`
1096 Efficient model for coding and agents
10971097 
1098 Our most capable model for cybersecurity and biology research, available through trusted access programs
1098 - `"claude-fable-5"`
10991099 
1100 - `"claude-sonnet-5"`
1100 Next generation of intelligence for the hardest knowledge work and coding problems
11011101 
1102 Efficient model for coding and agents
1102 - `"claude-mythos-5"`
11031103 
1104 - `"claude-fable-5"`
1104 Most capable model for cybersecurity and biology research
11051105 
1106 Next generation of intelligence for the hardest knowledge work and coding problems
1106 - `"claude-opus-5"`
11071107 
1108 - `"claude-mythos-5"`
1108 Powerful intelligence for long-running agents and coding
11091109 
1110 Most capable model for cybersecurity and biology research
1110 - `"claude-opus-4-8"`
11111111 
1112 - `"claude-opus-5"`
1112 Powerful intelligence for long-running agents and coding
11131113 
1114 Powerful intelligence for long-running agents and coding
1114 - `"claude-opus-4-7"`
11151115 
1116 - `"claude-opus-4-8"`
1116 Powerful intelligence for long-running agents and coding
11171117 
1118 Powerful intelligence for long-running agents and coding
1118 - `"claude-opus-4-6"`
11191119 
1120 - `"claude-opus-4-7"`
1120 Powerful intelligence for long-running agents and coding
11211121 
1122 Powerful intelligence for long-running agents and coding
1122 - `"claude-sonnet-4-6"`
11231123 
1124 - `"claude-opus-4-6"`
1124 Best combination of speed and intelligence
11251125 
1126 Powerful intelligence for long-running agents and coding
1126 - `"claude-haiku-4-5"`
11271127 
1128 - `"claude-sonnet-4-6"`
1128 Fastest model with near-frontier intelligence
11291129 
1130 Best combination of speed and intelligence
1130 - `"claude-haiku-4-5-20251001"`
11311131 
1132 - `"claude-haiku-4-5"`
1132 Fastest model with near-frontier intelligence
11331133 
1134 Fastest model with near-frontier intelligence
1134 - `"claude-opus-4-5"`
11351135 
1136 - `"claude-haiku-4-5-20251001"`
1136 Powerful intelligence for long-running agents and coding
11371137 
1138 Fastest model with near-frontier intelligence
1138 - `"claude-opus-4-5-20251101"`
11391139 
1140 - `"claude-opus-4-5"`
1140 Powerful intelligence for long-running agents and coding
11411141 
1142 Powerful intelligence for long-running agents and coding
1142 - `"claude-sonnet-4-5"`
11431143 
1144 - `"claude-opus-4-5-20251101"`
1144 High-performance model for agents and coding
11451145 
1146 Powerful intelligence for long-running agents and coding
1146 - `"claude-sonnet-4-5-20250929"`
11471147 
1148 - `"claude-sonnet-4-5"`
1148 High-performance model for agents and coding
11491149 
1150 High-performance model for agents and coding
1150 - `"claude-mythos-preview"`
11511151 
1152 - `"claude-sonnet-4-5-20250929"`
1152 **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.
11531153 
1154 High-performance model for agents and coding
1154 New class of intelligence, strongest in coding and cybersecurity
11551155 
1156 - `"claude-mythos-preview"`
1157 
1158 **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.
1159 
1160 New class of intelligence, strongest in coding and cybersecurity
1161 
11621156 - `string`
11631157 
11641158- `cache_control: optional CacheControlEphemeral or null`
from line 3916
39223916 
39233917 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
39243918 
3925 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
3919 - `"claude-sonnet-5-5"`
39263920 
3927 The model that will complete your prompt.
3921 Efficient model for coding and agents
39283922 
3929 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
3923 - `"claude-fable-5-1"`
39303924 
3931 - `"claude-sonnet-5-5"`
3925 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
39323926 
3933 Efficient model for coding and agents
3927 - `"claude-opus-5-5"`
39343928 
3935 - `"claude-fable-5-1"`
3929 Powerful intelligence for coding, knowledge work, and long-running agents
39363930 
3937 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
3931 - `"claude-mythos-5-1"`
39383932 
3939 - `"claude-opus-5-5"`
3933 Our most capable model for cybersecurity and biology research, available through trusted access programs
39403934 
3941 Powerful intelligence for coding, knowledge work, and long-running agents
3935 - `"claude-sonnet-5"`
39423936 
3943 - `"claude-mythos-5-1"`
3937 Efficient model for coding and agents
39443938 
3945 Our most capable model for cybersecurity and biology research, available through trusted access programs
3939 - `"claude-fable-5"`
39463940 
3947 - `"claude-sonnet-5"`
3941 Next generation of intelligence for the hardest knowledge work and coding problems
39483942 
3949 Efficient model for coding and agents
3943 - `"claude-mythos-5"`
39503944 
3951 - `"claude-fable-5"`
3945 Most capable model for cybersecurity and biology research
39523946 
3953 Next generation of intelligence for the hardest knowledge work and coding problems
3947 - `"claude-opus-5"`
39543948 
3955 - `"claude-mythos-5"`
3949 Powerful intelligence for long-running agents and coding
39563950 
3957 Most capable model for cybersecurity and biology research
3951 - `"claude-opus-4-8"`
39583952 
3959 - `"claude-opus-5"`
3953 Powerful intelligence for long-running agents and coding
39603954 
3961 Powerful intelligence for long-running agents and coding
3955 - `"claude-opus-4-7"`
39623956 
3963 - `"claude-opus-4-8"`
3957 Powerful intelligence for long-running agents and coding
39643958 
3965 Powerful intelligence for long-running agents and coding
3959 - `"claude-opus-4-6"`
39663960 
3967 - `"claude-opus-4-7"`
3961 Powerful intelligence for long-running agents and coding
39683962 
3969 Powerful intelligence for long-running agents and coding
3963 - `"claude-sonnet-4-6"`
39703964 
3971 - `"claude-opus-4-6"`
3965 Best combination of speed and intelligence
39723966 
3973 Powerful intelligence for long-running agents and coding
3967 - `"claude-haiku-4-5"`
39743968 
3975 - `"claude-sonnet-4-6"`
3969 Fastest model with near-frontier intelligence
39763970 
3977 Best combination of speed and intelligence
3971 - `"claude-haiku-4-5-20251001"`
39783972 
3979 - `"claude-haiku-4-5"`
3973 Fastest model with near-frontier intelligence
39803974 
3981 Fastest model with near-frontier intelligence
3975 - `"claude-opus-4-5"`
39823976 
3983 - `"claude-haiku-4-5-20251001"`
3977 Powerful intelligence for long-running agents and coding
39843978 
3985 Fastest model with near-frontier intelligence
3979 - `"claude-opus-4-5-20251101"`
39863980 
3987 - `"claude-opus-4-5"`
3981 Powerful intelligence for long-running agents and coding
39883982 
3989 Powerful intelligence for long-running agents and coding
3983 - `"claude-sonnet-4-5"`
39903984 
3991 - `"claude-opus-4-5-20251101"`
3985 High-performance model for agents and coding
39923986 
3993 Powerful intelligence for long-running agents and coding
3987 - `"claude-sonnet-4-5-20250929"`
39943988 
3995 - `"claude-sonnet-4-5"`
3989 High-performance model for agents and coding
39963990 
3997 High-performance model for agents and coding
3991 - `"claude-mythos-preview"`
39983992 
3999 - `"claude-sonnet-4-5-20250929"`
3993 **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.
40003994 
4001 High-performance model for agents and coding
3995 New class of intelligence, strongest in coding and cybersecurity
40023996 
4003 - `"claude-mythos-preview"`
4004 
4005 **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.
4006 
4007 New class of intelligence, strongest in coding and cybersecurity
4008 
40093997 - `string`
40103998 
40113999 - `role: "assistant"`
from line 5558
55705558 
55715559 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
55725560 
5573 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
5561 - `"claude-sonnet-5-5"`
55745562 
5575 The model that will complete your prompt.
5563 Efficient model for coding and agents
55765564 
5577 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
5565 - `"claude-fable-5-1"`
55785566 
5579 - `"claude-sonnet-5-5"`
5567 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
55805568 
5581 Efficient model for coding and agents
5569 - `"claude-opus-5-5"`
55825570 
5583 - `"claude-fable-5-1"`
5571 Powerful intelligence for coding, knowledge work, and long-running agents
55845572 
5585 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
5573 - `"claude-mythos-5-1"`
55865574 
5587 - `"claude-opus-5-5"`
5575 Our most capable model for cybersecurity and biology research, available through trusted access programs
55885576 
5589 Powerful intelligence for coding, knowledge work, and long-running agents
5577 - `"claude-sonnet-5"`
55905578 
5591 - `"claude-mythos-5-1"`
5579 Efficient model for coding and agents
55925580 
5593 Our most capable model for cybersecurity and biology research, available through trusted access programs
5581 - `"claude-fable-5"`
55945582 
5595 - `"claude-sonnet-5"`
5583 Next generation of intelligence for the hardest knowledge work and coding problems
55965584 
5597 Efficient model for coding and agents
5585 - `"claude-mythos-5"`
55985586 
5599 - `"claude-fable-5"`
5587 Most capable model for cybersecurity and biology research
56005588 
5601 Next generation of intelligence for the hardest knowledge work and coding problems
5589 - `"claude-opus-5"`
56025590 
5603 - `"claude-mythos-5"`
5591 Powerful intelligence for long-running agents and coding
56045592 
5605 Most capable model for cybersecurity and biology research
5593 - `"claude-opus-4-8"`
56065594 
5607 - `"claude-opus-5"`
5595 Powerful intelligence for long-running agents and coding
56085596 
5609 Powerful intelligence for long-running agents and coding
5597 - `"claude-opus-4-7"`
56105598 
5611 - `"claude-opus-4-8"`
5599 Powerful intelligence for long-running agents and coding
56125600 
5613 Powerful intelligence for long-running agents and coding
5601 - `"claude-opus-4-6"`
56145602 
5615 - `"claude-opus-4-7"`
5603 Powerful intelligence for long-running agents and coding
56165604 
5617 Powerful intelligence for long-running agents and coding
5605 - `"claude-sonnet-4-6"`
56185606 
5619 - `"claude-opus-4-6"`
5607 Best combination of speed and intelligence
56205608 
5621 Powerful intelligence for long-running agents and coding
5609 - `"claude-haiku-4-5"`
56225610 
5623 - `"claude-sonnet-4-6"`
5611 Fastest model with near-frontier intelligence
56245612 
5625 Best combination of speed and intelligence
5613 - `"claude-haiku-4-5-20251001"`
56265614 
5627 - `"claude-haiku-4-5"`
5615 Fastest model with near-frontier intelligence
56285616 
5629 Fastest model with near-frontier intelligence
5617 - `"claude-opus-4-5"`
56305618 
5631 - `"claude-haiku-4-5-20251001"`
5619 Powerful intelligence for long-running agents and coding
56325620 
5633 Fastest model with near-frontier intelligence
5621 - `"claude-opus-4-5-20251101"`
56345622 
5635 - `"claude-opus-4-5"`
5623 Powerful intelligence for long-running agents and coding
56365624 
5637 Powerful intelligence for long-running agents and coding
5625 - `"claude-sonnet-4-5"`
56385626 
5639 - `"claude-opus-4-5-20251101"`
5627 High-performance model for agents and coding
56405628 
5641 Powerful intelligence for long-running agents and coding
5629 - `"claude-sonnet-4-5-20250929"`
56425630 
5643 - `"claude-sonnet-4-5"`
5631 High-performance model for agents and coding
56445632 
5645 High-performance model for agents and coding
5633 - `"claude-mythos-preview"`
56465634 
5647 - `"claude-sonnet-4-5-20250929"`
5635 **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.
56485636 
5649 High-performance model for agents and coding
5637 New class of intelligence, strongest in coding and cybersecurity
56505638 
5651 - `"claude-mythos-preview"`
5652 
5653 **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.
5654 
5655 New class of intelligence, strongest in coding and cybersecurity
5656 
56575639 - `string`
56585640 
56595641- `cache_control: optional CacheControlEphemeral or null`
from line 8401
84198401 
84208402 - `path: optional string or null`
84218403 
8422 Where the executor saved the file, on the executor's filesystem. Only included when a
8404 Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.
8405 
8406 maxLength: 4096, pattern: ^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$
8407 
8408 - `size_bytes: optional number or null`
8409 
8410 The completed download's size.
8411 
8412 minimum: 0
8413 
8414### Browser State Change Download Failed
8415 
8416- `BrowserStateChangeDownloadFailed object`
8417 
8418 A file download that failed — or was cancelled — during this call.
8419 
8420 - `type: "download_failed"`
8421 
8422 - `download_id: string`
8423 
8424 The caller-assigned identifier for this download, stable across the state changes reporting it.
8425 
8426 minLength: 1, maxLength: 4096, pattern: ^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$
8427 
8428 - `url: string`
8429 
8430 The final post-redirect URL the download was served from.
8431 
8432 maxLength: 4096, pattern: ^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$
8433 
8434 - `error: optional string or null`
8435 
8436 The failure or cancellation detail, when known.
8437 
8438 maxLength: 4096, pattern: ^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$
8439 

api/messages/batches Changed · +385 / -415 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 1095
10951095 
10961096 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10971097 
1098 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
1098 - `"claude-sonnet-5-5"`
10991099 
1100 The model that will complete your prompt.
1100 Efficient model for coding and agents
11011101 
1102 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1102 - `"claude-fable-5-1"`
11031103 
1104 - `"claude-sonnet-5-5"`
1104 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
11051105 
1106 Efficient model for coding and agents
1106 - `"claude-opus-5-5"`
11071107 
1108 - `"claude-fable-5-1"`
1108 Powerful intelligence for coding, knowledge work, and long-running agents
11091109 
1110 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1110 - `"claude-mythos-5-1"`
11111111 
1112 - `"claude-opus-5-5"`
1112 Our most capable model for cybersecurity and biology research, available through trusted access programs
11131113 
1114 Powerful intelligence for coding, knowledge work, and long-running agents
1114 - `"claude-sonnet-5"`
11151115 
1116 - `"claude-mythos-5-1"`
1116 Efficient model for coding and agents
11171117 
1118 Our most capable model for cybersecurity and biology research, available through trusted access programs
1118 - `"claude-fable-5"`
11191119 
1120 - `"claude-sonnet-5"`
1120 Next generation of intelligence for the hardest knowledge work and coding problems
11211121 
1122 Efficient model for coding and agents
1122 - `"claude-mythos-5"`
11231123 
1124 - `"claude-fable-5"`
1124 Most capable model for cybersecurity and biology research
11251125 
1126 Next generation of intelligence for the hardest knowledge work and coding problems
1126 - `"claude-opus-5"`
11271127 
1128 - `"claude-mythos-5"`
1128 Powerful intelligence for long-running agents and coding
11291129 
1130 Most capable model for cybersecurity and biology research
1130 - `"claude-opus-4-8"`
11311131 
1132 - `"claude-opus-5"`
1132 Powerful intelligence for long-running agents and coding
11331133 
1134 Powerful intelligence for long-running agents and coding
1134 - `"claude-opus-4-7"`
11351135 
1136 - `"claude-opus-4-8"`
1136 Powerful intelligence for long-running agents and coding
11371137 
1138 Powerful intelligence for long-running agents and coding
1138 - `"claude-opus-4-6"`
11391139 
1140 - `"claude-opus-4-7"`
1140 Powerful intelligence for long-running agents and coding
11411141 
1142 Powerful intelligence for long-running agents and coding
1142 - `"claude-sonnet-4-6"`
11431143 
1144 - `"claude-opus-4-6"`
1144 Best combination of speed and intelligence
11451145 
1146 Powerful intelligence for long-running agents and coding
1146 - `"claude-haiku-4-5"`
11471147 
1148 - `"claude-sonnet-4-6"`
1148 Fastest model with near-frontier intelligence
11491149 
1150 Best combination of speed and intelligence
1150 - `"claude-haiku-4-5-20251001"`
11511151 
1152 - `"claude-haiku-4-5"`
1152 Fastest model with near-frontier intelligence
11531153 
1154 Fastest model with near-frontier intelligence
1154 - `"claude-opus-4-5"`
11551155 
1156 - `"claude-haiku-4-5-20251001"`
1156 Powerful intelligence for long-running agents and coding
11571157 
1158 Fastest model with near-frontier intelligence
1158 - `"claude-opus-4-5-20251101"`
11591159 
1160 - `"claude-opus-4-5"`
1160 Powerful intelligence for long-running agents and coding
11611161 
1162 Powerful intelligence for long-running agents and coding
1162 - `"claude-sonnet-4-5"`
11631163 
1164 - `"claude-opus-4-5-20251101"`
1164 High-performance model for agents and coding
11651165 
1166 Powerful intelligence for long-running agents and coding
1166 - `"claude-sonnet-4-5-20250929"`
11671167 
1168 - `"claude-sonnet-4-5"`
1168 High-performance model for agents and coding
11691169 
1170 High-performance model for agents and coding
1170 - `"claude-mythos-preview"`
11711171 
1172 - `"claude-sonnet-4-5-20250929"`
1172 **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.
11731173 
1174 High-performance model for agents and coding
1174 New class of intelligence, strongest in coding and cybersecurity
11751175 
1176 - `"claude-mythos-preview"`
1177 
1178 **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.
1179 
1180 New class of intelligence, strongest in coding and cybersecurity
1181 
11821176 - `string`
11831177 
11841178 - `cache_control: optional CacheControlEphemeral or null`
from line 4722
47284722 
47294723 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
47304724 
4731 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
4725 - `"claude-sonnet-5-5"`
47324726 
4733 The model that will complete your prompt.
4727 Efficient model for coding and agents
47344728 
4735 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
4729 - `"claude-fable-5-1"`
47364730 
4737 - `"claude-sonnet-5-5"`
4731 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
47384732 
4739 Efficient model for coding and agents
4733 - `"claude-opus-5-5"`
47404734 
4741 - `"claude-fable-5-1"`
4735 Powerful intelligence for coding, knowledge work, and long-running agents
47424736 
4743 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
4737 - `"claude-mythos-5-1"`
47444738 
4745 - `"claude-opus-5-5"`
4739 Our most capable model for cybersecurity and biology research, available through trusted access programs
47464740 
4747 Powerful intelligence for coding, knowledge work, and long-running agents
4741 - `"claude-sonnet-5"`
47484742 
4749 - `"claude-mythos-5-1"`
4743 Efficient model for coding and agents
47504744 
4751 Our most capable model for cybersecurity and biology research, available through trusted access programs
4745 - `"claude-fable-5"`
47524746 
4753 - `"claude-sonnet-5"`
4747 Next generation of intelligence for the hardest knowledge work and coding problems
47544748 
4755 Efficient model for coding and agents
4749 - `"claude-mythos-5"`
47564750 
4757 - `"claude-fable-5"`
4751 Most capable model for cybersecurity and biology research
47584752 
4759 Next generation of intelligence for the hardest knowledge work and coding problems
4753 - `"claude-opus-5"`
47604754 
4761 - `"claude-mythos-5"`
4755 Powerful intelligence for long-running agents and coding
47624756 
4763 Most capable model for cybersecurity and biology research
4757 - `"claude-opus-4-8"`
47644758 
4765 - `"claude-opus-5"`
4759 Powerful intelligence for long-running agents and coding
47664760 
4767 Powerful intelligence for long-running agents and coding
4761 - `"claude-opus-4-7"`
47684762 
4769 - `"claude-opus-4-8"`
4763 Powerful intelligence for long-running agents and coding
47704764 
4771 Powerful intelligence for long-running agents and coding
4765 - `"claude-opus-4-6"`
47724766 
4773 - `"claude-opus-4-7"`
4767 Powerful intelligence for long-running agents and coding
47744768 
4775 Powerful intelligence for long-running agents and coding
4769 - `"claude-sonnet-4-6"`
47764770 
4777 - `"claude-opus-4-6"`
4771 Best combination of speed and intelligence
47784772 
4779 Powerful intelligence for long-running agents and coding
4773 - `"claude-haiku-4-5"`
47804774 
4781 - `"claude-sonnet-4-6"`
4775 Fastest model with near-frontier intelligence
47824776 
4783 Best combination of speed and intelligence
4777 - `"claude-haiku-4-5-20251001"`
47844778 
4785 - `"claude-haiku-4-5"`
4779 Fastest model with near-frontier intelligence
47864780 
4787 Fastest model with near-frontier intelligence
4781 - `"claude-opus-4-5"`
47884782 
4789 - `"claude-haiku-4-5-20251001"`
4783 Powerful intelligence for long-running agents and coding
47904784 
4791 Fastest model with near-frontier intelligence
4785 - `"claude-opus-4-5-20251101"`
47924786 
4793 - `"claude-opus-4-5"`
4787 Powerful intelligence for long-running agents and coding
47944788 
4795 Powerful intelligence for long-running agents and coding
4789 - `"claude-sonnet-4-5"`
47964790 
4797 - `"claude-opus-4-5-20251101"`
4791 High-performance model for agents and coding
47984792 
4799 Powerful intelligence for long-running agents and coding
4793 - `"claude-sonnet-4-5-20250929"`
48004794 
4801 - `"claude-sonnet-4-5"`
4795 High-performance model for agents and coding
48024796 
4803 High-performance model for agents and coding
4797 - `"claude-mythos-preview"`
48044798 
4805 - `"claude-sonnet-4-5-20250929"`
4799 **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.
48064800 
4807 High-performance model for agents and coding
4801 New class of intelligence, strongest in coding and cybersecurity
48084802 
4809 - `"claude-mythos-preview"`
4810 
4811 **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.
4812 
4813 New class of intelligence, strongest in coding and cybersecurity
4814 
48154803 - `string`
48164804 
48174805 - `role: "assistant"`
from line 6231
62436231 
62446232 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
62456233 
6246 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
6234 - `"claude-sonnet-5-5"`
62476235 
6248 The model that will complete your prompt.
6236 Efficient model for coding and agents
62496237 
6250 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
6238 - `"claude-fable-5-1"`
62516239 
6252 - `"claude-sonnet-5-5"`
6240 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
62536241 
6254 Efficient model for coding and agents
6242 - `"claude-opus-5-5"`
62556243 
6256 - `"claude-fable-5-1"`
6244 Powerful intelligence for coding, knowledge work, and long-running agents
62576245 
6258 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
6246 - `"claude-mythos-5-1"`
62596247 
6260 - `"claude-opus-5-5"`
6248 Our most capable model for cybersecurity and biology research, available through trusted access programs
62616249 
6262 Powerful intelligence for coding, knowledge work, and long-running agents
6250 - `"claude-sonnet-5"`
62636251 
6264 - `"claude-mythos-5-1"`
6252 Efficient model for coding and agents
62656253 
6266 Our most capable model for cybersecurity and biology research, available through trusted access programs
6254 - `"claude-fable-5"`
62676255 
6268 - `"claude-sonnet-5"`
6256 Next generation of intelligence for the hardest knowledge work and coding problems
62696257 
6270 Efficient model for coding and agents
6258 - `"claude-mythos-5"`
62716259 
6272 - `"claude-fable-5"`
6260 Most capable model for cybersecurity and biology research
62736261 
6274 Next generation of intelligence for the hardest knowledge work and coding problems
6262 - `"claude-opus-5"`
62756263 
6276 - `"claude-mythos-5"`
6264 Powerful intelligence for long-running agents and coding
62776265 
6278 Most capable model for cybersecurity and biology research
6266 - `"claude-opus-4-8"`
62796267 
6280 - `"claude-opus-5"`
6268 Powerful intelligence for long-running agents and coding
62816269 
6282 Powerful intelligence for long-running agents and coding
6270 - `"claude-opus-4-7"`
62836271 
6284 - `"claude-opus-4-8"`
6272 Powerful intelligence for long-running agents and coding
62856273 
6286 Powerful intelligence for long-running agents and coding
6274 - `"claude-opus-4-6"`
62876275 
6288 - `"claude-opus-4-7"`
6276 Powerful intelligence for long-running agents and coding
62896277 
6290 Powerful intelligence for long-running agents and coding
6278 - `"claude-sonnet-4-6"`
62916279 
6292 - `"claude-opus-4-6"`
6280 Best combination of speed and intelligence
62936281 
6294 Powerful intelligence for long-running agents and coding
6282 - `"claude-haiku-4-5"`
62956283 
6296 - `"claude-sonnet-4-6"`
6284 Fastest model with near-frontier intelligence
62976285 
6298 Best combination of speed and intelligence
6286 - `"claude-haiku-4-5-20251001"`
62996287 
6300 - `"claude-haiku-4-5"`
6288 Fastest model with near-frontier intelligence
63016289 
6302 Fastest model with near-frontier intelligence
6290 - `"claude-opus-4-5"`
63036291 
6304 - `"claude-haiku-4-5-20251001"`
6292 Powerful intelligence for long-running agents and coding
63056293 
6306 Fastest model with near-frontier intelligence
6294 - `"claude-opus-4-5-20251101"`
63076295 
6308 - `"claude-opus-4-5"`
6296 Powerful intelligence for long-running agents and coding
63096297 
6310 Powerful intelligence for long-running agents and coding
6298 - `"claude-sonnet-4-5"`
63116299 
6312 - `"claude-opus-4-5-20251101"`
6300 High-performance model for agents and coding
63136301 
6314 Powerful intelligence for long-running agents and coding
6302 - `"claude-sonnet-4-5-20250929"`
63156303 
6316 - `"claude-sonnet-4-5"`
6304 High-performance model for agents and coding
63176305 
6318 High-performance model for agents and coding
6306 - `"claude-mythos-preview"`
63196307 
6320 - `"claude-sonnet-4-5-20250929"`
6308 **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.
63216309 
6322 High-performance model for agents and coding
6310 New class of intelligence, strongest in coding and cybersecurity
63236311 
6324 - `"claude-mythos-preview"`
6325 
6326 **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.
6327 
6328 New class of intelligence, strongest in coding and cybersecurity
6329 
63306312 - `string`
63316313 
63326314 - `role: "assistant"`
from line 7512
75307512 
75317513 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
75327514 
7533 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
7515 - `"claude-sonnet-5-5"`
75347516 
7535 The model that will complete your prompt.
7517 Efficient model for coding and agents
75367518 
7537 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
7519 - `"claude-fable-5-1"`
75387520 
7539 - `"claude-sonnet-5-5"`
7521 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
75407522 
7541 Efficient model for coding and agents
7523 - `"claude-opus-5-5"`
75427524 
7543 - `"claude-fable-5-1"`
7525 Powerful intelligence for coding, knowledge work, and long-running agents
75447526 
7545 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
7527 - `"claude-mythos-5-1"`
75467528 
7547 - `"claude-opus-5-5"`
7529 Our most capable model for cybersecurity and biology research, available through trusted access programs
75487530 
7549 Powerful intelligence for coding, knowledge work, and long-running agents
7531 - `"claude-sonnet-5"`
75507532 
7551 - `"claude-mythos-5-1"`
7533 Efficient model for coding and agents
75527534 
7553 Our most capable model for cybersecurity and biology research, available through trusted access programs
7535 - `"claude-fable-5"`
75547536 
7555 - `"claude-sonnet-5"`
7537 Next generation of intelligence for the hardest knowledge work and coding problems
75567538 
7557 Efficient model for coding and agents
7539 - `"claude-mythos-5"`
75587540 
7559 - `"claude-fable-5"`
7541 Most capable model for cybersecurity and biology research
75607542 
7561 Next generation of intelligence for the hardest knowledge work and coding problems
7543 - `"claude-opus-5"`
75627544 
7563 - `"claude-mythos-5"`
7545 Powerful intelligence for long-running agents and coding
75647546 
7565 Most capable model for cybersecurity and biology research
7547 - `"claude-opus-4-8"`
75667548 
7567 - `"claude-opus-5"`
7549 Powerful intelligence for long-running agents and coding
75687550 
7569 Powerful intelligence for long-running agents and coding
7551 - `"claude-opus-4-7"`
75707552 
7571 - `"claude-opus-4-8"`
7553 Powerful intelligence for long-running agents and coding
75727554 
7573 Powerful intelligence for long-running agents and coding
7555 - `"claude-opus-4-6"`
75747556 
7575 - `"claude-opus-4-7"`
7557 Powerful intelligence for long-running agents and coding
75767558 
7577 Powerful intelligence for long-running agents and coding
7559 - `"claude-sonnet-4-6"`
75787560 
7579 - `"claude-opus-4-6"`
7561 Best combination of speed and intelligence
75807562 
7581 Powerful intelligence for long-running agents and coding
7563 - `"claude-haiku-4-5"`
75827564 
7583 - `"claude-sonnet-4-6"`
7565 Fastest model with near-frontier intelligence
75847566 
7585 Best combination of speed and intelligence
7567 - `"claude-haiku-4-5-20251001"`
75867568 
7587 - `"claude-haiku-4-5"`
7569 Fastest model with near-frontier intelligence
75887570 
7589 Fastest model with near-frontier intelligence
7571 - `"claude-opus-4-5"`
75907572 
7591 - `"claude-haiku-4-5-20251001"`
7573 Powerful intelligence for long-running agents and coding
75927574 
7593 Fastest model with near-frontier intelligence
7575 - `"claude-opus-4-5-20251101"`
75947576 
7595 - `"claude-opus-4-5"`
7577 Powerful intelligence for long-running agents and coding
75967578 
7597 Powerful intelligence for long-running agents and coding
7579 - `"claude-sonnet-4-5"`
75987580 
7599 - `"claude-opus-4-5-20251101"`
7581 High-performance model for agents and coding
76007582 
7601 Powerful intelligence for long-running agents and coding
7583 - `"claude-sonnet-4-5-20250929"`
76027584 
7603 - `"claude-sonnet-4-5"`
7585 High-performance model for agents and coding
76047586 
7605 High-performance model for agents and coding
7587 - `"claude-mythos-preview"`
76067588 
7607 - `"claude-sonnet-4-5-20250929"`
7589 **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.
76087590 
7609 High-performance model for agents and coding
7591 New class of intelligence, strongest in coding and cybersecurity
76107592 
7611 - `"claude-mythos-preview"`
7612 
7613 **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.
7614 
7615 New class of intelligence, strongest in coding and cybersecurity
7616 
76177593 - `string`
76187594 
76197595 - `role: "assistant"`
from line 8695
87198695 
87208696 - `cache_missed_input_tokens: number`
87218697 
8722 Approximate number of input tokens that would have been read from cache had the prefix matched the previo
8698 Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
8699 
8700 - `CacheMissSystemChanged object`
8701 
8702 - `type: "system_changed"`
8703 
8704 default: system_changed
8705 
8706 - `cache_missed_input_tokens: number`
8707 
8708 Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
8709 
8710 - `CacheMissToolsChanged object`
8711 
8712 - `type: "tools_changed"`
8713 
8714 default: tools_changed
8715 
8716 - `cache_missed_input_tokens: number`
8717 
8718 Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
8719 
8720 - `CacheMissMessagesChanged object`
8721 
8722 - `type: "messages_changed"`
8723 
8724 default: messages_changed
8725 
8726 - `cache_missed_input_tokens: number`
8727 
8728 Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
8729 
8730 - `CacheMissPreviousMessageNotFound object`
8731 
8732 - `type: "previous_message_not_found"`
8733 
8734 default: previous_message_not_found
8735 
8736 - `CacheMissUnavailable object`
8737 
8738 - `type: "unavailable"`
8739 
8740 default: unavailable
8741 
8742 - `model: Model`
8743 
8744 The model that will complete your prompt.
8745 
8746 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional

api/messages/batches/create Changed · +77 / -83 lines

from line 1093
10931093 
10941094 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10951095 
1096 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
1096 - `"claude-sonnet-5-5"`
10971097 
1098 The model that will complete your prompt.
1098 Efficient model for coding and agents
10991099 
1100 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1100 - `"claude-fable-5-1"`
11011101 
1102 - `"claude-sonnet-5-5"`
1102 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
11031103 
1104 Efficient model for coding and agents
1104 - `"claude-opus-5-5"`
11051105 
1106 - `"claude-fable-5-1"`
1106 Powerful intelligence for coding, knowledge work, and long-running agents
11071107 
1108 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1108 - `"claude-mythos-5-1"`
11091109 
1110 - `"claude-opus-5-5"`
1110 Our most capable model for cybersecurity and biology research, available through trusted access programs
11111111 
1112 Powerful intelligence for coding, knowledge work, and long-running agents
1112 - `"claude-sonnet-5"`
11131113 
1114 - `"claude-mythos-5-1"`
1114 Efficient model for coding and agents
11151115 
1116 Our most capable model for cybersecurity and biology research, available through trusted access programs
1116 - `"claude-fable-5"`
11171117 
1118 - `"claude-sonnet-5"`
1118 Next generation of intelligence for the hardest knowledge work and coding problems
11191119 
1120 Efficient model for coding and agents
1120 - `"claude-mythos-5"`
11211121 
1122 - `"claude-fable-5"`
1122 Most capable model for cybersecurity and biology research
11231123 
1124 Next generation of intelligence for the hardest knowledge work and coding problems
1124 - `"claude-opus-5"`
11251125 
1126 - `"claude-mythos-5"`
1126 Powerful intelligence for long-running agents and coding
11271127 
1128 Most capable model for cybersecurity and biology research
1128 - `"claude-opus-4-8"`
11291129 
1130 - `"claude-opus-5"`
1130 Powerful intelligence for long-running agents and coding
11311131 
1132 Powerful intelligence for long-running agents and coding
1132 - `"claude-opus-4-7"`
11331133 
1134 - `"claude-opus-4-8"`
1134 Powerful intelligence for long-running agents and coding
11351135 
1136 Powerful intelligence for long-running agents and coding
1136 - `"claude-opus-4-6"`
11371137 
1138 - `"claude-opus-4-7"`
1138 Powerful intelligence for long-running agents and coding
11391139 
1140 Powerful intelligence for long-running agents and coding
1140 - `"claude-sonnet-4-6"`
11411141 
1142 - `"claude-opus-4-6"`
1142 Best combination of speed and intelligence
11431143 
1144 Powerful intelligence for long-running agents and coding
1144 - `"claude-haiku-4-5"`
11451145 
1146 - `"claude-sonnet-4-6"`
1146 Fastest model with near-frontier intelligence
11471147 
1148 Best combination of speed and intelligence
1148 - `"claude-haiku-4-5-20251001"`
11491149 
1150 - `"claude-haiku-4-5"`
1150 Fastest model with near-frontier intelligence
11511151 
1152 Fastest model with near-frontier intelligence
1152 - `"claude-opus-4-5"`
11531153 
1154 - `"claude-haiku-4-5-20251001"`
1154 Powerful intelligence for long-running agents and coding
11551155 
1156 Fastest model with near-frontier intelligence
1156 - `"claude-opus-4-5-20251101"`
11571157 
1158 - `"claude-opus-4-5"`
1158 Powerful intelligence for long-running agents and coding
11591159 
1160 Powerful intelligence for long-running agents and coding
1160 - `"claude-sonnet-4-5"`
11611161 
1162 - `"claude-opus-4-5-20251101"`
1162 High-performance model for agents and coding
11631163 
1164 Powerful intelligence for long-running agents and coding
1164 - `"claude-sonnet-4-5-20250929"`
11651165 
1166 - `"claude-sonnet-4-5"`
1166 High-performance model for agents and coding
11671167 
1168 High-performance model for agents and coding
1168 - `"claude-mythos-preview"`
11691169 
1170 - `"claude-sonnet-4-5-20250929"`
1170 **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.
11711171 
1172 High-performance model for agents and coding
1173 
1174 - `"claude-mythos-preview"`
1175 
1176 **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.
1177 
1178 New class of intelligence, strongest in coding and cybersecurity
1172 New class of intelligence, strongest in coding and cybersecurity
11791173 
11801174 - `string`
11811175 

api/messages/batches/results Changed · +77 / -83 lines

from line 888
888888 
889889 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
890890 
891 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
891 - `"claude-sonnet-5-5"`
892892 
893 The model that will complete your prompt.
893 Efficient model for coding and agents
894894 
895 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
895 - `"claude-fable-5-1"`
896896 
897 - `"claude-sonnet-5-5"`
897 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
898898 
899 Efficient model for coding and agents
899 - `"claude-opus-5-5"`
900900 
901 - `"claude-fable-5-1"`
901 Powerful intelligence for coding, knowledge work, and long-running agents
902902 
903 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
903 - `"claude-mythos-5-1"`
904904 
905 - `"claude-opus-5-5"`
905 Our most capable model for cybersecurity and biology research, available through trusted access programs
906906 
907 Powerful intelligence for coding, knowledge work, and long-running agents
907 - `"claude-sonnet-5"`
908908 
909 - `"claude-mythos-5-1"`
909 Efficient model for coding and agents
910910 
911 Our most capable model for cybersecurity and biology research, available through trusted access programs
911 - `"claude-fable-5"`
912912 
913 - `"claude-sonnet-5"`
913 Next generation of intelligence for the hardest knowledge work and coding problems
914914 
915 Efficient model for coding and agents
915 - `"claude-mythos-5"`
916916 
917 - `"claude-fable-5"`
917 Most capable model for cybersecurity and biology research
918918 
919 Next generation of intelligence for the hardest knowledge work and coding problems
919 - `"claude-opus-5"`
920920 
921 - `"claude-mythos-5"`
921 Powerful intelligence for long-running agents and coding
922922 
923 Most capable model for cybersecurity and biology research
923 - `"claude-opus-4-8"`
924924 
925 - `"claude-opus-5"`
925 Powerful intelligence for long-running agents and coding
926926 
927 Powerful intelligence for long-running agents and coding
927 - `"claude-opus-4-7"`
928928 
929 - `"claude-opus-4-8"`
929 Powerful intelligence for long-running agents and coding
930930 
931 Powerful intelligence for long-running agents and coding
931 - `"claude-opus-4-6"`
932932 
933 - `"claude-opus-4-7"`
933 Powerful intelligence for long-running agents and coding
934934 
935 Powerful intelligence for long-running agents and coding
935 - `"claude-sonnet-4-6"`
936936 
937 - `"claude-opus-4-6"`
937 Best combination of speed and intelligence
938938 
939 Powerful intelligence for long-running agents and coding
939 - `"claude-haiku-4-5"`
940940 
941 - `"claude-sonnet-4-6"`
941 Fastest model with near-frontier intelligence
942942 
943 Best combination of speed and intelligence
943 - `"claude-haiku-4-5-20251001"`
944944 
945 - `"claude-haiku-4-5"`
945 Fastest model with near-frontier intelligence
946946 
947 Fastest model with near-frontier intelligence
947 - `"claude-opus-4-5"`
948948 
949 - `"claude-haiku-4-5-20251001"`
949 Powerful intelligence for long-running agents and coding
950950 
951 Fastest model with near-frontier intelligence
951 - `"claude-opus-4-5-20251101"`
952952 
953 - `"claude-opus-4-5"`
953 Powerful intelligence for long-running agents and coding
954954 
955 Powerful intelligence for long-running agents and coding
955 - `"claude-sonnet-4-5"`
956956 
957 - `"claude-opus-4-5-20251101"`
957 High-performance model for agents and coding
958958 
959 Powerful intelligence for long-running agents and coding
959 - `"claude-sonnet-4-5-20250929"`
960960 
961 - `"claude-sonnet-4-5"`
961 High-performance model for agents and coding
962962 
963 High-performance model for agents and coding
963 - `"claude-mythos-preview"`
964964 
965 - `"claude-sonnet-4-5-20250929"`
965 **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.
966966 
967 High-performance model for agents and coding
968 
969 - `"claude-mythos-preview"`
970 
971 **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.
972 
973 New class of intelligence, strongest in coding and cybersecurity
967 New class of intelligence, strongest in coding and cybersecurity
974968 
975969 - `string`
976970 

api/messages/count_tokens Changed · +77 / -83 lines

from line 1061
10611061 
10621062 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10631063 
1064 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
1064 - `"claude-sonnet-5-5"`
10651065 
1066 The model that will complete your prompt.
1066 Efficient model for coding and agents
10671067 
1068 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1068 - `"claude-fable-5-1"`
10691069 
1070 - `"claude-sonnet-5-5"`
1070 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
10711071 
1072 Efficient model for coding and agents
1072 - `"claude-opus-5-5"`
10731073 
1074 - `"claude-fable-5-1"`
1074 Powerful intelligence for coding, knowledge work, and long-running agents
10751075 
1076 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1076 - `"claude-mythos-5-1"`
10771077 
1078 - `"claude-opus-5-5"`
1078 Our most capable model for cybersecurity and biology research, available through trusted access programs
10791079 
1080 Powerful intelligence for coding, knowledge work, and long-running agents
1080 - `"claude-sonnet-5"`
10811081 
1082 - `"claude-mythos-5-1"`
1082 Efficient model for coding and agents
10831083 
1084 Our most capable model for cybersecurity and biology research, available through trusted access programs
1084 - `"claude-fable-5"`
10851085 
1086 - `"claude-sonnet-5"`
1086 Next generation of intelligence for the hardest knowledge work and coding problems
10871087 
1088 Efficient model for coding and agents
1088 - `"claude-mythos-5"`
10891089 
1090 - `"claude-fable-5"`
1090 Most capable model for cybersecurity and biology research
10911091 
1092 Next generation of intelligence for the hardest knowledge work and coding problems
1092 - `"claude-opus-5"`
10931093 
1094 - `"claude-mythos-5"`
1094 Powerful intelligence for long-running agents and coding
10951095 
1096 Most capable model for cybersecurity and biology research
1096 - `"claude-opus-4-8"`
10971097 
1098 - `"claude-opus-5"`
1098 Powerful intelligence for long-running agents and coding
10991099 
1100 Powerful intelligence for long-running agents and coding
1100 - `"claude-opus-4-7"`
11011101 
1102 - `"claude-opus-4-8"`
1102 Powerful intelligence for long-running agents and coding
11031103 
1104 Powerful intelligence for long-running agents and coding
1104 - `"claude-opus-4-6"`
11051105 
1106 - `"claude-opus-4-7"`
1106 Powerful intelligence for long-running agents and coding
11071107 
1108 Powerful intelligence for long-running agents and coding
1108 - `"claude-sonnet-4-6"`
11091109 
1110 - `"claude-opus-4-6"`
1110 Best combination of speed and intelligence
11111111 
1112 Powerful intelligence for long-running agents and coding
1112 - `"claude-haiku-4-5"`
11131113 
1114 - `"claude-sonnet-4-6"`
1114 Fastest model with near-frontier intelligence
11151115 
1116 Best combination of speed and intelligence
1116 - `"claude-haiku-4-5-20251001"`
11171117 
1118 - `"claude-haiku-4-5"`
1118 Fastest model with near-frontier intelligence
11191119 
1120 Fastest model with near-frontier intelligence
1120 - `"claude-opus-4-5"`
11211121 
1122 - `"claude-haiku-4-5-20251001"`
1122 Powerful intelligence for long-running agents and coding
11231123 
1124 Fastest model with near-frontier intelligence
1124 - `"claude-opus-4-5-20251101"`
11251125 
1126 - `"claude-opus-4-5"`
1126 Powerful intelligence for long-running agents and coding
11271127 
1128 Powerful intelligence for long-running agents and coding
1128 - `"claude-sonnet-4-5"`
11291129 
1130 - `"claude-opus-4-5-20251101"`
1130 High-performance model for agents and coding
11311131 
1132 Powerful intelligence for long-running agents and coding
1132 - `"claude-sonnet-4-5-20250929"`
11331133 
1134 - `"claude-sonnet-4-5"`
1134 High-performance model for agents and coding
11351135 
1136 High-performance model for agents and coding
1136 - `"claude-mythos-preview"`
11371137 
1138 - `"claude-sonnet-4-5-20250929"`
1138 **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.
11391139 
1140 High-performance model for agents and coding
1141 
1142 - `"claude-mythos-preview"`
1143 
1144 **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.
1145 
1146 New class of intelligence, strongest in coding and cybersecurity
1140 New class of intelligence, strongest in coding and cybersecurity
11471141 
11481142 - `string`
11491143 

api/messages/create Changed · +154 / -166 lines

from line 1073
10731073 
10741074 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
10751075 
1076 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
1076 - `"claude-sonnet-5-5"`
10771077 
1078 The model that will complete your prompt.
1078 Efficient model for coding and agents
10791079 
1080 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1080 - `"claude-fable-5-1"`
10811081 
1082 - `"claude-sonnet-5-5"`
1082 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
10831083 
1084 Efficient model for coding and agents
1084 - `"claude-opus-5-5"`
10851085 
1086 - `"claude-fable-5-1"`
1086 Powerful intelligence for coding, knowledge work, and long-running agents
10871087 
1088 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1088 - `"claude-mythos-5-1"`
10891089 
1090 - `"claude-opus-5-5"`
1090 Our most capable model for cybersecurity and biology research, available through trusted access programs
10911091 
1092 Powerful intelligence for coding, knowledge work, and long-running agents
1092 - `"claude-sonnet-5"`
10931093 
1094 - `"claude-mythos-5-1"`
1094 Efficient model for coding and agents
10951095 
1096 Our most capable model for cybersecurity and biology research, available through trusted access programs
1096 - `"claude-fable-5"`
10971097 
1098 - `"claude-sonnet-5"`
1098 Next generation of intelligence for the hardest knowledge work and coding problems
10991099 
1100 Efficient model for coding and agents
1100 - `"claude-mythos-5"`
11011101 
1102 - `"claude-fable-5"`
1102 Most capable model for cybersecurity and biology research
11031103 
1104 Next generation of intelligence for the hardest knowledge work and coding problems
1104 - `"claude-opus-5"`
11051105 
1106 - `"claude-mythos-5"`
1106 Powerful intelligence for long-running agents and coding
11071107 
1108 Most capable model for cybersecurity and biology research
1108 - `"claude-opus-4-8"`
11091109 
1110 - `"claude-opus-5"`
1110 Powerful intelligence for long-running agents and coding
11111111 
1112 Powerful intelligence for long-running agents and coding
1112 - `"claude-opus-4-7"`
11131113 
1114 - `"claude-opus-4-8"`
1114 Powerful intelligence for long-running agents and coding
11151115 
1116 Powerful intelligence for long-running agents and coding
1116 - `"claude-opus-4-6"`
11171117 
1118 - `"claude-opus-4-7"`
1118 Powerful intelligence for long-running agents and coding
11191119 
1120 Powerful intelligence for long-running agents and coding
1120 - `"claude-sonnet-4-6"`
11211121 
1122 - `"claude-opus-4-6"`
1122 Best combination of speed and intelligence
11231123 
1124 Powerful intelligence for long-running agents and coding
1124 - `"claude-haiku-4-5"`
11251125 
1126 - `"claude-sonnet-4-6"`
1126 Fastest model with near-frontier intelligence
11271127 
1128 Best combination of speed and intelligence
1128 - `"claude-haiku-4-5-20251001"`
11291129 
1130 - `"claude-haiku-4-5"`
1130 Fastest model with near-frontier intelligence
11311131 
1132 Fastest model with near-frontier intelligence
1132 - `"claude-opus-4-5"`
11331133 
1134 - `"claude-haiku-4-5-20251001"`
1134 Powerful intelligence for long-running agents and coding
11351135 
1136 Fastest model with near-frontier intelligence
1136 - `"claude-opus-4-5-20251101"`
11371137 
1138 - `"claude-opus-4-5"`
1138 Powerful intelligence for long-running agents and coding
11391139 
1140 Powerful intelligence for long-running agents and coding
1140 - `"claude-sonnet-4-5"`
11411141 
1142 - `"claude-opus-4-5-20251101"`
1142 High-performance model for agents and coding
11431143 
1144 Powerful intelligence for long-running agents and coding
1144 - `"claude-sonnet-4-5-20250929"`
11451145 
1146 - `"claude-sonnet-4-5"`
1146 High-performance model for agents and coding
11471147 
1148 High-performance model for agents and coding
1148 - `"claude-mythos-preview"`
11491149 
1150 - `"claude-sonnet-4-5-20250929"`
1150 **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.
11511151 
1152 High-performance model for agents and coding
1152 New class of intelligence, strongest in coding and cybersecurity
11531153 
1154 - `"claude-mythos-preview"`
1155 
1156 **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.
1157 
1158 New class of intelligence, strongest in coding and cybersecurity
1159 
11601154 - `string`
11611155 
11621156- `cache_control: optional CacheControlEphemeral or null`
from line 3914
39203914 
39213915 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
39223916 
3923 - `"claude-sonnet-5-5" or "claude-fable-5-1" or "claude-opus-5-5" or 16 more`
3917 - `"claude-sonnet-5-5"`
39243918 
3925 The model that will complete your prompt.
3919 Efficient model for coding and agents
39263920 
3927 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
3921 - `"claude-fable-5-1"`
39283922 
3929 - `"claude-sonnet-5-5"`
3923 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
39303924 
3931 Efficient model for coding and agents
3925 - `"claude-opus-5-5"`
39323926 
3933 - `"claude-fable-5-1"`
3927 Powerful intelligence for coding, knowledge work, and long-running agents
39343928 
3935 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
3929 - `"claude-mythos-5-1"`
39363930 
3937 - `"claude-opus-5-5"`
3931 Our most capable model for cybersecurity and biology research, available through trusted access programs
39383932 
3939 Powerful intelligence for coding, knowledge work, and long-running agents
3933 - `"claude-sonnet-5"`
39403934 
3941 - `"claude-mythos-5-1"`
3935 Efficient model for coding and agents
39423936 
3943 Our most capable model for cybersecurity and biology research, available through trusted access programs
3937 - `"claude-fable-5"`
39443938 
3945 - `"claude-sonnet-5"`
3939 Next generation of intelligence for the hardest knowledge work and coding problems
39463940 
3947 Efficient model for coding and agents
3941 - `"claude-mythos-5"`
39483942 
3949 - `"claude-fable-5"`
3943 Most capable model for cybersecurity and biology research
39503944 
3951 Next generation of intelligence for the hardest knowledge work and coding problems
3945 - `"claude-opus-5"`
39523946 
3953 - `"claude-mythos-5"`
3947 Powerful intelligence for long-running agents and coding
39543948 
3955 Most capable model for cybersecurity and biology research
3949 - `"claude-opus-4-8"`
39563950 
3957 - `"claude-opus-5"`
3951 Powerful intelligence for long-running agents and coding
39583952 
3959 Powerful intelligence for long-running agents and coding
3953 - `"claude-opus-4-7"`
39603954 
3961 - `"claude-opus-4-8"`
3955 Powerful intelligence for long-running agents and coding
39623956 
3963 Powerful intelligence for long-running agents and coding
3957 - `"claude-opus-4-6"`
39643958 
3965 - `"claude-opus-4-7"`
3959 Powerful intelligence for long-running agents and coding
39663960 
3967 Powerful intelligence for long-running agents and coding
3961 - `"claude-sonnet-4-6"`
39683962 
3969 - `"claude-opus-4-6"`
3963 Best combination of speed and intelligence
39703964 
3971 Powerful intelligence for long-running agents and coding
3965 - `"claude-haiku-4-5"`
39723966 
3973 - `"claude-sonnet-4-6"`
3967 Fastest model with near-frontier intelligence
39743968 
3975 Best combination of speed and intelligence
3969 - `"claude-haiku-4-5-20251001"`
39763970 
3977 - `"claude-haiku-4-5"`
3971 Fastest model with near-frontier intelligence
39783972 
3979 Fastest model with near-frontier intelligence
3973 - `"claude-opus-4-5"`
39803974 
3981 - `"claude-haiku-4-5-20251001"`
3975 Powerful intelligence for long-running agents and coding
39823976 
3983 Fastest model with near-frontier intelligence
3977 - `"claude-opus-4-5-20251101"`
39843978 
3985 - `"claude-opus-4-5"`
3979 Powerful intelligence for long-running agents and coding
39863980 
3987 Powerful intelligence for long-running agents and coding
3981 - `"claude-sonnet-4-5"`
39883982 
3989 - `"claude-opus-4-5-20251101"`
3983 High-performance model for agents and coding
39903984 
3991 Powerful intelligence for long-running agents and coding
3985 - `"claude-sonnet-4-5-20250929"`
39923986 
3993 - `"claude-sonnet-4-5"`
3987 High-performance model for agents and coding
39943988 
3995 High-performance model for agents and coding
3989 - `"claude-mythos-preview"`
39963990 
3997 - `"claude-sonnet-4-5-20250929"`
3991 **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.
39983992 
3999 High-performance model for agents and coding
4000 
4001 - `"claude-mythos-preview"`
4002 
4003 **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.
4004 
4005 New class of intelligence, strongest in coding and cybersecurity
3993 New class of intelligence, strongest in coding and cybersecurity
40063994 
40073995 - `string`
40083996 

api/models Changed · +190 / -194 lines

from line 47
4747 
4848 - `string`
4949 
50 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
50 - `"message-batches-2024-09-24"`
5151 
52 - `"message-batches-2024-09-24"`
52 - `"prompt-caching-2024-07-31"`
5353 
54 - `"prompt-caching-2024-07-31"`
54 - `"computer-use-2024-10-22"`
5555 
56 - `"computer-use-2024-10-22"`
56 - `"computer-use-2025-01-24"`
5757 
58 - `"computer-use-2025-01-24"`
58 - `"pdfs-2024-09-25"`
5959 
60 - `"pdfs-2024-09-25"`
60 - `"token-counting-2024-11-01"`
6161 
62 - `"token-counting-2024-11-01"`
62 - `"token-efficient-tools-2025-02-19"`
6363 
64 - `"token-efficient-tools-2025-02-19"`
64 - `"output-128k-2025-02-19"`
6565 
66 - `"output-128k-2025-02-19"`
66 - `"files-api-2025-04-14"`
6767 
68 - `"files-api-2025-04-14"`
68 - `"mcp-client-2025-04-04"`
6969 
70 - `"mcp-client-2025-04-04"`
70 - `"mcp-client-2025-11-20"`
7171 
72 - `"mcp-client-2025-11-20"`
72 - `"dev-full-thinking-2025-05-14"`
7373 
74 - `"dev-full-thinking-2025-05-14"`
74 - `"interleaved-thinking-2025-05-14"`
7575 
76 - `"interleaved-thinking-2025-05-14"`
76 - `"code-execution-2025-05-22"`
7777 
78 - `"code-execution-2025-05-22"`
78 - `"extended-cache-ttl-2025-04-11"`
7979 
80 - `"extended-cache-ttl-2025-04-11"`
80 - `"context-1m-2025-08-07"`
8181 
82 - `"context-1m-2025-08-07"`
82 - `"context-management-2025-06-27"`
8383 
84 - `"context-management-2025-06-27"`
84 - `"model-context-window-exceeded-2025-08-26"`
8585 
86 - `"model-context-window-exceeded-2025-08-26"`
86 - `"skills-2025-10-02"`
8787 
88 - `"skills-2025-10-02"`
88 - `"fast-mode-2026-02-01"`
8989 
90 - `"fast-mode-2026-02-01"`
90 - `"output-300k-2026-03-24"`
9191 
92 - `"output-300k-2026-03-24"`
92 - `"user-profiles-2026-03-24"`
9393 
94 - `"user-profiles-2026-03-24"`
94 - `"user-profiles-2026-08-18"`
9595 
96 - `"user-profiles-2026-08-18"`
96 - `"user-profiles-2026-09-04"`
9797 
98 - `"user-profiles-2026-09-04"`
98 - `"advisor-tool-2026-03-01"`
9999 
100 - `"advisor-tool-2026-03-01"`
100 - `"managed-agents-2026-04-01"`
101101 
102 - `"managed-agents-2026-04-01"`
102 - `"cache-diagnosis-2026-04-07"`
103103 
104 - `"cache-diagnosis-2026-04-07"`
104 - `"dreaming-2026-04-21"`
105105 
106 - `"dreaming-2026-04-21"`
106 - `"thinking-token-count-2026-05-13"`
107107 
108 - `"thinking-token-count-2026-05-13"`
108 - `"server-side-fallback-2026-06-01"`
109109 
110 - `"server-side-fallback-2026-06-01"`
110 - `"server-side-fallback-2026-07-01"`
111111 
112 - `"server-side-fallback-2026-07-01"`
112 - `"fallback-credit-2026-06-01"`
113113 
114 - `"fallback-credit-2026-06-01"`
114 - `"fallback-credit-2026-07-01"`
115115 
116 - `"fallback-credit-2026-07-01"`
116 - `"agent-memory-2026-07-22"`
117117 
118 - `"agent-memory-2026-07-22"`
118 - `"mid-conversation-tool-changes-2026-07-01"`
119119 
120 - `"mid-conversation-tool-changes-2026-07-01"`
120 - `"compact-2026-01-12"`
121121 
122 - `"compact-2026-01-12"`
122 - `"computer-use-2025-11-24"`
123123 
124 - `"computer-use-2025-11-24"`
124 - `"mcp-tunnels-2026-06-22"`
125125 
126 - `"mcp-tunnels-2026-06-22"`
126 - `"structured-outputs-2025-11-13"`
127127 
128 - `"structured-outputs-2025-11-13"`
128 - `"task-budgets-2026-03-13"`
129129 
130 - `"task-budgets-2026-03-13"`
130 - `"thinking-display-updates-2026-08-18"`
131131 
132 - `"thinking-display-updates-2026-08-18"`
132 - `"ce-user-management-2026-07-13"`
133133 
134 - `"ce-user-management-2026-07-13"`
134 - `"mid-conversation-output-config-2026-07-01"`
135135 
136 - `"mid-conversation-output-config-2026-07-01"`
136 - `"thinking-binding-controls-2026-08-01"`
137137 
138 - `"thinking-binding-controls-2026-08-01"`
138 - `"mid-conversation-system-clear-at-2026-08-21"`
139139 
140 - `"mid-conversation-system-clear-at-2026-08-21"`
140 - `"compact-2026-09-04"`
141141 
142 - `"compact-2026-09-04"`
142 - `"inline-tools-2026-09-15"`
143143 
144 - `"inline-tools-2026-09-15"`
144 - `"mcp-client-2026-09-15"`
145145 
146 - `"mcp-client-2026-09-15"`
147 
148146### Returns
149147 
150148- `data: array of ModelInfo`
from line 408
410408 
411409 - `string`
412410 
413 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
411 - `"message-batches-2024-09-24"`
414412 
415 - `"message-batches-2024-09-24"`
413 - `"prompt-caching-2024-07-31"`
416414 
417 - `"prompt-caching-2024-07-31"`
415 - `"computer-use-2024-10-22"`
418416 
419 - `"computer-use-2024-10-22"`
417 - `"computer-use-2025-01-24"`
420418 
421 - `"computer-use-2025-01-24"`
419 - `"pdfs-2024-09-25"`
422420 
423 - `"pdfs-2024-09-25"`
421 - `"token-counting-2024-11-01"`
424422 
425 - `"token-counting-2024-11-01"`
423 - `"token-efficient-tools-2025-02-19"`
426424 
427 - `"token-efficient-tools-2025-02-19"`
425 - `"output-128k-2025-02-19"`
428426 
429 - `"output-128k-2025-02-19"`
427 - `"files-api-2025-04-14"`
430428 
431 - `"files-api-2025-04-14"`
429 - `"mcp-client-2025-04-04"`
432430 
433 - `"mcp-client-2025-04-04"`
431 - `"mcp-client-2025-11-20"`
434432 
435 - `"mcp-client-2025-11-20"`
433 - `"dev-full-thinking-2025-05-14"`
436434 
437 - `"dev-full-thinking-2025-05-14"`
435 - `"interleaved-thinking-2025-05-14"`
438436 
439 - `"interleaved-thinking-2025-05-14"`
437 - `"code-execution-2025-05-22"`
440438 
441 - `"code-execution-2025-05-22"`
439 - `"extended-cache-ttl-2025-04-11"`
442440 
443 - `"extended-cache-ttl-2025-04-11"`
441 - `"context-1m-2025-08-07"`
444442 
445 - `"context-1m-2025-08-07"`
443 - `"context-management-2025-06-27"`
446444 
447 - `"context-management-2025-06-27"`
445 - `"model-context-window-exceeded-2025-08-26"`
448446 
449 - `"model-context-window-exceeded-2025-08-26"`
447 - `"skills-2025-10-02"`
450448 
451 - `"skills-2025-10-02"`
449 - `"fast-mode-2026-02-01"`
452450 
453 - `"fast-mode-2026-02-01"`
451 - `"output-300k-2026-03-24"`
454452 
455 - `"output-300k-2026-03-24"`
453 - `"user-profiles-2026-03-24"`
456454 
457 - `"user-profiles-2026-03-24"`
455 - `"user-profiles-2026-08-18"`
458456 
459 - `"user-profiles-2026-08-18"`
457 - `"user-profiles-2026-09-04"`
460458 
461 - `"user-profiles-2026-09-04"`
459 - `"advisor-tool-2026-03-01"`
462460 
463 - `"advisor-tool-2026-03-01"`
461 - `"managed-agents-2026-04-01"`
464462 
465 - `"managed-agents-2026-04-01"`
463 - `"cache-diagnosis-2026-04-07"`
466464 
467 - `"cache-diagnosis-2026-04-07"`
465 - `"dreaming-2026-04-21"`
468466 
469 - `"dreaming-2026-04-21"`
467 - `"thinking-token-count-2026-05-13"`
470468 
471 - `"thinking-token-count-2026-05-13"`
469 - `"server-side-fallback-2026-06-01"`
472470 
473 - `"server-side-fallback-2026-06-01"`
471 - `"server-side-fallback-2026-07-01"`
474472 
475 - `"server-side-fallback-2026-07-01"`
473 - `"fallback-credit-2026-06-01"`
476474 
477 - `"fallback-credit-2026-06-01"`
475 - `"fallback-credit-2026-07-01"`
478476 
479 - `"fallback-credit-2026-07-01"`
477 - `"agent-memory-2026-07-22"`
480478 
481 - `"agent-memory-2026-07-22"`
479 - `"mid-conversation-tool-changes-2026-07-01"`
482480 
483 - `"mid-conversation-tool-changes-2026-07-01"`
481 - `"compact-2026-01-12"`
484482 
485 - `"compact-2026-01-12"`
483 - `"computer-use-2025-11-24"`
486484 
487 - `"computer-use-2025-11-24"`
485 - `"mcp-tunnels-2026-06-22"`
488486 
489 - `"mcp-tunnels-2026-06-22"`
487 - `"structured-outputs-2025-11-13"`
490488 
491 - `"structured-outputs-2025-11-13"`
489 - `"task-budgets-2026-03-13"`
492490 
493 - `"task-budgets-2026-03-13"`
491 - `"thinking-display-updates-2026-08-18"`
494492 
495 - `"thinking-display-updates-2026-08-18"`
493 - `"ce-user-management-2026-07-13"`
496494 
497 - `"ce-user-management-2026-07-13"`
495 - `"mid-conversation-output-config-2026-07-01"`
498496 
499 - `"mid-conversation-output-config-2026-07-01"`
497 - `"thinking-binding-controls-2026-08-01"`
500498 
501 - `"thinking-binding-controls-2026-08-01"`
499 - `"mid-conversation-system-clear-at-2026-08-21"`
502500 
503 - `"mid-conversation-system-clear-at-2026-08-21"`
501 - `"compact-2026-09-04"`
504502 
505 - `"compact-2026-09-04"`
503 - `"inline-tools-2026-09-15"`
506504 
507 - `"inline-tools-2026-09-15"`
508 
509 - `"mcp-client-2026-09-15"`
505 - `"mcp-client-2026-09-15"`
510506 
511507### Returns
512508 

api/models/list Changed · +95 / -97 lines

from line 45
4545 
4646 - `string`
4747 
48 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
48 - `"message-batches-2024-09-24"`
4949 
50 - `"message-batches-2024-09-24"`
50 - `"prompt-caching-2024-07-31"`
5151 
52 - `"prompt-caching-2024-07-31"`
52 - `"computer-use-2024-10-22"`
5353 
54 - `"computer-use-2024-10-22"`
54 - `"computer-use-2025-01-24"`
5555 
56 - `"computer-use-2025-01-24"`
56 - `"pdfs-2024-09-25"`
5757 
58 - `"pdfs-2024-09-25"`
58 - `"token-counting-2024-11-01"`
5959 
60 - `"token-counting-2024-11-01"`
60 - `"token-efficient-tools-2025-02-19"`
6161 
62 - `"token-efficient-tools-2025-02-19"`
62 - `"output-128k-2025-02-19"`
6363 
64 - `"output-128k-2025-02-19"`
64 - `"files-api-2025-04-14"`
6565 
66 - `"files-api-2025-04-14"`
66 - `"mcp-client-2025-04-04"`
6767 
68 - `"mcp-client-2025-04-04"`
68 - `"mcp-client-2025-11-20"`
6969 
70 - `"mcp-client-2025-11-20"`
70 - `"dev-full-thinking-2025-05-14"`
7171 
72 - `"dev-full-thinking-2025-05-14"`
72 - `"interleaved-thinking-2025-05-14"`
7373 
74 - `"interleaved-thinking-2025-05-14"`
74 - `"code-execution-2025-05-22"`
7575 
76 - `"code-execution-2025-05-22"`
76 - `"extended-cache-ttl-2025-04-11"`
7777 
78 - `"extended-cache-ttl-2025-04-11"`
78 - `"context-1m-2025-08-07"`
7979 
80 - `"context-1m-2025-08-07"`
80 - `"context-management-2025-06-27"`
8181 
82 - `"context-management-2025-06-27"`
82 - `"model-context-window-exceeded-2025-08-26"`
8383 
84 - `"model-context-window-exceeded-2025-08-26"`
84 - `"skills-2025-10-02"`
8585 
86 - `"skills-2025-10-02"`
86 - `"fast-mode-2026-02-01"`
8787 
88 - `"fast-mode-2026-02-01"`
88 - `"output-300k-2026-03-24"`
8989 
90 - `"output-300k-2026-03-24"`
90 - `"user-profiles-2026-03-24"`
9191 
92 - `"user-profiles-2026-03-24"`
92 - `"user-profiles-2026-08-18"`
9393 
94 - `"user-profiles-2026-08-18"`
94 - `"user-profiles-2026-09-04"`
9595 
96 - `"user-profiles-2026-09-04"`
96 - `"advisor-tool-2026-03-01"`
9797 
98 - `"advisor-tool-2026-03-01"`
98 - `"managed-agents-2026-04-01"`
9999 
100 - `"managed-agents-2026-04-01"`
100 - `"cache-diagnosis-2026-04-07"`
101101 
102 - `"cache-diagnosis-2026-04-07"`
102 - `"dreaming-2026-04-21"`
103103 
104 - `"dreaming-2026-04-21"`
104 - `"thinking-token-count-2026-05-13"`
105105 
106 - `"thinking-token-count-2026-05-13"`
106 - `"server-side-fallback-2026-06-01"`
107107 
108 - `"server-side-fallback-2026-06-01"`
108 - `"server-side-fallback-2026-07-01"`
109109 
110 - `"server-side-fallback-2026-07-01"`
110 - `"fallback-credit-2026-06-01"`
111111 
112 - `"fallback-credit-2026-06-01"`
112 - `"fallback-credit-2026-07-01"`
113113 
114 - `"fallback-credit-2026-07-01"`
114 - `"agent-memory-2026-07-22"`
115115 
116 - `"agent-memory-2026-07-22"`
116 - `"mid-conversation-tool-changes-2026-07-01"`
117117 
118 - `"mid-conversation-tool-changes-2026-07-01"`
118 - `"compact-2026-01-12"`
119119 
120 - `"compact-2026-01-12"`
120 - `"computer-use-2025-11-24"`
121121 
122 - `"computer-use-2025-11-24"`
122 - `"mcp-tunnels-2026-06-22"`
123123 
124 - `"mcp-tunnels-2026-06-22"`
124 - `"structured-outputs-2025-11-13"`
125125 
126 - `"structured-outputs-2025-11-13"`
126 - `"task-budgets-2026-03-13"`
127127 
128 - `"task-budgets-2026-03-13"`
128 - `"thinking-display-updates-2026-08-18"`
129129 
130 - `"thinking-display-updates-2026-08-18"`
130 - `"ce-user-management-2026-07-13"`
131131 
132 - `"ce-user-management-2026-07-13"`
132 - `"mid-conversation-output-config-2026-07-01"`
133133 
134 - `"mid-conversation-output-config-2026-07-01"`
134 - `"thinking-binding-controls-2026-08-01"`
135135 
136 - `"thinking-binding-controls-2026-08-01"`
136 - `"mid-conversation-system-clear-at-2026-08-21"`
137137 
138 - `"mid-conversation-system-clear-at-2026-08-21"`
138 - `"compact-2026-09-04"`
139139 
140 - `"compact-2026-09-04"`
140 - `"inline-tools-2026-09-15"`
141141 
142 - `"inline-tools-2026-09-15"`
143 
144 - `"mcp-client-2026-09-15"`
142 - `"mcp-client-2026-09-15"`
145143 
146144## Returns
147145 

api/models/retrieve Changed · +95 / -97 lines

from line 33
3333 
3434 - `string`
3535 
36 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
36 - `"message-batches-2024-09-24"`
3737 
38 - `"message-batches-2024-09-24"`
38 - `"prompt-caching-2024-07-31"`
3939 
40 - `"prompt-caching-2024-07-31"`
40 - `"computer-use-2024-10-22"`
4141 
42 - `"computer-use-2024-10-22"`
42 - `"computer-use-2025-01-24"`
4343 
44 - `"computer-use-2025-01-24"`
44 - `"pdfs-2024-09-25"`
4545 
46 - `"pdfs-2024-09-25"`
46 - `"token-counting-2024-11-01"`
4747 
48 - `"token-counting-2024-11-01"`
48 - `"token-efficient-tools-2025-02-19"`
4949 
50 - `"token-efficient-tools-2025-02-19"`
50 - `"output-128k-2025-02-19"`
5151 
52 - `"output-128k-2025-02-19"`
52 - `"files-api-2025-04-14"`
5353 
54 - `"files-api-2025-04-14"`
54 - `"mcp-client-2025-04-04"`
5555 
56 - `"mcp-client-2025-04-04"`
56 - `"mcp-client-2025-11-20"`
5757 
58 - `"mcp-client-2025-11-20"`
58 - `"dev-full-thinking-2025-05-14"`
5959 
60 - `"dev-full-thinking-2025-05-14"`
60 - `"interleaved-thinking-2025-05-14"`
6161 
62 - `"interleaved-thinking-2025-05-14"`
62 - `"code-execution-2025-05-22"`
6363 
64 - `"code-execution-2025-05-22"`
64 - `"extended-cache-ttl-2025-04-11"`
6565 
66 - `"extended-cache-ttl-2025-04-11"`
66 - `"context-1m-2025-08-07"`
6767 
68 - `"context-1m-2025-08-07"`
68 - `"context-management-2025-06-27"`
6969 
70 - `"context-management-2025-06-27"`
70 - `"model-context-window-exceeded-2025-08-26"`
7171 
72 - `"model-context-window-exceeded-2025-08-26"`
72 - `"skills-2025-10-02"`
7373 
74 - `"skills-2025-10-02"`
74 - `"fast-mode-2026-02-01"`
7575 
76 - `"fast-mode-2026-02-01"`
76 - `"output-300k-2026-03-24"`
7777 
78 - `"output-300k-2026-03-24"`
78 - `"user-profiles-2026-03-24"`
7979 
80 - `"user-profiles-2026-03-24"`
80 - `"user-profiles-2026-08-18"`
8181 
82 - `"user-profiles-2026-08-18"`
82 - `"user-profiles-2026-09-04"`
8383 
84 - `"user-profiles-2026-09-04"`
84 - `"advisor-tool-2026-03-01"`
8585 
86 - `"advisor-tool-2026-03-01"`
86 - `"managed-agents-2026-04-01"`
8787 
88 - `"managed-agents-2026-04-01"`
88 - `"cache-diagnosis-2026-04-07"`
8989 
90 - `"cache-diagnosis-2026-04-07"`
90 - `"dreaming-2026-04-21"`
9191 
92 - `"dreaming-2026-04-21"`
92 - `"thinking-token-count-2026-05-13"`
9393 
94 - `"thinking-token-count-2026-05-13"`
94 - `"server-side-fallback-2026-06-01"`
9595 
96 - `"server-side-fallback-2026-06-01"`
96 - `"server-side-fallback-2026-07-01"`
9797 
98 - `"server-side-fallback-2026-07-01"`
98 - `"fallback-credit-2026-06-01"`
9999 
100 - `"fallback-credit-2026-06-01"`
100 - `"fallback-credit-2026-07-01"`
101101 
102 - `"fallback-credit-2026-07-01"`
102 - `"agent-memory-2026-07-22"`
103103 
104 - `"agent-memory-2026-07-22"`
104 - `"mid-conversation-tool-changes-2026-07-01"`
105105 
106 - `"mid-conversation-tool-changes-2026-07-01"`
106 - `"compact-2026-01-12"`
107107 
108 - `"compact-2026-01-12"`
108 - `"computer-use-2025-11-24"`
109109 
110 - `"computer-use-2025-11-24"`
110 - `"mcp-tunnels-2026-06-22"`
111111 
112 - `"mcp-tunnels-2026-06-22"`
112 - `"structured-outputs-2025-11-13"`
113113 
114 - `"structured-outputs-2025-11-13"`
114 - `"task-budgets-2026-03-13"`
115115 
116 - `"task-budgets-2026-03-13"`
116 - `"thinking-display-updates-2026-08-18"`
117117 
118 - `"thinking-display-updates-2026-08-18"`
118 - `"ce-user-management-2026-07-13"`
119119 
120 - `"ce-user-management-2026-07-13"`
120 - `"mid-conversation-output-config-2026-07-01"`
121121 
122 - `"mid-conversation-output-config-2026-07-01"`
122 - `"thinking-binding-controls-2026-08-01"`
123123 
124 - `"thinking-binding-controls-2026-08-01"`
124 - `"mid-conversation-system-clear-at-2026-08-21"`
125125 
126 - `"mid-conversation-system-clear-at-2026-08-21"`
126 - `"compact-2026-09-04"`
127127 
128 - `"compact-2026-09-04"`
128 - `"inline-tools-2026-09-15"`
129129 
130 - `"inline-tools-2026-09-15"`
131 
132 - `"mcp-client-2026-09-15"`
130 - `"mcp-client-2026-09-15"`
133131 
134132## Returns
135133 

build-with-claude/claude-in-microsoft-foundry Changed · +41 / -39 lines

from line 39
3939Anthropic's [client SDKs](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) support Foundry through a platform-specific package or client class. The examples on this page also show requests with cURL and the ant CLI. To set up the CLI, see [CLI quickstart](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart).
4040 
4141<Note>
42 Foundry is supported by the C#, Java, PHP, Python, and TypeScript SDKs. Foundry is not currently available in the Go and Ruby SDKs.
42 Foundry is supported by the C#, Go, Java, PHP, Python, and TypeScript SDKs. Foundry is not currently available in the Ruby SDK.
4343</Note>
4444 
4545<Tabs>
from line 69
6969 
7070 <Tab title="Go">
7171 ```bash
72 # The Go SDK does not yet support Foundry natively (see the Authentication
73 # examples for using the standard Go SDK as a workaround)
74 go get github.com/anthropics/anthropic-sdk-go
72 go get github.com/anthropics/anthropic-sdk-go/foundry
73 
74 # For Entra ID authentication, also install the Azure Identity library
75 go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
7576 ```
7677 </Tab>
7778 
from line 184
1831843. Copy the **Key** value (and note the **Target URI** for your endpoint).
1841854. Use either the `api-key` or `x-api-key` header in your requests, or provide it to the SDK.
185186 
186The Foundry SDKs require an API key and either a resource name or base URL. The C#, Java, PHP, Python, and TypeScript SDKs automatically read these from the following environment variables if they are defined:
187The SDK's Foundry client requires an API key and either a resource name or base URL, and automatically reads them from the following environment variables if they are defined:
187188 
188189* `ANTHROPIC_FOUNDRY_API_KEY` - Your API key
189190* `ANTHROPIC_FOUNDRY_RESOURCE` - Your resource name (for example, `example-resource`)
from line 260
259260 using Anthropic.Foundry;
260261 using Anthropic.Models.Messages;
261262 
263 // The C# client always builds the base URL from the resource name.
264 // It does not read ANTHROPIC_FOUNDRY_BASE_URL.
262265 var client = new AnthropicFoundryClient(
263266 new AnthropicFoundryApiKeyCredentials(
264267 Environment.GetEnvironmentVariable("ANTHROPIC_FOUNDRY_API_KEY")!,
from line 284
281284 ```
282285 
283286 ```go Go
284 // The Go SDK does not yet support Foundry natively. This example uses the
285 // standard Go SDK as a workaround. WithoutEnvironmentDefaults keeps the
286 // client from also reading ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN from
287 // the environment and sending a Claude API credential to your Foundry
288 // endpoint. Features that Foundry does not support fail server-side rather
289 // than client-side. For full Foundry support, use the C#, Java, PHP,
290 // Python, or TypeScript SDKs.
291287 package main
292288 
293289 import (
from line 292
296292 "os"
297293 
298294 "github.com/anthropics/anthropic-sdk-go"
299 "github.com/anthropics/anthropic-sdk-go/option"
295 "github.com/anthropics/anthropic-sdk-go/foundry"
300296 )
301297 
302298 func main() {
303 client := anthropic.NewClient(
304 option.WithoutEnvironmentDefaults(),
305 option.WithBaseURL("https://example-resource.services.ai.azure.com/anthropic"),
306 option.WithAPIKey(os.Getenv("ANTHROPIC_FOUNDRY_API_KEY")),
307 )
299 client, err := foundry.NewClient(foundry.ClientConfig{
300 APIKey: os.Getenv("ANTHROPIC_FOUNDRY_API_KEY"),
301 Resource: "example-resource", // your resource name
302 })
303 if err != nil {
304 panic(err)
305 }
308306 
309307 message, err := client.Messages.New(context.Background(), anthropic.MessageNewParams{
310308 Model: "claude-opus-5-5",
from line 367
369367 # ANTHROPIC_AUTH_TOKEN environment variables and could send a Claude API
370368 # credential to your Foundry endpoint. Features that Foundry
371369 # does not support fail server-side rather than client-side. For full
372 # Foundry support, use the C#, Java, PHP, Python, or TypeScript SDKs.
370 # Foundry support, use the C#, Go, Java, PHP, Python, or TypeScript SDKs.
373371 require "anthropic"
374372 
375373 client = Anthropic::Client.new(
from line 500
502500 ```
503501 
504502 ```go Go
505 // The Go SDK does not yet support Foundry natively. This example uses the
506 // standard Go SDK as a workaround, with a static Entra ID token: automatic
507 // token refresh is not built in, so your application must refresh tokens
508 // itself (they typically expire after 1 hour). WithoutEnvironmentDefaults
509 // keeps the client from also reading ANTHROPIC_API_KEY or
510 // ANTHROPIC_AUTH_TOKEN from the environment and sending a Claude API
511 // credential to your Foundry endpoint. For full Foundry support, use the
512 // C#, Java, PHP, Python, or TypeScript SDKs.
513503 package main
514504 
515505 import (
516506 "context"
517507 "fmt"
518 "os"
519508 
509 "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
510 "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
520511 "github.com/anthropics/anthropic-sdk-go"
521 "github.com/anthropics/anthropic-sdk-go/option"
512 "github.com/anthropics/anthropic-sdk-go/foundry"
522513 )
523514 
524515 func main() {
525 // Obtain an Entra ID access token, for example using the Azure CLI:
526 // az account get-access-token --resource https://ai.azure.com \
527 // --query accessToken -o tsv
528 client := anthropic.NewClient(
529 option.WithoutEnvironmentDefaults(),
530 option.WithBaseURL("https://example-resource.services.ai.azure.com/anthropic"),
531 option.WithAuthToken(os.Getenv("AZURE_ACCESS_TOKEN")),
532 )
516 credential, err := azidentity.NewDefaultAzureCredential(nil)
517 if err != nil {
518 panic(err)
519 }
533520 
521 tokenProvider := func(ctx context.Context) (string, error) {
522 token, err := credential.GetToken(ctx, policy.TokenRequestOptions{
523 Scopes: []string{foundry.EntraIDScope},
524 })
525 return token.Token, err
526 }
527 
528 client, err := foundry.NewClient(foundry.ClientConfig{
529 Resource: "example-resource", // your resource name
530 AzureADTokenProvider: tokenProvider,
531 })
532 if err != nil {
533 panic(err)
534 }
535 
534536 message, err := client.Messages.New(context.Background(), anthropic.MessageNewParams{
535537 Model: "claude-opus-5-5",
536538 MaxTokens: 1024,
from line 611
609611 # itself (they typically expire after 1 hour). Pass credentials explicitly:
610612 # without them, the client falls back to the ANTHROPIC_API_KEY or
611613 # ANTHROPIC_AUTH_TOKEN environment variables. For full Foundry support, use
612 # the C#, Java, PHP, Python, or TypeScript SDKs.
614 # the C#, Go, Java, PHP, Python, or TypeScript SDKs.
613615 require "anthropic"
614616 
615617 # Obtain an Entra ID access token, for example using the Azure CLI:

build-with-claude/claude-on-vertex-ai Changed · +6 / -6 lines

from line 293
293293 use Anthropic\Vertex;
294294 
295295 $client = Vertex\Client::fromEnvironment(
296 location: 'global',
296 region: 'global',
297297 projectId: 'MY_PROJECT_ID',
298298 );
299299 
from line 415
415415 
416416**Using global endpoints (recommended):**
417417 
418Set the `region` (php: `location`) parameter to `"global"` when initializing the client:
418Set the `region` parameter to `"global"` when initializing the client:
419419 
420420<CodeGroup>
421421 ```bash cURL
from line 568
568568 use Anthropic\Vertex;
569569 
570570 $client = Vertex\Client::fromEnvironment(
571 location: 'global',
571 region: 'global',
572572 projectId: 'MY_PROJECT_ID',
573573 );
574574 
from line 604
604604 
605605**Using multi-region endpoints:**
606606 
607Set the `region` (php: `location`) parameter to a multi-region identifier: `"us"` for the United States or `"eu"` for the European Union. The SDK routes requests to the corresponding multi-region endpoint (`https://aiplatform.us.rep.googleapis.com` or `https://aiplatform.eu.rep.googleapis.com`), which dynamically balances traffic across regions within that geography.
607Set the `region` parameter to a multi-region identifier: `"us"` for the United States or `"eu"` for the European Union. The SDK routes requests to the corresponding multi-region endpoint (`https://aiplatform.us.rep.googleapis.com` or `https://aiplatform.eu.rep.googleapis.com`), which dynamically balances traffic across regions within that geography.
608608 
609609<CodeGroup>
610610 ```bash cURL
from line 758
758758 use Anthropic\Vertex;
759759 
760760 $client = Vertex\Client::fromEnvironment(
761 location: 'us', // Multi-region identifier: "us" or "eu"
761 region: 'us', // Multi-region identifier: "us" or "eu"
762762 projectId: 'MY_PROJECT_ID',
763763 );
764764 
from line 953
953953 use Anthropic\Vertex;
954954 
955955 $client = Vertex\Client::fromEnvironment(
956 location: 'us-east5',
956 region: 'us-east5',
957957 projectId: 'MY_PROJECT_ID',
958958 );
959959 

build-with-claude/claude-platform-on-aws Changed · +21 / -21 lines

from line 170
170170export AWS_REGION='us-west-2' # Your workspace's AWS region
171171```
172172 
173The region is required. The SDK client raises an error if no region is set. Pass `aws_region`/`awsRegion` to the constructor, or set `AWS_REGION` (or `AWS_DEFAULT_REGION`). All AWS commercial regions are supported.
173The region is required. The SDK client raises an error if no region is set. Pass `aws_region` (python, ruby; typescript, php: `awsRegion`; go: `AWSRegion`; java: `.region()`; csharp: `AwsClientOptions.AwsRegion`) when you create the client, or set `AWS_REGION` (or `AWS_DEFAULT_REGION`). All AWS commercial regions are supported.
174174 
175175## Authentication
176176 
from line 195
195195 
196196### API key authentication
197197 
198For simpler integration paths (local development and scripts), you can authenticate with an API key instead of SigV4. Set the `ANTHROPIC_AWS_API_KEY` environment variable or pass `apiKey` to the SDK constructor.
198For simpler integration paths (local development and scripts), you can authenticate with an API key instead of SigV4. Set the `ANTHROPIC_AWS_API_KEY` environment variable or pass `api_key` (python, ruby; typescript, php: `apiKey`; go: `APIKey`; java: `.apiKey()`; csharp: `AwsClientOptions.ApiKey`) when you create the client.
199199 
200200Generate API keys in the **AWS Console** under **Claude Platform on AWS → API keys**. Choose **Generate a key**, then copy the key value. Grant the `aws-external-anthropic:CallWithBearerToken` IAM action to the principals that should be allowed to use API key authentication.
201201 
from line 258
258258 
259259### Credential precedence
260260 
261The platform-specific client resolves authentication in the following order. Argument names vary by language convention: TypeScript and PHP use camelCase as shown, Python and Ruby use snake\_case, Go uses PascalCase with capitalized acronyms, and C# and Java use the language's property or builder idioms.
261The platform-specific client resolves authentication in the following order, starting with what you pass when you create it:
262262 
2631. `apiKey` constructor argument → `x-api-key` header
2642. `awsAccessKey` + `awsSecretAccessKey` constructor arguments → AWS SigV4
2653. `awsProfile` constructor argument → AWS SigV4 with named profile
2631. `api_key` (python, ruby; typescript, php: `apiKey`; go: `APIKey`; java: `.apiKey()`; csharp: `AwsClientOptions.ApiKey`) → `x-api-key` header
2642. `aws_access_key` (python, ruby; typescript, php: `awsAccessKey`; go: `AWSAccessKey`; java: `.awsAccessKey()`; csharp: `AwsClientOptions.AwsAccessKey`) + `aws_secret_key` (python; ruby: `aws_secret_access_key`; typescript, php: `awsSecretAccessKey`; go: `AWSSecretAccessKey`; java: `.awsSecretAccessKey()`; csharp: `AwsClientOptions.AwsSecretAccessKey`) → AWS SigV4
2653. `aws_profile` (python, ruby; typescript, php: `awsProfile`; go: `AWSProfile`; java: `.awsProfile()`; csharp: `AwsClientOptions.AwsProfile`) → AWS SigV4 with named profile
2662664. `ANTHROPIC_AWS_API_KEY` environment variable → `x-api-key` header
2672675. Default AWS credential provider chain → AWS SigV4
268268 
269269### Region resolution
270270 
271The client reads `AWS_REGION` from the environment if `aws_region`/`awsRegion` is not passed to the constructor, falling back to `AWS_DEFAULT_REGION` for compatibility with the standard AWS SDKs. Region is required and there is no default: the `AnthropicAWS`/`AnthropicAws` client raises an error if neither the constructor argument nor an environment variable is set.
271The client reads `AWS_REGION` from the environment if you don't set `aws_region` (python, ruby; typescript, php: `awsRegion`; go: `AWSRegion`; java: `.region()`; csharp: `AwsClientOptions.AwsRegion`), falling back to `AWS_DEFAULT_REGION` for compatibility with the standard AWS SDKs. Region is required and there is no default: `AnthropicAWS` (python; typescript: `AnthropicAws`; csharp: `AnthropicAwsClient`; go: `anthropicaws.NewClient`; java: `AwsBackend`; php: `Anthropic\Aws\Client`; ruby: `Anthropic::AWSClient`) raises an error if neither the constructor argument nor an environment variable is set.
272272 
273273## Install an SDK
274274 
from line 525
525525 ```
526526</CodeGroup>
527527 
528The client reads `AWS_REGION` (or `AWS_DEFAULT_REGION`) and `ANTHROPIC_AWS_WORKSPACE_ID` from the environment. You can override either by passing `aws_region` / `awsRegion` or `workspace_id` / `workspaceId` to the constructor. Both region and workspace ID are required. The constructor raises an error if either cannot be resolved.
528The client reads `AWS_REGION` (or `AWS_DEFAULT_REGION`) and `ANTHROPIC_AWS_WORKSPACE_ID` from the environment. You can override either by passing `aws_region` (python, ruby; typescript, php: `awsRegion`; go: `AWSRegion`; java: `.region()`; csharp: `AwsClientOptions.AwsRegion`) or `workspace_id` (python, ruby; typescript, php: `workspaceId`; go: `WorkspaceID`; java: `.workspaceId()`; csharp: `AwsClientOptions.WorkspaceId`) when you create the client. Both region and workspace ID are required. The constructor raises an error if either cannot be resolved.
529529 
530530<Note>
531531 The `x-amz-security-token` header (cURL) is only required for temporary credentials such as IAM roles, SSO, or STS. Omit it when using long-term IAM user credentials. The SDK clients handle this automatically based on the credential source.
from line 1043
10431043 
10441044The migration delta depends on which Bedrock integration you're coming from. The following table shows both the [current Bedrock integration](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) (Messages API at `bedrock-mantle.{region}.api.aws`) and the [legacy InvokeModel integration](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy).
10451045 
1046| Aspect | From [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | From [Amazon Bedrock (Opus 4.6 and earlier)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | To Claude Platform on AWS |
1047| -------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1048| **Base URL** | `bedrock-mantle.{region}.api.aws` | `bedrock-runtime.{region}.amazonaws.com` | `aws-external-anthropic.{region}.api.aws` |
1049| **API format** | Messages API at `/anthropic/v1/messages` | Bedrock Converse / InvokeModel | Claude API (`/v1/{endpoint}`) |
1050| **Model IDs** | anthropic.claude-haiku-4-5 | anthropic.claude-haiku-4-5-20251001-v1:0(with a `us.` or `global.` inference profile prefix) | claude-haiku-4-5 |
1051| **SDK client** | `AnthropicBedrockMantle` | `AnthropicBedrock` / Bedrock SDK | Platform-specific client (see [Install an SDK](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#install-an-sdk)), in beta |
1052| **SDK package** | `anthropic[bedrock]`, `@anthropic-ai/bedrock-sdk`, and others | `anthropic[bedrock]`, `@anthropic-ai/bedrock-sdk`, or AWS SDK | `anthropic[aws]`, `@anthropic-ai/aws-sdk`, and others (see [Install an SDK](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#install-an-sdk)) |
1053| **SigV4 service name** | `bedrock-mantle` | `bedrock` | `aws-external-anthropic` |
1054| **Streaming format** | SSE | AWS EventStream | SSE (same as Claude API) |
1055| **Workspace header** | Not applicable | Not applicable | `anthropic-workspace-id`, required on inference and resource requests |
1056| **Region availability** | See [Amazon Bedrock regions](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-regions.html) | See [Amazon Bedrock regions](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-regions.html) | All AWS commercial regions |
1057| **Anthropic organization** | None required | None required | New organization created at sign-up. Existing organizations can't be converted (see [Moving from an existing Anthropic organization](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#moving-from-an-existing-anthropic-organization)) |
1046| Aspect | From [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | From [Amazon Bedrock (Opus 4.6 and earlier)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | To Claude Platform on AWS |
1047| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1048| **Base URL** | `bedrock-mantle.{region}.api.aws` | `bedrock-runtime.{region}.amazonaws.com` | `aws-external-anthropic.{region}.api.aws` |
1049| **API format** | Messages API at `/anthropic/v1/messages` | Bedrock Converse / InvokeModel | Claude API (`/v1/{endpoint}`) |
1050| **Model IDs** | anthropic.claude-haiku-4-5 | anthropic.claude-haiku-4-5-20251001-v1:0(with a `us.` or `global.` inference profile prefix) | claude-haiku-4-5 |
1051| **SDK client** | `AnthropicBedrockMantle` | `AnthropicBedrock` / Bedrock SDK | Platform-specific client (see [Install an SDK](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#install-an-sdk)), in beta |
1052| **SDK package** | `anthropic[bedrock]` (python; typescript: `@anthropic-ai/bedrock-sdk`; csharp: `Anthropic.Bedrock`; go: `github.com/anthropics/anthropic-sdk-go/bedrock`; java: `com.anthropic:anthropic-java-bedrock`; php: `anthropic-ai/sdk`; ruby: `anthropic`) | `anthropic[bedrock]` (python; typescript: `@anthropic-ai/bedrock-sdk`; csharp: `Anthropic.Bedrock`; go: `github.com/anthropics/anthropic-sdk-go/bedrock`; java: `com.anthropic:anthropic-java-bedrock`; php: `anthropic-ai/sdk`; ruby: `anthropic`), or the AWS SDK | `anthropic[aws]` (python; typescript: `@anthropic-ai/aws-sdk`; csharp: `Anthropic.Aws`; go: `github.com/anthropics/anthropic-sdk-go/aws`; java: `com.anthropic:anthropic-java-aws`; php: `anthropic-ai/sdk`; ruby: `anthropic`) (see [Install an SDK](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#install-an-sdk)) |
1053| **SigV4 service name** | `bedrock-mantle` | `bedrock` | `aws-external-anthropic` |
1054| **Streaming format** | SSE | AWS EventStream | SSE (same as Claude API) |
1055| **Workspace header** | Not applicable | Not applicable | `anthropic-workspace-id`, required on inference and resource requests |
1056| **Region availability** | See [Amazon Bedrock regions](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-regions.html) | See [Amazon Bedrock regions](https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-regions.html) | All AWS commercial regions |
1057| **Anthropic organization** | None required | None required | New organization created at sign-up. Existing organizations can't be converted (see [Moving from an existing Anthropic organization](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#moving-from-an-existing-anthropic-organization)) |
10581058 
10591059If you're on the current Bedrock integration, the request body format is already the Messages API. The changes are the base URL, SigV4 service name, model IDs, and adding the `anthropic-workspace-id` header. If you're on the legacy InvokeModel or Converse API, you'll also rewrite the request and response shapes to the Messages API format. See [Claude on Amazon Bedrock (Opus 4.6 and earlier)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) for the request-shape mapping.
10601060 

build-with-claude/compaction-background Changed · +7 / -1 lines

from line 50
5050 
5151The compaction request counts against your rate limits like any other request, and while it runs your application has two requests open at once. The conversation keeps growing on its full history until the swap, so start the compaction request while the context window still has room for the turns that arrive meanwhile.
5252 
53The following program is the loop from [Compact in a loop](https://platform.claude.com/docs/en/build-with-claude/compaction-on-demand#compact-in-a-loop) with the compaction request taken off the conversation's path. It has no PHP version, because the example depends on running two requests at once. The highlighted lines show where it differs from the loop, and the following list takes them in the order the program runs them.
53The following program is the loop from [Compact in a loop](https://platform.claude.com/docs/en/build-with-claude/compaction-on-demand#compact-in-a-loop) with the compaction request taken off the conversation's path. The highlighted lines show where it differs from the loop, and the following list takes them in the order the program runs them.
5454 
5555<CodeGroup exclude="shell, php">
5656 ```python Python
from line 467
467467 client.close();
468468 }
469469 ```
470 
471 <CodeGroupItem language="PHP">
472 <Note>
473 The PHP SDK sends requests synchronously, so it can't run the compaction request in the background while the conversation goes on.
474 </Note>
475 </CodeGroupItem>
470476 
471477 ```ruby Ruby
472478 client = Anthropic::Client.new

build-with-claude/preserved-thinking Changed · +10 / -0 lines

from line 430
430430 
431431### Check whether your code edits the prefix
432432 
433<Tip>
434 **Automate this check with the Claude API skill.** In the latest version of [Claude Code](https://code.claude.com/docs/en/overview), open the repository that builds your requests and run the bundled [Claude API skill](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/claude-api-skill#checking-an-integration-for-preserved-thinking):
435 
436 ```text wrap
437 /claude-api preserved-thinking-migration
438 ```
439 
440 The skill captures a few of your own multi-turn sessions and diffs consecutive requests to find where your code edits the prefix. It then replays the sessions with `"drop_block"` and counts the thinking blocks the API drops. After that, it fixes one cause at a time and measures again after each fix.
441</Tip>
442 
433443First, diff what you send. Capture the request bodies your integration sends over a few normal turns, including a compaction or a tool change. For each pair of consecutive requests, compare `system`, `tools`, and the `messages` they share. They should be identical up to the newly appended turns.
434444 
435445Then confirm against the API. Add the `thinking-binding-controls-2026-08-01` beta header, set `prefix_mismatch_behavior` to `"drop_block"`, and run a normal multi-turn session through your integration on claude-fable-5-1. The following example runs two turns the way your integration should: `messages` only grows, each assistant turn goes back exactly as the API returned it, `thinking` blocks included, and `block_binding` is set on every request. After each turn it prints the number of `thinking` blocks in the response and the number of dropped blocks:

build-with-claude/streaming Changed · +13 / -17 lines

from line 138
138138 
139139## Get the final message without handling events
140140 
141If you don't need to process text as it arrives, the SDKs provide a way to use streaming internally while returning the complete `Message` object, identical to what `.create()` returns. This is especially useful for requests with large `max_tokens` values, where the SDKs require streaming to avoid HTTP timeouts.
141If you don't need to process text as it arrives, the SDK provides a way to use streaming internally while returning the complete `Message` object, identical to what `client.messages.create()` (python, typescript, ruby; go: `client.Messages.New()`; java: `client.messages().create()`; csharp: `client.Messages.Create()`; php: `$client->messages->create()`) returns. This is especially useful for requests with large `max_tokens` values, where the SDK requires streaming to avoid HTTP timeouts.
142142 
143143<CodeGroup exclude="shell:cURL">
144144 ```bash CLI
from line 195
195195 Messages = [new() { Role = Role.User, Content = "Write a detailed analysis..." }]
196196 };
197197 
198 var fullText = "";
199 await foreach (var msg in client.Messages.CreateStreaming(parameters))
200 {
201 fullText += msg;
202 }
203 
204 Console.WriteLine(fullText);
198 // To handle events as they arrive as well, pass a MessageContentAggregator to CollectAsync() instead.
199 var message = await client.Messages.CreateStreaming(parameters).Aggregate();
200 Console.WriteLine(message);
205201 ```
206202 
207203 ```go Go
from line 250
254250 ```
255251 
256252 ```php PHP
253 use Anthropic\Lib\Streaming\MessageAccumulator;
254 
257255 $client = new Client();
258256 
259257 $stream = $client->messages->createStream(
from line 262
264262 model: 'claude-opus-5-5',
265263 );
266264 
267 $fullText = '';
265 $accumulator = MessageAccumulator::forMessages();
268266 foreach ($stream as $event) {
269 if ($event->type === 'content_block_delta' && $event->delta->type === 'text_delta') {
270 $fullText .= $event->delta->text;
271 }
267 $accumulator->accumulate($event);
272268 }
273269 
274 echo $fullText;
270 echo array_find($accumulator->message()->content, static fn ($block): bool => $block->type === 'text')->text;
275271 ```
276272 
277273 ```ruby Ruby
from line 285
289285 ```
290286</CodeGroup>
291287 
292The `.stream()` call keeps the HTTP connection alive with server-sent events, then `.get_final_message()` (Python) or `.finalMessage()` (TypeScript) accumulates all events and returns the complete `Message` object. In Go, you call `message.Accumulate(event)` inside the stream loop to build the same complete `Message`. In Java, use `MessageAccumulator.create()` and call `accumulator.accumulate(event)` on each event. In C#, await the stream's `.Aggregate()` extension method to get the complete `Message`, or pass a `MessageContentAggregator` to `.CollectAsync()` to aggregate while handling events. In Ruby, call `.accumulated_message` on the stream. In the PHP SDK, you iterate over stream events manually to accumulate the response.
288The `.stream()` (java: `.createStreaming()`; csharp: `.CreateStreaming()`; go: `.NewStreaming()`; php: `->createStream()`) call keeps the HTTP connection alive with server-sent events, then the SDK's message-accumulation helper, `stream.get_final_message()` (typescript: `stream.finalMessage()`; ruby: `stream.accumulated_message`; csharp: `.Aggregate()`; go: `message.Accumulate(event)`; java, php: `MessageAccumulator`), collects all events into the complete `Message` object.
293289 
294290## Event types
295291 
from line 336
340336 
341337The deltas for `tool_use` content blocks correspond to updates for the `input` field of the block. To support maximum granularity, the deltas are *partial JSON strings*, whereas the final `tool_use.input` is always an *object*.
342338 
343You can accumulate the string deltas and parse the JSON once you receive a `content_block_stop` event, by using a library like [Pydantic](https://docs.pydantic.dev/latest/concepts/json/#partial-json-parsing) to do partial JSON parsing, or by using the [SDKs](https://platform.claude.com/docs/en/cli-sdks-libraries/overview), which provide helpers to access parsed incremental values.
339You can accumulate the string deltas and parse the JSON once you receive a `content_block_stop` event, by using a library like [Pydantic](https://docs.pydantic.dev/latest/concepts/json/#partial-json-parsing) to do partial JSON parsing, or by using the SDK's [streaming helpers](https://platform.claude.com/docs/en/build-with-claude/streaming#streaming-with-sdks). In the Python and TypeScript SDKs, these helpers also give you access to the parsed `input` incrementally, as it streams.
344340 
345341A `tool_use` content block delta looks like:
346342 

build-with-claude/thinking Changed · +7 / -3 lines

from line 284
284284 max_tokens: 16000,
285285 thinking: {
286286 type: "adaptive",
287 # A plain hash like this one takes display:. The typed ThinkingConfigAdaptive class
288 # spells it display_ (trailing underscore) to avoid shadowing Ruby's Kernel#display.
289 # The request still sends display.
287290 display: "summarized"
288291 },
289292 messages: [
from line 514
511514 The `signature` field is identical whichever `display` value you set. Switching `display` values between turns in a conversation is supported.
512515</Note>
513516 
514In the Ruby SDK, plain hashes take `display:` as the examples show. The typed `ThinkingConfigAdaptive` class names the parameter `display_` (trailing underscore, to avoid shadowing Ruby's `Kernel#display`). Either way, the wire field is still `display`.
515 
516517### Summarized thinking
517518 
518519When `display` is `"summarized"`, the thinking text you receive is a summary of Claude's full thinking process rather than the raw chain of thought. Summarized thinking provides the full intelligence benefits of thinking while preventing misuse. No `display` setting returns the raw chain of thought.
from line 780
779780 stream = client.messages.stream(
780781 model: "claude-opus-4-8",
781782 max_tokens: 16000,
783 # A plain hash like this one takes display:. The typed ThinkingConfigAdaptive class
784 # spells it display_ (trailing underscore) to avoid shadowing Ruby's Kernel#display.
785 # The request still sends display.
782786 thinking: { type: "adaptive", display: "summarized" },
783787 messages: [
784788 { role: "user", content: "What is the greatest common divisor of 1071 and 462?" }
from line 1221
12171221 
12181222### Long requests
12191223 
1220The SDKs require streaming when `max_tokens` is greater than 21,333, to avoid HTTP timeouts on long-running requests. This is a client-side validation, not an API restriction. If you don't need to process events incrementally, use `.stream()` (java: `.createStreaming()`; csharp: `.CreateStreaming()`; go: `.NewStreaming()`; php: `->createStream()`) with `.get_final_message()` (typescript: `.finalMessage()`; ruby: `.accumulated_message`; csharp: `.Aggregate()`; go: `message.Accumulate(event)`; java, php: `MessageAccumulator`) to get the complete `Message` object without assembling it from individual events yourself. See [Streaming Messages](https://platform.claude.com/docs/en/build-with-claude/streaming#get-the-final-message-without-handling-events). Expect longer response times when thinking is active, because generating thinking blocks adds processing time. For workloads that push thinking above roughly 32k tokens per request, use [batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing) to avoid networking issues: such requests can run long enough to hit system timeouts and open connection limits.
1224The SDK requires streaming when `max_tokens` is greater than 21,333, to avoid HTTP timeouts on long-running requests. This is a client-side validation, not an API restriction. If you don't need to process events incrementally, use `.stream()` (java: `.createStreaming()`; csharp: `.CreateStreaming()`; go: `.NewStreaming()`; php: `->createStream()`) with `.get_final_message()` (typescript: `.finalMessage()`; ruby: `.accumulated_message`; csharp: `.Aggregate()`; go: `message.Accumulate(event)`; java, php: `MessageAccumulator`) to get the complete `Message` object without assembling it from individual events yourself. See [Streaming Messages](https://platform.claude.com/docs/en/build-with-claude/streaming#get-the-final-message-without-handling-events). Expect longer response times when thinking is active, because generating thinking blocks adds processing time. For workloads that push thinking above roughly 32k tokens per request, use [batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing) to avoid networking issues: such requests can run long enough to hit system timeouts and open connection limits.
12211225 
12221226## Next steps
12231227 

cli-sdks-libraries/cli/apply Changed · +7 / -5 lines

from line 1
11---
22title: Manage resources as code with ant apply
33url: https://platform.claude.com/docs/en/cli-sdks-libraries/cli/apply
4description: Declare agents, environments, skills, memory stores, and deployments as files in your repository and keep the API's resources in sync with them using ant apply.
4description: Declare agents, environments, skills, memory stores, deployments, and vaults as files in your repository and keep the API's resources in sync with them using ant apply.
55---
66 
7`ant apply` creates and updates Claude API resources from files: agents, environments, skills, memory stores, and deployments. They live in your repository and change through the same review as your code. You describe each resource in a file, run `ant apply`, and approve the plan it shows. Then you commit the `claude-lock.json` it writes, so the next run updates the same resources instead of creating new ones.
7`ant apply` creates and updates Claude API resources from files: agents, environments, skills, memory stores, deployments, and vaults. They live in your repository and change through the same review as your code. You describe each resource in a file, run `ant apply`, and approve the plan it shows. Then you commit the `claude-lock.json` it writes, so the next run updates the same resources instead of creating new ones.
88 
99To install and authenticate the CLI, see the [CLI quickstart](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart). `ant apply` requires CLI version 1.30.0 or later.
1010 
from line 103
103103* A [memory store](https://platform.claude.com/docs/en/managed-agents/memory) is a YAML file in `memory_stores/`.
104104* A [deployment](https://platform.claude.com/docs/en/managed-agents/scheduled-deployments) is a Markdown file in `deployments/`: the frontmatter is the request body and the prose becomes the message that starts each session.
105105* A [skill](https://platform.claude.com/docs/en/managed-agents/skills) is a directory with a `SKILL.md` at its root, conventionally under `skills/`, uploaded as one bundle.
106* A [vault](https://platform.claude.com/docs/en/managed-agents/vaults) is a YAML file in `vaults/` whose only fields are `display_name` and, optionally, `metadata`. Vault files need CLI version 1.34.0 or later.
106107 
107Any resource except a skill can be written as YAML, JSON, or Markdown. In Markdown, the frontmatter is the body and the prose fills the kind's text field: an agent's `system`, an environment's or memory store's `description`, a deployment's first message.
108Any resource except a skill can be written as YAML, JSON, or Markdown. In Markdown, the frontmatter is the body and the prose fills the kind's text field: an agent's `system`, an environment's or memory store's `description`, a deployment's first message. A vault has no text field, so `ant apply` refuses a vault Markdown file that has prose.
108109 
109110Resources refer to each other by path. Wherever the API expects another resource's ID, write the relative path to that resource's file instead. In this project, the reviewer agent lists `../skills/pr-summary` under `skills`, the lead agent lists `./reviewer.md` in its roster, and the deployment names its agent, environment, and memory store by path. `ant apply` creates them in dependency order and fills in the real IDs. The project has six files:
110111 
from line 210
209210When `ant apply` walks a directory, it determines each file's kind from the first of these that matches:
210211 
2112121. A top-level `type` field in the file.
2122. The directory the file is directly in: `agents/`, `environments/`, `memory_stores/`, or `deployments/`.
2132. The directory the file is directly in: `agents/`, `environments/`, `memory_stores/`, `deployments/`, or `vaults/`.
2132143. A file name that starts with the kind, such as `environment_staging.md`.
215 * Vaults are the exception: `ant apply` does not take the kind from a name such as `vault_staging.yaml`, because other tools name their secrets files `vault.yml`. Keep a vault file in `vaults/` or give it `type: vault`.
214216 
215217It skips files that match none of these, such as READMEs and CI configuration, unless you name them on the command line. A named Markdown file that matches none is treated as an agent, and a named YAML or JSON file that matches none is an error.
216218 

cli-sdks-libraries/middleware Changed · +5 / -5 lines

from line 1
11---
22title: SDK middleware
33url: https://platform.claude.com/docs/en/cli-sdks-libraries/middleware
4description: Intercept and modify requests and responses in the Anthropic SDKs.
4description: Intercept and modify the SDK's requests and responses.
55---
66 
7The Anthropic SDKs provide a middleware (or interceptor) hook that lets you run code before a request is sent and after the response is received. Use middleware for cross-cutting concerns such as logging, custom retries, request annotation, and refusal fallback handling.
7The Claude SDK provides a middleware (or interceptor) hook that lets you run code before a request is sent and after the response is received. Use middleware for cross-cutting concerns such as logging, custom retries, request annotation, and refusal fallback handling.
88 
99```mermaid
1010sequenceDiagram
from line 28
2828 
2929## Registering middleware
3030 
31Each middleware is a function that receives the outgoing request and a `next` callable. Call `next` to forward the request to the rest of the chain (or directly to the SDK core if this is the last middleware), and return its response. Anything before the `next` call runs on the way out; anything after runs on the way back.
31Each middleware is a function that receives the outgoing request and the next handler. Call `call_next(request)` (python; typescript: `next(request)`; csharp: `next(request, cancellationToken)`; go: `next(req)`; java: `nextClient.execute(request, requestOptions)`; php: `$next($request)`; ruby: `call_next.call(request)`) to forward the request to the rest of the chain (or directly to the SDK core if this is the last middleware), and return its response. Anything before that call runs on the way out; anything after runs on the way back.
3232 
3333<CodeGroup exclude="shell">
3434 ```python Python
from line 171
171171 
172172## Replacing the HTTP client
173173 
174Each SDK also accepts a custom HTTP client (for proxy configuration, custom TLS, or connection pooling). Only one HTTP client is used per SDK client; setting it replaces the default. The custom HTTP client receives requests after all middleware has run.
174The SDK also accepts a custom HTTP client (for proxy configuration, custom TLS, or connection pooling). Only one HTTP client is used per SDK client; setting it replaces the default. The custom HTTP client receives requests after all middleware has run.
175175 
176176## Built-in middleware
177177 
178The SDKs ship a refusal-fallback middleware that automatically retries requests Claude Fable 5 declines on a fallback model. See [Detect and retry on a fallback model](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#client-side-fallback) for setup and per-language examples.
178The SDK ships a refusal-fallback middleware that automatically retries requests Claude Fable 5 declines on a fallback model. See [Detect and retry on a fallback model](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#client-side-fallback) for setup and per-language examples.
179179 
Feedback