Batches changedapi/beta/messages/batches
Nearest release: v2.1.296, published 4 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+8added
Lines−32removed
From line
181
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 181, old and new numbered
/
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 181
181181
182182 Each input message must be an object with a `role` and `content`. You can specify a single `user`-role message, or you can include multiple `user` and `assistant` messages.
183183
184 If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
184 If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response. This is called prefill. On models that don't support prefill, creating a message that ends with a partial `assistant` response returns a 400 error. See [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
185185
186186 Example with a single `user` message:
187187
from line 199
199199 ]
200200 ```
201201
202 Example with a partially-filled response from Claude:
202 Example with a partially-filled response from Claude, for models that support prefill:
203203
204204 ```json
205205 [
from line 3186
31863186
31873187 - `"claude-haiku-4-5"`
31883188
3189 Fastest model with near-frontier intelligence
3190
31913189 - `"claude-haiku-4-5-20251001"`
31923190
3193 Fastest model with near-frontier intelligence
3194
31953191 - `"claude-opus-4-5"`
31963192
31973193 Powerful intelligence for long-running agents and coding
from line 3782
37863782
37873783 - `fallbacks: optional BetaFallbacksParam or null`
37883784
3789 Opt-in server-side retry on one or more substitute models when the requested model declines for policy reasons. Tried in order: if the first entry also declines, the second is tried, and so on. The string "default" requests the requested model's server-defined default fallback configuration.
3785 Opt-in server-side retry on one or more substitute models when the requested model declines for policy reasons. Tried in order: if the first entry also declines, the second is tried, and so on. Some models don't support fallbacks; on those models, a list of fallback models returns a 400 error. See [Server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback). The string "default" requests the requested model's server-defined default fallback configuration. On a model that doesn't support fallbacks, the request runs on the requested model alone, so a declined request stays declined.
37903786
37913787 - `array of BetaFallbackParam`
37923788
from line 3880
38843880
38853881 - `display: optional "summarized" or "omitted" or "updates" or null`
38863882
3887 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.
3883 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. The default depends on the model; see [Controlling thinking display](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display).
38883884
38893885 - `"summarized"`
38903886
from line 3906
39103906
39113907 - `display: optional "summarized" or "omitted" or "updates" or null`
39123908
3913 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.
3909 Controls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. The default depends on the model; see [Controlling thinking display](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display).
39143910
39153911 - `"summarized"`
39163912
from line 4012
40164012
40174013 - `thinking: optional BetaThinkingConfigParam`
40184014
4019 Configuration for enabling Claude's extended thinking.
4015 Configuration for Claude's thinking.
40204016
4021 When enabled, responses include `thinking` content blocks showing Claude's thinking process before the final answer. Requires a minimum budget of 1,024 tokens and counts towards your `max_tokens` limit.
4017 With `{"type": "adaptive"}`, Claude decides when and how much to think. With `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of at least 1,024. Thinking tokens count toward your `max_tokens` limit.
40224018
4023 See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.
4019 Which `type` values are accepted, and what happens when you omit `thinking`, depend on the model. See [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking) for each model's behavior.
40244020
40254021 - `BetaThinkingConfigEnabled object`
40264022
from line 7338
73427338
73437339 When true, guarantees schema validation on tool names and inputs
73447340
7345 - `BetaToolComputerUse20250124 object`
7346
7347 - `type: "computer_20250124"`
7348
7349 - `display_height_px: number`
7350
7351 The height of the display in pixels.
7352
7353 minimum: 1
7354
7355 - `display_width_px: number`
7356
7357 The width of the display in pixels.
7358
7359 minimum: 1
7360
7361 - `name: "computer"`
7362
7363 Name of the tool.
7364
7365 This is how the tool will be called by the model and in `tool_use` blocks.
7366
7367 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
7368
7369 - `"direct"`
7370
7371 - `"code_execution_20250825"`
7372
7373 - `"code_execution_2
7341 - `BetaToolComputerUse20
No line in this hunk matches that.