Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20261130T233709Z

24 pages moved out of 992 read.

Pages moved 24 significant first
Pages read 992 in this capture
Captured 23:37 UTC
Corpus hash 5d99c49db825 corpus-hash

What this read moved

1-24 of 24

about-claude/pricing Changed · +5 / -1 lines

from line 563
563563 
564564### Are there free tiers or trials?
565565 
566New users receive free credits to test the API. [Email sales](mailto:[email protected]) for information about extended trials for enterprise evaluation.
566The Claude API has no free tier or self-serve trial, and new accounts don’t include free credits. To get started, do one of the following:
567 
568* Buy credits on the [Billing](https://platform.claude.com/settings/billing) page (`platform.claude.com/settings/billing`) in the Claude Console. The minimum purchase is $5 USD.
569* If you have a Claude Max, Ultra, or Team plan, claim the monthly API credits it includes. See [API credits for Max, Ultra, and Team plans](https://platform.claude.com/docs/en/about-claude/api-credits-for-subscribers).
570* If you’re evaluating the Claude API for enterprise use, [contact sales](https://claude.com/contact-sales) about a trial.
567571 
568572### How do discounts stack?
569573 

agents-and-tools/tool-use/computer-use-tool Changed · +3 / -2 lines

from line 332
332332 
333333 <Step title="Run the calls in order and return results">
334334 * Iterate over every `tool_use` block in the response, in order. For each one, dispatch on the member `name` together with `toolset_name`, and perform that action with the block’s `input` on your container or virtual machine.
335 * Continue the conversation with a new `user` message that contains one `tool_result` block for each `tool_use` block, matched by `tool_use_id` and each echoing `"toolset_name": "computer"`. Return an image for `screenshot` and `zoom`; a short text such as `OK` is enough for the other actions.
335 * Continue the conversation with a new `user` message that contains one `tool_result` block for each `tool_use` block, matched by `tool_use_id`. Echo each block’s `toolset_name` on its result. Return an image for `screenshot` and `zoom`. For the other actions, text is enough.
336336 * If an action fails, return `is_error: true` for that block and answer the rest of the batch as described in [Batch actions](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#batch-actions).
337337 </Step>
338338 
from line 1602
16021602 
16031603### Size screenshots to fit image limits
16041604 
1605Screenshots and zoom images that you return to the computer use toolset must already fit within your model’s [image size limits](https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size): the toolset takes no display dimensions and the API doesn’t downscale for you, so an oversized `tool_result` image is rejected with a validation error. Because Claude returns coordinates in the pixel space of the image it receives, keep the scale factor you used so you can map those coordinates back to your screen.
1605Screenshots and zoom images that you return to the computer use toolset must already fit within your model’s [image size limits](https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size). The toolset takes no display dimensions, and the API doesn’t downscale images for you: it rejects an oversized `tool_result` image with a validation error. Claude returns coordinates in the pixel space of the full-display screenshots it receives. Keep the scale factor you used so that you can map those coordinates back to your screen.
16061606 
16071607<Note>
16081608 Limits vary by model. Claude Opus 4.7 and later models, including every model that supports `computer_toolset_20260801`, accept up to 2,576 pixels on the long edge and 4,784 visual tokens total (`⌈width / 28⌉ × ⌈height / 28⌉`, approximately 3.75 megapixels). Earlier models accept up to 1,568 pixels on the long edge and approximately 1.15 megapixels total. See [Resolution and token cost](https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size) for each model’s tier. The following example uses the earlier-model 1,568 px / 1.15 MP limits. For a high-resolution-tier model, size to the visual-token limit rather than a pixel total, for example with the resize helper in [Resize your image before uploading](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#resize-your-image-before-uploading).
from line 2134
213421347. **Support `repeat` on `key`.** The `key` member accepts an optional `repeat` count from 1 to 100. A handler that ignores unrecognized fields would press the key once, so make your `key` handler honor `repeat`.
213521358. **Resize screenshots yourself.** The toolset rejects a screenshot or zoom image that exceeds the model’s image limits instead of downscaling it. Resize before returning the image and keep scaling coordinates as described in [Size screenshots to fit image limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions).
213621369. **Remove unsupported options.** Move any `defer_loading` from the entry into `configs`, with the same value on every enabled member. The other options not supported on toolset entries are listed under [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets).
213710. **Replace the fine-grained tool streaming header.** A request that sends the `fine-grained-tool-streaming-2025-05-14` beta header with the toolset returns a 400 error. Replace the header with `eager_input_streaming: true` on each user-defined tool that needs fine-grained streaming. Without the field, fine-grained streaming turns off with no error. See [Fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming).
21372138 
21382139This is the `tools` entry before the change, sent with the `anthropic-beta: computer-use-2025-11-24` header:
21392140 

api/rate-limits Changed · +3 / -5 lines

from line 139
139139 | Claude Opus 4.x<sup>2</sup> | 1,000 | 2,000,000 | 400,000 |
140140 | Claude Sonnet 5.5 | 4,000 | 2,000,000 | 400,000 |
141141 | Claude Sonnet 5 | 1,000 | 2,000,000 | 400,000 |
142 | Claude Sonnet 4.x<sup>3</sup> | 1,000 | 2,000,000 | 400,000 |
142 | Claude Sonnet 4.6 | 1,000 | 2,000,000 | 400,000 |
143143 | Claude Haiku 5.5 | 4,000 | 2,000,000 | 400,000 |
144144 | Claude Haiku 4.5 | 1,000 | 2,000,000 | 400,000 |
145145 </Tab>
from line 154
154154 | Claude Opus 4.x<sup>2</sup> | 5,000 | 5,000,000 | 1,000,000 |
155155 | Claude Sonnet 5.5 | 10,000 | 5,000,000 | 1,000,000 |
156156 | Claude Sonnet 5 | 5,000 | 5,000,000 | 1,000,000 |
157 | Claude Sonnet 4.x<sup>3</sup> | 5,000 | 5,000,000 | 1,000,000 |
157 | Claude Sonnet 4.6 | 5,000 | 5,000,000 | 1,000,000 |
158158 | Claude Haiku 5.5 | 10,000 | 5,000,000 | 1,000,000 |
159159 | Claude Haiku 4.5 | 5,000 | 5,000,000 | 1,000,000 |
160160 </Tab>
from line 169
169169 | Claude Opus 4.x<sup>2</sup> | 10,000 | 10,000,000 | 2,000,000 |
170170 | Claude Sonnet 5.5 | 13,000 | 10,000,000 | 2,000,000 |
171171 | Claude Sonnet 5 | 10,000 | 10,000,000 | 2,000,000 |
172 | Claude Sonnet 4.x<sup>3</sup> | 10,000 | 10,000,000 | 2,000,000 |
172 | Claude Sonnet 4.6 | 10,000 | 10,000,000 | 2,000,000 |
173173 | Claude Haiku 5.5 | 13,000 | 10,000,000 | 2,000,000 |
174174 | Claude Haiku 4.5 | 10,000 | 10,000,000 | 2,000,000 |
175175 </Tab>
from line 182
182182*<sup>1 Fable rate limit is a total limit that applies to combined traffic across Claude Fable 5.1 and Claude Fable 5. Claude Fable 5.2 has a separate rate limit and is not part of this combined bucket. Claude Mythos 5.2, Claude Mythos 5.1, and Claude Mythos 5 share a separate combined limit.</sup>*
183183 
184184*<sup>2 Opus rate limit is a total limit that applies to combined traffic across Claude Opus 4.8, Opus 4.7, Opus 4.6, and Opus 4.5. Claude Opus 4.5 is deprecated on the Claude API. For other platforms, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations). Claude Opus 5.5 and Claude Opus 5 each have a separate rate limit and are not part of this combined bucket.</sup>*
185 
186*<sup>3 Sonnet 4.x rate limit applies to Claude Sonnet 4.6.</sup>*
187185 
188186### Ramp limits
189187 

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

from line 587
587587* **Prompt caching:** Cache tools, system prompts, and message history to reduce latency and cost. All prompt caching capabilities (5-minute TTL, 1-hour TTL, and automatic caching) are available.
588588* **Files API:** Upload and reference files across requests.
589589* **Customer-managed encryption keys (CMEK):** [CMEK](https://platform.claude.com/docs/en/manage-claude/cmek) is available with [AWS KMS](https://platform.claude.com/docs/en/manage-claude/cmek-aws-kms) keys only. Google Cloud KMS and Azure Key Vault keys cannot be registered. The key must be a single-region KMS key in the same AWS account and region as the workspace it is attached to, and its key policy must grant access to the `aws-external-anthropic.amazonaws.com` service principal; see [Set up CMEK on Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/cmek-claude-platform-on-aws). Register and attach keys in the [Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console); the external key endpoints are also available, authorized through [IAM actions](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#encryption-keys). There is no separate validation step: the key is implicitly validated when you attach it to a workspace (the attach call performs an encrypt/decrypt round), so a key policy problem surfaces at attach time rather than at registration.
590* **Compliance API:** The [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) is available. Access is authorized through the AWS IAM [`ListComplianceActivities` action](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#compliance).
590* **Compliance API:** With the Admin role and the `UpdateComplianceSettings` IAM action, you can turn on the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) in the [Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console). After it’s on, you can read its [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) with AWS credentials. See [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api).
591591 
592592See the [comparison table](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#claude-platform-on-aws-vs-amazon-bedrock) for feature-availability differences from Amazon Bedrock.
593593 
from line 606
606606The following capabilities are not currently available on Claude Platform on AWS:
607607 
608608* **HIPAA readiness:** Anthropic’s HIPAA-ready program is not available. See [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).
609* **Admin API:** Workspace endpoints (create, get, list, update, and archive on `/v1/organizations/workspaces`), external key endpoints (register, get, list, update, and delete on `/v1/organizations/external_keys`, for [CMEK](https://platform.claude.com/docs/en/manage-claude/cmek); keys are validated when attached to a workspace rather than through a validate endpoint), the [telemetry destination endpoints](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#telemetry-destinations), and the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) endpoints are available. Other Admin API endpoints (organization members, workspace members, invites, API keys, the legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api), and rate limit reports) are not available. AWS IAM manages organization membership.
609* **Parts of the Admin API:** For details, see the Claude Platform on AWS part of [Cloud platforms](https://platform.claude.com/docs/en/manage-claude/admin-api#cloud-platforms) on the Admin API page. To manage organization membership, use AWS IAM instead of the Admin API.
610610* **Workspace member management:** Adding or removing users from individual workspaces is not available. AWS IAM policies on workspace ARNs control access.
611611* **Claude Code workspace and Claude Code Analytics API:** The Claude Code workspace with automatic rate limits is not available. Claude Code usage appears in the general usage view rather than a dedicated screen.
612612* **OAuth authentication:** Not supported. Use SigV4 or API key authentication.
from line 854
854854| **Credential vaults** | Yes | Yes | View and manage credential vaults for session authentication. |
855855| **Memory stores** | Yes | Yes | View and manage persistent agent memory. |
856856| **Webhooks** | Yes | Yes | View and manage webhook endpoints. |
857| **Compliance** | Yes (Admin role) | No (except the **Compliance API** toggle) | Turn on the Compliance API. For the IAM action that the toggle needs, see [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api). |
857858| **API keys** | No | N/A | Manage API keys in the AWS Console (**Claude Platform on AWS → API keys**). See [API key authentication](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#api-key-authentication). |
858859| **Members** | No | N/A | Not applicable. AWS IAM manages access. |
859860| **Spend limits** | Yes | No | View spend limits. With the Admin role, you can also set monthly limits for your organization and its workspaces; see [Spend limits](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#spend-limits). AWS Marketplace manages invoicing. View cost breakdowns on the **Cost** page. |

cli-sdks-libraries/cli/using Changed · +18 / -1 lines

## Custom headers

from line 178
178178 
179179The CLI detects the file type and encodes binary files as base64 automatically. To force a specific encoding use `@file://` for plain text or `@data://` for base64. Escape a literal leading `@` with a backslash (`\@username`).
180180 
181## Custom headers
182 
183To add your own HTTP headers to the CLI’s API requests, set the `ANTHROPIC_CUSTOM_HEADERS` environment variable. For example, a proxy or gateway between the CLI and the API might require a header. Write each header as `Name: value`, with one header on each line. To use this variable, run the [latest version of `ant`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart#installation).
184 
185```bash
186ANTHROPIC_CUSTOM_HEADERS="X-Team: docs
187X-Environment: staging" ant models list
188```
189 
190To see the headers that a command sends, run it with the [`--debug` flag](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#debugging).
191 
192The CLI sends your API key in the [`Authorization` header](https://platform.claude.com/docs/en/api/migration-2026-10-21#sdk-authorization-bearer). If a proxy or gateway requires the key in `X-Api-Key`, add the line `X-Api-Key: <key>` to `ANTHROPIC_CUSTOM_HEADERS`. Then, unset `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` so that the CLI doesn’t also send `Authorization`.
193 
194If you export `ANTHROPIC_CUSTOM_HEADERS`, other programs in the same terminal that read it send those headers too. These include Claude Code and programs that use the SDK.
195 
196On [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), the CLI ignores `ANTHROPIC_CUSTOM_HEADERS`, so custom headers are not available.
197 
181198## Debugging
182199 
183200Add `--debug` to any command to print the exact HTTP request and response (headers and body) to stderr. API keys are redacted.
from line 204
187204```
188205 
189206```text Output wrap
190GET /v1/agents?beta=true HTTP/1.1
207GET /v1/agents HTTP/1.1
191208Host: api.anthropic.com
192209Anthropic-Beta: managed-agents-2026-04-01
193210Anthropic-Version: 2026-10-21

manage-claude/access-transparency Changed · +3 / -3 lines

from line 12
1212 * Each human view of your retained data (see [covered content](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-covers)) by an Anthropic employee writes an `anthropic_access` activity to your [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed).
1313 * Access occurs only for safety review or incident response. See [Reason codes](https://platform.claude.com/docs/en/manage-claude/access-transparency#reason-codes).
1414 
15 Access Transparency is available to eligible customers. For eligibility, refer to your contract terms or contact your Anthropic account representative. Anthropic also enables Access Transparency when it [approves your whole organization for customer-managed keys](https://platform.claude.com/docs/en/manage-claude/access-transparency#access-transparency-with-customer-managed-keys). On Claude Platform, if you got access through Enterprise Frontier Safeguards or Enterprise Data Controls, attaching your first key turns on Access Transparency instead, unless it’s already on. You can’t turn Access Transparency off in the Claude Console or through the API.
15 Access Transparency is available to eligible customers. For eligibility, refer to your contract terms or contact your Anthropic account representative. Anthropic also enables Access Transparency when it [approves your whole organization for customer-managed keys](https://platform.claude.com/docs/en/manage-claude/access-transparency#access-transparency-with-customer-managed-keys). On Claude Platform or Claude Models on Google Cloud (Anthropic managed), if you got access through Enterprise Frontier Safeguards or Enterprise Data Controls, attaching your first key turns on Access Transparency instead, unless it’s already on. You can’t turn Access Transparency off in the Claude Console or through the API.
1616</Note>
1717 
1818## How Access Transparency works
from line 42
4242 
4343## Getting started
4444 
45If your organization has [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) or Enterprise Data Controls and doesn’t already have Access Transparency, you don’t need to request it. On Claude Platform, it turns on automatically the first time you start connecting customer-owned storage, attach a customer-managed key, or turn off Anthropic Human Review.
45If your organization has [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) or Enterprise Data Controls and doesn’t already have Access Transparency, you don’t need to request it. On Claude Platform or Claude Models on Google Cloud (Anthropic managed), it turns on automatically the first time you start connecting customer-owned storage, attach a customer-managed key, or turn off Anthropic Human Review.
4646 
4747To enable Access Transparency:
4848 
from line 64
6464 
6565### Access Transparency with customer-managed keys
6666 
67When Anthropic approves your whole organization for [customer-managed encryption keys](https://platform.claude.com/docs/en/manage-claude/cmek) (CMEK), it also enables Access Transparency for the organization. This happens at approval, before you attach a key. On Claude Platform, if you got access through Enterprise Frontier Safeguards or Enterprise Data Controls, attaching your first key turns on Access Transparency instead, unless it’s already on. You don’t need to request Access Transparency separately. Access Transparency still doesn’t cover content in claude.ai. See [What Access Transparency does not cover](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-does-not-cover).
67When Anthropic approves your whole organization for [customer-managed encryption keys](https://platform.claude.com/docs/en/manage-claude/cmek) (CMEK), it also enables Access Transparency for the organization. This happens at approval, before you attach a key. On Claude Platform or Claude Models on Google Cloud (Anthropic managed), if you got access through Enterprise Frontier Safeguards or Enterprise Data Controls, attaching your first key turns on Access Transparency instead, unless it’s already on. You don’t need to request Access Transparency separately. Access Transparency still doesn’t cover content in claude.ai. See [What Access Transparency does not cover](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-does-not-cover).
6868 
6969Note the following about the approval:
7070 

manage-claude/access-transparency-log Changed · +6 / -6 lines

from line 94
9494* A parent-organization-level key must pass `organization_id`, naming one child organization.
9595* `organization_id` accepts the `org_...` tagged ID or the organization UUID.
9696 
97A `404` means there is no log this key can read. An organization outside the key’s scope, a nonexistent organization, and an organization whose log has not been created yet are deliberately indistinguishable. The log of an organization that has since stopped using Access Transparency is not this case: it continues to be served.
97With a valid key, a `404` can mean that there is no log this key can read. An organization outside the key’s scope, a nonexistent organization, and an organization whose log has not been created yet are deliberately indistinguishable. The log of an organization that has since stopped using Access Transparency is not this case: it continues to be served.
9898 
9999### Errors
100100 
from line 102
102102 
103103| Status | Meaning on this surface |
104104| ----- | ----- |
105| `400` | `organization_id` is malformed or is omitted with a parent-organization key, the Compliance API is not enabled, a query parameter is unknown, or a per-endpoint validation failed |
106| `401` | The API key is missing or not valid |
105| `400` | One of these is true. The `anthropic-version` value is empty or is not an available version. `organization_id` is malformed, or is omitted with a parent-organization key. The Compliance API is not enabled. A query parameter is unknown. One of the endpoint’s own parameters is not valid |
106| `401` | The key is invalid, deactivated, or expired. See [401 Unauthorized](https://platform.claude.com/docs/en/manage-claude/compliance-errors#401-unauthorized) |
107107| `403` | The key lacks the required scope |
108| `404` | No log readable by this key, or the per-endpoint “not covered” and “beyond the tree” cases |
109| `429` | Rate limited. These endpoints share the Compliance API’s per-parent-organization [rate limit](https://platform.claude.com/docs/en/manage-claude/compliance-api). Honor `retry-after` |
108| `404` | No key was sent, or the key is not a Compliance Access Key or Admin API key ([Request not authenticated](https://platform.claude.com/docs/en/manage-claude/compliance-errors#request-not-authenticated)). With a valid key, no log is readable by it, or the requested position is not available |
109| `429` | Rate limited. These endpoints share the Compliance API’s [rate limit](https://platform.claude.com/docs/en/manage-claude/compliance-api) for each parent organization. Honor `retry-after` |
110110| `503` | The log is temporarily unavailable. Retry with backoff |
111111 
112112### Caching
from line 515
515515 </Accordion>
516516 
517517 <Accordion title="Can I compute proofs myself instead of calling the proof endpoints?">
518 Yes. Hash tiles are the primary interface, and a tlog-tiles client that supports ECDSA note keys can compute inclusion and consistency proofs from them. The proof endpoints are a convenience. A generic client needs a thin wrapper to send the `x-api-key` header and, for a parent-organization key, the `organization_id` parameter.
518 Yes. Hash tiles are the primary interface, and a tlog-tiles client that supports ECDSA note keys can compute inclusion and consistency proofs from them. The proof endpoints are a convenience. A generic client needs a thin wrapper to send the `x-api-key` and `anthropic-version` headers and, for a parent-organization key, the `organization_id` parameter.
519519 </Accordion>
520520 
521521 <Accordion title="What if my organization stops using Access Transparency?">

manage-claude/compliance-errors Changed · +19 / -2 lines

### Missing or invalid version header

from line 40
4040 
4141## 400 Bad Request
4242 
43The request was syntactically valid, but the server rejected a parameter or the Compliance API is not enabled for the organization. Fix the cause named in the message and resend. One 400 is different: [Transcript page too large](https://platform.claude.com/docs/en/manage-claude/compliance-errors#transcript-page-too-large), which the local session messages endpoint can return for a page of a very large session even when every parameter is valid; its entry says what to do instead of resending.
43The request was syntactically valid, but the server rejected a parameter or a header, or the Compliance API is not enabled for the organization. Fix the cause named in the message and resend. One 400 is different: [Transcript page too large](https://platform.claude.com/docs/en/manage-claude/compliance-errors#transcript-page-too-large). The local session messages endpoint can return it for a page of a very large session, even when every parameter is valid. The entry for that error says what to do instead of resending.
4444 
4545### Compliance API not enabled
4646 
from line 54
5454 
5555**Fix:** Enable the Compliance API by following [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api), then resend the request.
5656 
57### Missing or invalid version header
58 
59**Type:** `invalid_request_error`
60 
61```text wrap
62anthropic-version: header is required
63```
64 
65```text wrap
66anthropic-version: "2026-10" is not a valid version
67```
68 
69**Cause:** The first message means that the request omits the `anthropic-version` header. Only some endpoints return this message, such as the [Security posture endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#request). For what the other endpoints do, see [Versioning](https://platform.claude.com/docs/en/manage-claude/compliance-api#versioning). The second message means that the value is empty or is not an available version. Every endpoint returns this message, which repeats the value sent.
70 
71**Fix:** On every request, set `anthropic-version` to a version listed in [API versions](https://platform.claude.com/docs/en/api/versioning).
72 
5773### Unknown query parameter
5874 
5975**Type:** `invalid_request_error`
from line 344
328344* **Missing or wrong key:** Send the key in the `x-api-key` header and check that it starts with `sk-ant-api01-` or `sk-ant-admin01-`. See [Which key do you need?](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need) for the key types.
329345* **`Not found` on one path while others succeed:** If the header and key are right, check that path against the [Compliance API reference](https://platform.claude.com/docs/en/api/compliance).
330346* **Security posture endpoint:** See [Errors in the Security posture results reference](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#handle-errors) instead.
347* **Transparency log endpoints:** With a valid key, a bare `Not found` can mean that there is no log this key can read. See [Errors in the transparency log guide](https://platform.claude.com/docs/en/manage-claude/access-transparency-log#errors).
331348* **[Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) and [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws):** Use the platform’s credentials instead of a key. See [How the Compliance API works](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works).
332349 
333350### Chat not found
from line 625
608625 Common questions about access, scopes, retention, and integration.
609626 </Card>
610627 
611 <Card title="Errors" href="https://platform.claude.com/docs/en/api/errors">
628 <Card title="Claude API errors" href="https://platform.claude.com/docs/en/api/errors">
612629 The platform-wide error catalog and retry semantics.
613630 </Card>
614631</CardGroup>

manage-claude/inference-hooks-endpoint Changed · +37 / -124 lines

### What `tool_info` tells you ### Write rules that keep working ### Platform tools ### Application tools ### Third-party tools ### Client tools

from line 246
246246 
247247## The tool call frame
248248 
249When Claude produces tool calls, Anthropic sends one tool call frame that lists them. Calls to some of claude.ai’s own tools may be left out, and a response whose only tool calls are left out doesn’t produce a tool call frame; see [Availability](https://platform.claude.com/docs/en/manage-claude/inference-hooks#availability). One verdict covers the whole frame: you can’t allow some tool calls and deny others. The frame goes to the same endpoint as the prompt frame, with the same headers, signature, and top-level fields. Tool calls made by code that Claude runs in the code execution tool are sent the same way, in separate tool call frames, before they run.
249When Claude produces tool calls, Anthropic sends one tool call frame that lists them. One verdict covers the whole frame: you can’t allow some tool calls and deny others. The frame goes to the same endpoint as the prompt frame, with the same headers, signature, and top-level fields. Code that Claude runs in the code execution tool can make tool calls too. Anthropic sends those in separate tool call frames before they run.
250250 
251It differs from the prompt frame in three ways:
251Some tool calls might be left out, and a response with only such calls produces no tool call frame. See [Availability in the Inference hooks overview](https://platform.claude.com/docs/en/manage-claude/inference-hooks#availability).
252252 
253The frame differs from the prompt frame in three ways:
254 
253255* `type` is `"tool_call"`.
254256* `messages` holds only the latest message, the `assistant` message Claude just produced: any `text` blocks and one `tool_use` block for each tool call the frame lists, in the order the model produced them. Earlier conversation is left out, because the prompt frame sent before that model call carried it. Read the last entry of `messages`, because the protocol may later add earlier messages before it.
255257* Each `tool_use` block carries a `tool_info` object that says who runs or provides the tool.
from line 258
256258 
257259Where `session_id` is set, it is the same on both frames. The tool call frame has its own `request_id`, which is opaque like the prompt frame’s.
258260 
259`tool_info` says who runs or provides the tool, not what the tool can reach. It is one of four kinds, told apart by its `type` field, and each kind carries its own fields. Anthropic sends the first of the following kinds that fits the tool. New kinds may appear: accept a `type` you don’t recognize, and for such a kind rely only on `type`.
261The frame holds each call’s arguments, not its result. A result reaches your server only when it is sent back to Claude in a `tool_result` block of a later prompt frame. Some results are replaced by a placeholder.
260262 
261An optional field that doesn’t apply is left out, never `null`, so a `tool_info` can be just `{"type": "client"}`. `tool_name` is chosen by whoever defined the tool, and a server’s `toolset_name` by whoever wrote the request or named the connector. Don’t treat either as a trust boundary.
263### What `tool_info` tells you
262264 
263### Platform tools
265`tool_info` says who runs or provides the tool, not what the tool can reach. Only `type` is on every tool. A field that doesn’t apply or isn’t known is left out, never `null`, so a `tool_info` can be just `{"type": "client"}`.
264266 
265A platform tool is one that the Claude API itself runs while it serves the request, such as web search or code execution.
266 
267| Field | Present | Description |
267| Field | Present on | Description |
268268| ----- | ----- | ----- |
269| `type` | Always | `"platform"` |
270| `tool_type` | Always | The tool’s versioned type, such as `web_search_20250305`. Match it exactly; don’t parse a name or a date out of it. |
271| `toolset_name` | Optional | The group of tools it belongs to. |
269| `type` | Every tool | One of the values in the next table. New values might appear. Return a verdict, not an error, for one you don’t recognize. Don’t expect any other field with it. |
270| `tool_type` | Every platform tool and some client tools | The versioned type of a tool that Anthropic defines, such as `web_search_20250305`. Match it exactly; don’t parse a name or a date out of it. |
271| `toolset_name` | Some tools | A name for the server or group of tools that the tool belongs to. It isn’t a stable identifier. |
272| `origin` | Some third-party tools | The scheme, host, and non-default port of the server’s URL. It can be a private or local address, `localhost` included. An absent `origin` means unknown, not safe. |
273| `verified_origin` | Every tool that has `origin` | `true` only when Anthropic connects to the server itself. `false` means only that Anthropic hasn’t confirmed the origin. |
272274 
273### Application tools
275`type` has one of these values:
274276 
275An application tool is one that the Anthropic application making the request provides itself, such as claude.ai’s own tools.
277| Value | Meaning |
278| ----- | ----- |
279| `"platform"` | The Claude API runs the tool while it serves the request. |
280| `"application"` | Anthropic runs the tool as part of the application that made the request. |
281| `"third_party"` | The tool is on a server that Anthropic knows of, such as a connector or an MCP server. This doesn’t mean Anthropic has vetted the server. |
282| `"client"` | Any other tool, usually one that the application calling Claude runs. |
276283 
277| Field | Present | Description |
278| ----- | ----- | ----- |
279| `type` | Always | `"application"` |
280| `toolset_name` | Optional | The group of tools it belongs to. |
284An example `tool_use` block for a tool on an MCP server:
281285 
282A `tool_use` block for a web search tool that claude.ai provides itself:
283 
284286```json
285287{
286288 "type": "tool_use",
287 "id": "toolu_01LmNoPqRsTuVwXyZaBcDeFg",
288 "tool_name": "web_search",
289 "input": {
290 "query": "comparable deals for unannounced 4.2B USD Acme Corp acquisition"
291 },
292 "tool_info": {
293 "type": "application"
294 }
295}
296```
297 
298claude.ai doesn’t always name this tool `web_search`, so don’t match on the name alone. `input` always includes the search query and can hold other fields.
299 
300### Third-party tools
301 
302A third-party tool is one on a server that Anthropic knows of, such as a claude.ai connector or an MCP server that the request names in `mcp_servers`. This doesn’t mean Anthropic has vetted the server. In voice mode, a call to a claude.ai connector’s tool is `"client"` instead.
303 
304| Field | Present | Description |
305| ----- | ----- | ----- |
306| `type` | Always | `"third_party"` |
307| `toolset_name` | Optional | For a server in `mcp_servers`, the name the request gives the server. For any other server, such as a claude.ai connector, the server’s name, copied from `tool_name`. |
308| `origin` | Optional | The scheme, host, and non-default port of the server’s URL. It can be a private or local address, `localhost` included. An absent `origin` means unknown, not safe. |
309| `verified_origin` | Whenever `origin` is | `true` only when Anthropic’s servers connect to the server themselves. Treat `false` as an origin that Anthropic hasn’t confirmed. |
310 
311A `tool_use` block for a tool on an MCP server that the request names `crm` in `mcp_servers`:
312 
313```json
314{
315 "type": "tool_use",
316289 "id": "toolu_01GhIjKlMnOpQrStUvWxYzAb",
317290 "tool_name": "crm_search",
318291 "input": {
from line 300
327300}
328301```
329302 
330A `tool_use` block for a tool on a Gmail connector, called in a claude.ai chat:
303### Write rules that keep working
331304 
332```json
333{
334 "type": "tool_use",
335 "id": "toolu_01DeFgHiJkLmNoPqRsTuVwXy",
336 "tool_name": "mcp__Gmail__search_threads",
337 "input": {
338 "query": "from:[email protected] newer_than:30d"
339 },
340 "tool_info": {
341 "type": "third_party",
342 "toolset_name": "Gmail",
343 "origin": "https://gmail.mcp.example.com",
344 "verified_origin": false
345 }
346}
347```
305The protocol defines the fields on this page. It doesn’t define which values a given tool arrives with. A tool’s `tool_name`, `input` fields, and `tool_info` values can differ between Claude products and between conversations, and they can change over time. These practices keep your rules working:
348306 
349For a claude.ai connector, `verified_origin` can be `false` even when Anthropic’s servers connect to the server themselves.
350 
351A name copied from `tool_name` can differ from the name the user sees: `mcp__Google_Drive__search_files` gives `Google_Drive`, not `Google Drive`. It can also end in a short suffix (`Gmail-1a2b3c4d`), for example when another of the user’s connectors has the same name. The name isn’t a stable identifier and doesn’t prove which server the tool is on. When `tool_name` has no server name in it, `toolset_name` is left out.
352 
353### Client tools
354 
355A client tool is any other tool, usually one that the application calling Claude runs. A tool that Anthropic defines but the calling application runs, such as bash or computer use, is a client tool too, and carries its versioned type in `tool_type`. A call to a tool the request doesn’t declare is also `"client"`.
356 
357A tool on an MCP server that Claude Code connects to directly from the user’s computer, such as a local MCP server, is a client tool. Its `tool_info` is `{"type": "client"}`, and its `tool_name` is the name Claude Code gives it, in the form `mcp__<server>__<tool>`.
358 
359A deny stops the call before Claude Code runs it. The exchange between Claude Code and a local server doesn’t pass through Anthropic, so your AI security server sees the tool’s result only when Claude Code sends it back. Its text is then in a `tool_result` block in the next prompt frame.
360 
361| Field | Present | Description |
362| ----- | ----- | ----- |
363| `type` | Always | `"client"` |
364| `tool_type` | Optional | The tool’s versioned type, such as `bash_20250124`, when Anthropic defines the tool. Match it exactly; don’t parse a name or a date out of it. |
365| `toolset_name` | Optional | The group of tools it belongs to, such as `browser`. |
366 
367A `tool_use` block for a tool that the calling application declares:
368 
369```json
370{
371 "type": "tool_use",
372 "id": "toolu_01AbCdEfGhIjKlMnOpQrStUv",
373 "tool_name": "read_file",
374 "input": {
375 "path": "reports/q3.txt"
376 },
377 "tool_info": {
378 "type": "client"
379 }
380}
381```
382 
383A `tool_use` block for bash, which Anthropic defines and the calling application runs:
384 
385```json
386{
387 "type": "tool_use",
388 "id": "toolu_01HiJkLmNoPqRsTuVwXyZaBc",
389 "tool_name": "bash",
390 "input": {
391 "command": "ls -la reports/"
392 },
393 "tool_info": {
394 "type": "client",
395 "tool_type": "bash_20250124"
396 }
397}
398```
307* **Scan all of `input` for sensitive content.** This works however the tool is labeled.
308* **Deny when any one value matches.** A rule that needs several values to match lets the call through when one of them differs or is missing.
309* **Don’t allow on a name or `tool_info.type` alone.** Another tool can have the same values. Only an `origin` with `verified_origin` set to `true` confirms the server’s address.
310* **Choose a verdict for calls that match no rule.** Expect names you haven’t seen.
311* **Check your rules against your own traffic.** Log the `tool_name` and `tool_info` values you receive and review them regularly.
399312 
400313## Return a verdict
401314 

managed-agents/self-hosted-sandboxes-per-session Changed · +12 / -2 lines

from line 61
6161 
6262* **In the cluster:** The [Agent Sandbox](https://github.com/kubernetes-sigs/agent-sandbox) controller (on GKE, the Agent Sandbox add-on), nodes that run gVisor, and a network plugin that enforces NetworkPolicy.
6363* **In your own namespace:** Restricted Pod Security Standard labels, a Secret with the environment ID and [environment key](https://platform.claude.com/docs/en/managed-agents/self-hosted-sandboxes#run-your-first-session), and the dispatcher’s TLS certificate.
64* **On GKE:** GKE 1.35, or 1.36.3-gke.1767000 or a later 1.36 version, and a [maintenance exclusion](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/maintenance-windows-and-exclusions#configuring_a_maintenance_exclusion) that blocks minor version upgrades.
6465 
6566The [install guide on GitHub](https://github.com/anthropics/anthropic-cli/blob/main/sandboxes/kubernetes/README.md) has the setup steps for each kind of cluster. It also covers upgrades and key rotation.
6667 
68On GKE, sandboxes can fail after an automatic upgrade to the next minor version. The exclusion lasts at most until the end of support for the cluster’s minor version. Before it ends, upgrade the cluster yourself with the steps in [Upgrading a GKE cluster](https://github.com/anthropics/anthropic-cli/blob/main/sandboxes/kubernetes/README.md#upgrading-a-gke-cluster) in the install guide.
69 
6770Save your settings as `cma-values.yaml`. The install fails without the three settings in this file:
6871 
6972<File filename="cma-values.yaml">
7073 ```yaml
7174 platform: gke # or eks, or generic for any other cluster
75 # A GKE cluster on Cloud DNS or with NodeLocal DNSCache also needs a gke setting.
7276 egress:
7377 # The chart already blocks the private ranges. List your other addresses
7478 # that sandboxes must not reach.
from line 83
7983 ```
8084</File>
8185 
82The install guide lists the settings that depend on your cluster, such as `gke.dns` on GKE Autopilot. It also says when `egress.clusterIsPrivate: true` takes the place of `egress.clusterCIDRs`.
86On GKE, your cluster’s DNS setup determines whether the file also needs a top-level `gke` setting. Autopilot clusters need one, and so do new Standard clusters by default. On a new Standard cluster with the default setup, the install succeeds without it, but sandboxes can’t resolve hostnames.
8387 
88* **Cloud DNS for GKE, with or without NodeLocal DNSCache:** `gke: {dns: cloudDns}`. Autopilot clusters use Cloud DNS. For a Standard cluster, the **DNS provider** field on the cluster’s page in the Google Cloud console shows the provider.
89* **kube-dns with [NodeLocal DNSCache](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/nodelocal-dns-cache):** `gke: {dns: nodeLocalCache, kubeDnsUpstreamIP: <address>}`. To print the address, run `kubectl -n kube-system get svc kube-dns-upstream -o jsonpath='{.spec.clusterIP}'`. New Standard clusters have this setup by default. A kube-dns cluster runs the cache if `kubectl -n kube-system get pods` lists `node-local-dns` pods.
90* **kube-dns without the cache:** No `gke` setting is necessary.
91 
92The install guide lists the other settings that depend on your cluster. It also says when `egress.clusterIsPrivate: true` takes the place of `egress.clusterCIDRs`.
93 
8494Then, install the chart:
8595 
8696```bash
8797helm install cma \
8898 oci://us-docker.pkg.dev/anthropic-public-registry/sandboxes/charts/cma-sandboxes \
89 --version 0.1.0 \
99 --version 0.1.1 \
90100 --namespace cma \
91101 -f cma-values.yaml \
92102 --wait

models/haiku-5-5/migration-guide Changed · +3 / -2 lines

from line 23
2323### Every starting model
2424 
25251. Replace the model ID with the Claude Haiku 5.5 ID for your platform. See [Use the Claude Haiku 5.5 model ID](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#use-the-claude-haiku-5-5-model-id).
262. Recount your prompts, and revisit `max_tokens` limits and cost estimates, because the same text counts as more tokens and large images count as more visual tokens. See [Recount tokens](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#recount-tokens).
262. Recount your prompts and revisit `max_tokens` limits and cost estimates. The same text counts as more tokens, and requests that omit `thinking` run with adaptive thinking. Large images also count as more visual tokens, which raises cost. See [Recount tokens](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#recount-tokens) and [Configure thinking](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#configure-thinking).
27273. If your requests send `thinking: {"type": "enabled", "budget_tokens": N}`, change `thinking` to `{"type": "adaptive"}`. See [Configure thinking](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#configure-thinking).
28284. If your code reads the first content block as the answer, select blocks by `type` instead. See [Configure thinking](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#configure-thinking).
29295. Remove `temperature`, `top_p`, and `top_k` from your requests. See [Remove sampling parameters](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#remove-sampling-parameters).
from line 33
33339. If your code changes `system`, `tools`, or earlier `messages` between requests in a conversation and sends thinking blocks back, keep the conversation append-only. See [Keep earlier turns unchanged](https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide#keep-earlier-turns-unchanged).
343410. Handle `stop_reason: "refusal"`. Claude Haiku 5.5 runs safety classifiers that can decline a request, and it has no server-side fallback. See [Safeguard refusals](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-haiku-5-5#safeguard-refusals).
353511. If your prompts ask the model to write its reasoning in the response, such as in `<thinking>` or `<reasoning>` tags, remove those instructions. Claude Haiku 5.5 might decline a request that includes them and return the `reasoning_extraction` category. See [Safeguard refusals](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-haiku-5-5#safeguard-refusals).
3612. If your code rescales point or bounding-box coordinates, use Claude Haiku 5.5’s long-edge and visual-token limits. Other limits can make the coordinates wrong with no error. See [Rescale coordinates when you cannot pre-resize](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#rescale-coordinates-when-you-cannot-pre-resize).
3637 
3738If your organization has a [Priority Tier](https://platform.claude.com/docs/en/api/service-tiers#supported-models) commitment on Claude Haiku 4.5, plan capacity separately: Priority Tier is not supported on Claude Haiku 5.5.
3839 
from line 139
138139 
139140Claude Haiku 4.5 supports [computer use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool) through the `computer_20250124` tool, with the `computer-use-2025-01-24` beta header. Claude Haiku 5.5 supports computer use through the `computer_toolset_20260801` toolset. A request to Claude Haiku 5.5 that declares `computer_20250124` returns a 400 error.
140141 
141To move an integration to the toolset, drop the `computer-use-2025-01-24` beta header and replace the `tools` entry with `{"type": "computer_toolset_20260801"}`. Then make the other request and agent-loop changes in [Migrate from `computer_20251124`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124). Dispatch on each member `tool_use` block’s `name` and `toolset_name` rather than on `input.action`. Handle every such block in a turn and echo `toolset_name` on results. Zoom is on by default in the toolset; if your environment doesn’t implement it, add `"configs": {"zoom": {"enabled": false}}`. If you send the `fine-grained-tool-streaming-2025-05-14` beta header, remove it. Alongside a toolset entry, it returns a 400 error.
142To move an integration to the toolset, drop the `computer-use-2025-01-24` beta header and replace the `tools` entry with `{"type": "computer_toolset_20260801"}`. Then, make the other request and agent-loop changes in [Migrate from `computer_20251124`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124). Zoom is on by default in the toolset; if your environment doesn’t implement it, add `"configs": {"zoom": {"enabled": false}}`. If you send the `fine-grained-tool-streaming-2025-05-14` beta header, replace it with `eager_input_streaming: true` on each user-defined tool that needs fine-grained streaming. A request that sends the header with a toolset entry returns a 400 error.
142143 
143144On Amazon Bedrock, Claude Haiku 5.5 also accepts the `computer_20251124` tool with the `computer-use-2025-11-24` beta header.
144145 

models/opus-5-5/migration-guide Changed · +21 / -29 lines

from line 282
282282* Set `effort` explicitly: the default is `medium`, where Claude Opus 5’s is `high`.
283283* Replace `tool_choice` types `any` and `tool` with `auto` plus strict tool use or structured outputs.
284284* If you use an earlier computer use tool version, declare `computer_toolset_20260801` instead, drop that version’s beta header, and update your agent loop for the toolset. On Amazon Bedrock, `computer_20251124` also works. See the [computer use breaking change](https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#computer-use-toolset).
285* If a router or fallback can move a conversation off Claude Opus 5.5, expect the new model to run without Claude Opus 5.5’s thinking blocks. Claude Fable 5.1 and Claude Mythos 5.1 keep them on the Claude API. Claude Fable 5.2 and Claude Mythos 5.2 keep them on the Claude API and Claude Models on Google Cloud (Google managed). Claude Opus 5.5 itself reads thinking from Claude Opus 5 and from [earlier Claude Opus, Claude Sonnet, and Claude Haiku models](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#earlier-models). On the Claude API and Claude Models on Google Cloud (Google managed), it also reads thinking from Claude Sonnet 5.5 and Claude Haiku 5.5. It doesn’t read thinking from Claude Fable or Claude Mythos models.
285* If a router or fallback changes models, check [which model switches keep thinking blocks](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5#thinking-blocks-are-tied-to-the-model-that-produced-them). On the other switches, the API drops them without an error.
286286* Read content blocks by `type`, and pass `thinking` blocks back unmodified in tool-use loops.
287287* If your interface renders text between tool calls, set `display: "updates"` (in beta) or `"summarized"` and render the non-empty `thinking` blocks.
288288* If your code edits earlier turns, the `system` prompt, or `tools` mid-conversation, follow [Preserved thinking](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking).
from line 323
323323* Re-tune `max_tokens` to account for the updated tokenization, including compaction triggers.
324324* Re-test any client-side token-count estimations.
325325* If your application sends images, re-budget for [high-resolution image support](https://platform.claude.com/docs/en/build-with-claude/vision#high-resolution-image-support-on-claude-opus-4-7) (up to approximately 3x more image tokens per full-resolution image). Downsample before sending if you do not need the additional fidelity.
326* If you consume pointing or bounding-box coordinates from the model, remove any scale-factor conversion; coordinates are 1:1 with actual image pixels on Claude Opus 4.7 and later models.
326* If your code rescales point or bounding-box coordinates, [use Claude Opus 5.5’s long-edge and visual-token limits](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#rescale-coordinates-when-you-cannot-pre-resize).
327327* Review the [behavior changes](https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#behavior-changes) that started in Claude Opus 4.7.
328328* If your product does legitimate security work, apply to the [Cyber Verification Program](https://support.claude.com/en/articles/14604842-real-time-cyber-safeguards-on-claude-opus-and-sonnet) for access to lower restrictions on cyber content.
329329 
from line 333
333333* Verify tool call JSON parsing uses a standard JSON parser.
334334* Move from `client.beta.messages.create()` (csharp: `client.Beta.Messages.Create()`; go: `client.Beta.Messages.New()`; java: `client.beta().messages().create()`; php: `$client->beta->messages->create()`; cli: `ant beta:messages create`) to `client.messages.create()` (csharp: `client.Messages.Create()`; go: `client.Messages.New()`; java: `client.messages().create()`; php: `$client->messages->create()`; cli: `ant messages create`): adaptive thinking and effort need no beta namespace.
335335* Remove the `effort-2025-11-24` beta header (the effort parameter does not require it).
336* Remove the `fine-grained-tool-streaming-2025-05-14` beta header.
336* Replace the `fine-grained-tool-streaming-2025-05-14` beta header with `eager_input_streaming: true` on each user-defined tool that needs fine-grained streaming.
337337* Remove the `interleaved-thinking-2025-05-14` beta header (adaptive thinking enables interleaved thinking automatically).
338338* Migrate `output_format` to `output_config.format` (if applicable).
339339 
from line 897
897897 
898898Claude Opus 5.5 supports computer use through the `computer_toolset_20260801` toolset. On Amazon Bedrock, Claude Opus 5.5 also accepts the `computer_20251124` tool with the `computer-use-2025-11-24` beta header. Claude Opus 5.5 returns a 400 error for any computer use tool version it doesn’t accept, such as `computer_20251124` on the Claude API. It doesn’t accept `computer_20250124` on any platform. On the Claude API, the error message begins `'claude-opus-5-5' does not support tool types: computer_20251124.` and then lists the tool types the model accepts.
899899 
900Integrations that use the toolset need no change. To move a `computer_20251124` integration to the toolset, drop the beta header and send the `computer_toolset_20260801` entry with no `name` or display dimensions. In your agent loop, handle every member `tool_use` block in a turn and echo `toolset_name` on every result. Read the action from each block’s `name`, not from `input.action`. [Migrate from `computer_20251124`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124) lists the agent-loop changes.
900Integrations that use the toolset need no change. To move a `computer_20251124` integration to the toolset, drop the beta header and send the `computer_toolset_20260801` entry with no `name` or display dimensions. In your agent loop, handle every member `tool_use` block in a turn and echo its `toolset_name` on the matching result. Read the action from each block’s `name`, not from `input.action`. [Migrate from `computer_20251124`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124) lists every change.
901901 
902902Before. Claude Opus 5 accepts this request, and Claude Opus 5.5 rejects it with a 400 error on the Claude API:
903903 
from line 1158
11581158 
11591159### Text between tool calls is returned in thinking blocks
11601160 
1161On Claude Opus 5, text the model writes between tool calls comes back as `text` blocks. On Claude Opus 5.5, as on Claude Fable 5.1, that narration comes back as [progress-update `thinking` blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates), at most one before each tool call. At the default `thinking.display` of `"omitted"`, their `thinking` field is empty. No request fails, but an application that streams that text to its users as progress updates goes quiet between tool calls. To restore the updates, read them from `thinking` blocks and set a `display` value that returns their text: `"updates"` (beta, `thinking-display-updates-2026-08-18` header) returns the progress updates while reasoning stays hidden, and `"summarized"` returns both, mixed together. Then render each non-empty `thinking` block ahead of the `tool_use` block it precedes, and pass the blocks back unchanged with the rest of the assistant turn. See [User-facing progress updates](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5-5#user-facing-progress-updates).
1161On Claude Opus 5, text the model writes between tool calls comes back as `text` blocks. On Claude Opus 5.5, that narration comes back as [progress-update `thinking` blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates), at most one before each tool call. At the default `thinking.display` of `"omitted"`, their `thinking` field is empty. No request fails, but an application that streams that text to its users as progress updates stops showing it.
11621162 
1163To restore the updates, set a `display` value and read their summaries from `thinking` blocks. The value `"updates"` returns the summaries while reasoning stays hidden, and `"summarized"` returns both, mixed together. The `"updates"` value is in beta and needs the `thinking-display-updates-2026-08-18` beta header. Then, render each non-empty `thinking` block ahead of the `tool_use` block it precedes, and pass the blocks back unchanged with the rest of the assistant turn. See [User-facing progress updates](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5-5#user-facing-progress-updates).
1164 
11631165### Safety classifiers and fallback
11641166 
11651167Claude Opus 5.5 can return `stop_reason: "refusal"` with a `stop_details` category. Its classifiers cover a broader set of categories than Claude Opus 5’s, so expect `stop_details.category` values such as `"bio"` in addition to `"cyber"` and `"reasoning_extraction"`; see the [refusal category table](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#refusal-response). Handle refusals and configure [server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback) or your own retry (server-side fallback doesn’t retry requests declined with `"reasoning_extraction"`; that refusal is returned to you); see [Refusals and fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) and [Safeguard refusals](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5-5#safeguard-refusals).
from line 1260
12581260 ```
12591261 
12601262 ```bash CLI
1261 ant messages create <<'YAML'
1262 model: claude-opus-4-6
1263 max_tokens: 16000
1264 thinking:
1265 type: enabled
1266 budget_tokens: 10000
1267 messages:
1268 - role: user
1269 content: "..."
1270 YAML
1263 ant messages create \
1264 --model claude-opus-4-6 \
1265 --max-tokens 16000 \
1266 --thinking '{type: enabled, budget_tokens: 10000}' \
1267 --message '{role: user, content: "..."}'
12711268 ```
12721269 
12731270 ```python Python
from line 1386
13891386 ```
13901387 
13911388 ```bash CLI
1392 ant messages create <<'YAML'
1393 model: claude-opus-5-5
1394 max_tokens: 16000
1395 thinking:
1396 type: adaptive
1397 output_config:
1398 effort: high
1399 messages:
1400 - role: user
1401 content: "..."
1402 YAML
1389 ant messages create \
1390 --model claude-opus-5-5 \
1391 --max-tokens 16000 \
1392 --thinking '{type: adaptive}' \
1393 --output-config '{effort: high}' \
1394 --message '{role: user, content: "..."}'
14031395 ```
14041396 
14051397 ```python Python
from line 1526
15341526 
15351527 High-resolution support is automatic. Plan for two things:
15361528 
1537 * Full-resolution images can use up to approximately 3x more image tokens than on prior models (up to 4,784 tokens for each image, compared to the previous cap of roughly 1,600 tokens). Re-budget `max_tokens` and cost expectations for image-heavy workloads, or downsample before sending if you do not need the additional fidelity.
1538 * Pointing and bounding-box coordinates returned by the model are 1:1 with actual image pixels on Claude Opus 4.7, so no scale-factor conversion is required.
1529 * Full-resolution images can use up to approximately 3x more image tokens than on prior models (up to 4,784 tokens for each image, compared to the previous cap of roughly 1,600 tokens). Revisit cost estimates for image-heavy workloads, or downsample before sending if you do not need the additional fidelity.
1530 * Coordinates map directly onto your image only when Claude doesn’t downscale it. If your code rescales point or bounding-box coordinates, [use Claude Opus 5.5’s long-edge and visual-token limits](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#rescale-coordinates-when-you-cannot-pre-resize). Other limits can make the coordinates wrong with no error.
15391531 
15401532 See [High-resolution image support on Claude Opus 4.7](https://platform.claude.com/docs/en/build-with-claude/vision#high-resolution-image-support-on-claude-opus-4-7) for details.
15411533 
from line 1555
15631555 
156415562. **Remove effort beta header:** The effort parameter does not require a beta header. Remove the `effort-2025-11-24` beta from your requests.
15651557 
15663. **Remove fine-grained tool streaming beta header:** Fine-grained tool streaming does not require a beta header. Remove the `fine-grained-tool-streaming-2025-05-14` beta from your requests.
15583. **Replace fine-grained tool streaming beta header:** Set `eager_input_streaming: true` on each user-defined tool that needs fine-grained streaming, and remove the `fine-grained-tool-streaming-2025-05-14` beta from your requests.
15671559 
156815604. **Remove interleaved thinking beta header:** With adaptive thinking, interleaved thinking is automatic on every model that supports adaptive thinking. Remove the `interleaved-thinking-2025-05-14` beta from your requests.
15691561 

models/sonnet-5-5/migration-guide Changed · +26 / -40 lines

from line 4
44description: Switch to Claude Sonnet 5.5 from earlier Sonnet models or Claude Haiku 4.5 with this migration guide. The guidance to enable Claude Sonnet 5.5 includes settings that return errors, thinking changes, and a checklist for each starting model.
55---
66 
7This guide lists the code changes for moving to Claude Sonnet 5.5 from Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Sonnet 4, Claude 3.7 Sonnet, or Claude Haiku 4.5. Read the first two sections, then read down to the section for your current model. The [migration checklist](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migration-checklist) lists every change by starting model.
7This guide lists the code changes for moving to Claude Sonnet 5.5 from Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Sonnet 4, Claude Sonnet 3.7, or Claude Haiku 4.5. Read the first two sections, then read down to the section for your current model. The [migration checklist](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migration-checklist) lists every change by starting model.
88 
99<Note>
1010 This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), you usually change only your agent’s `model` field. The [Migrating between model versions](https://platform.claude.com/docs/en/managed-agents/migration#migrating-between-model-versions) section of the Managed Agents Migration page has the details.
from line 229
229229* **Pass `thinking` blocks back unchanged** in tool-use loops, including empty ones. See [Preserving thinking blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#preserving-thinking-blocks).
230230* **Revisit `max_tokens`.** It covers thinking plus text, so a response can stop with [`stop_reason: "max_tokens"`](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#stopped-at-max-tokens) before any text. Thinking tokens are billed as output tokens. See [Cost control](https://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost#cost-control).
231231 
232Thinking text is omitted by default. `thinking` blocks arrive with an empty `thinking` field and a `signature`. To get readable summaries, set `display: "summarized"`, the default on Claude Sonnet 4.6 and earlier models and on Claude Haiku 4.5. See [Controlling thinking display](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display).
232The API omits thinking text by default. `thinking` blocks arrive with an empty `thinking` field and a `signature`. To get readable summaries, send `thinking: {"type": "adaptive", "display": "summarized"}`. See [Controlling thinking display](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display).
233233 
234234### Turn off up-front thinking
235235 
236To turn off up-front thinking on Claude Sonnet 5.5, send `thinking: {"type": "between_tools"}`. It’s the lowest thinking setting. Its progress updates between tool calls still come back as `thinking` blocks with their summary text. Without tools, the response contains only text. Claude Sonnet 5 turns thinking off with `thinking: {"type": "disabled"}` instead, and earlier models run without thinking by default. On Claude Sonnet 5.5, `disabled` returns a 400 `invalid_request_error`:
236To turn off up-front thinking on Claude Sonnet 5.5, send `thinking: {"type": "between_tools"}`. It’s the lowest thinking setting. Progress updates between tool calls still come back as `thinking` blocks, with their summaries. Claude Sonnet 5 turns thinking off with `thinking: {"type": "disabled"}` instead, and earlier models run without thinking by default. On Claude Sonnet 5.5, `disabled` returns a 400 `invalid_request_error`:
237237 
238238```text wrap
239239To turn thinking off on this model, send "thinking": {"type": "between_tools"} instead of {"type": "disabled"}. The model does not think before responding. The short updates it writes between tool calls come back as thinking blocks.
from line 461
461461 
462462## Migration checklist by starting model
463463 
464Work down the groups and stop after the one that names your model. On Claude Haiku 4.5, apply every group except “Claude Sonnet 4 or earlier,” ending with “Claude Haiku 4.5 only.”
464Work down the groups and stop after the one that names your model. If you are on Claude Sonnet 5, the first group is the whole list. On Claude Haiku 4.5, apply every group except “Claude Sonnet 4 or earlier,” ending with “Claude Haiku 4.5 only.”
465465 
466466### Every starting model
467467 
from line 468
468468* Change the model ID to `claude-sonnet-5-5`.
469469* [Read content blocks by `type`](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses), and pass `thinking` blocks back unchanged.
470470* To keep running without up-front thinking, send the [lowest thinking setting](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#turn-off-up-front-thinking) at `high` effort or below.
471* If your code ran without thinking, [revisit `max_tokens`](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses).
471472* Replace [forced tool use](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#forced-tool-use) with `auto` and strict tools.
472473* Keep conversations [append-only](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-blocks).
473* Move computer use to the [toolset](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#computer-use-toolset), without the `fine-grained-tool-streaming-2025-05-14` beta header. On Amazon Bedrock, `computer_20251124` also works.
474* Move to the [computer use toolset](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#computer-use-toolset) and replace any `fine-grained-tool-streaming-2025-05-14` beta header with `eager_input_streaming: true` on each user-defined tool that needs it. On Amazon Bedrock, `computer_20251124` also works.
474475* [Pair the advisor tool](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#advisor-tool) with a supported advisor, and expect encrypted advice.
475* Read [text between tool calls](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#text-between-tool-calls) from `thinking` blocks.
476* If you show [text between tool calls](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#text-between-tool-calls), set `display` unless you send `between_tools`, and read the longer notes’ summaries from `thinking` blocks.
476477* [Handle refusals](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#safety-classifiers-and-fallback), and configure fallback.
477478* [Re-run your effort sweep](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#recommended-changes), and re-baseline cost.
478479 
from line 484
483484* Remove `temperature`, `top_p`, and `top_k`.
484485* If you [show thinking text](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#thinking-in-responses), set `display: "summarized"`.
485486* [Recount tokens](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#other-changes-from-claude-sonnet-4-6), and re-budget image tokens.
487* If your code rescales point or bounding-box coordinates, [use Claude Sonnet 5.5’s long-edge and visual-token limits](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#rescale-coordinates-when-you-cannot-pre-resize). Other limits can make the coordinates wrong with no error.
486488 
487489### Claude Sonnet 4.5 or earlier
488490 
from line 492
490492* Parse tool call input with a standard JSON parser.
491493* Set `output_config.effort` explicitly.
492494* Remove any context-window beta header.
493* Remove `interleaved-thinking-2025-05-14`, and replace `fine-grained-tool-streaming-2025-05-14` with `eager_input_streaming`.
495* Remove `interleaved-thinking-2025-05-14`, and replace `fine-grained-tool-streaming-2025-05-14` with `eager_input_streaming: true` on each user-defined tool that needs it.
494496* Move `output_format` to `output_config.format`.
495497 
496498### Claude Sonnet 4 or earlier
from line 858
856858 
857859Integrations that use the toolset need no change. To move to the toolset, replace `computer_20251124` or `computer_20250124` with `computer_toolset_20260801`, and drop that version’s beta header. For the request and agent-loop changes, see [Migrate from `computer_20251124`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124).
858860 
859If you send the `fine-grained-tool-streaming-2025-05-14` beta header, remove it when you move to the toolset. Alongside a toolset entry, it returns a 400 error. Set `eager_input_streaming: true` on each tool that needs it instead.
861If you send the `fine-grained-tool-streaming-2025-05-14` beta header, remove it when you move to the toolset. A request that sends it with a toolset entry returns a 400 error. Set `eager_input_streaming: true` on each user-defined tool that needs it instead.
860862 
861863### The advisor tool accepts fewer advisors
862864 
from line 868
866868 
867869On Claude Sonnet 5.5, notes longer than a sentence or two that the model writes between tool calls come back as [progress-update `thinking` blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates), empty at the default `display`. Shorter remarks stay `text`. On Claude Sonnet 5 and earlier models, all text between tool calls comes back as `text` blocks. No request fails, but an interface that shows those notes stops showing them.
868870 
869With adaptive thinking, set `display` to `"updates"` (beta, `thinking-display-updates-2026-08-18` header) to get the updates alone, or to `"summarized"` to get them mixed with reasoning. Render each non-empty `thinking` block before the `tool_use` block that follows it. With [`between_tools`](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#turn-off-up-front-thinking), the text comes back without `display`. See [User-facing progress updates](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5#user-facing-progress-updates).
871With adaptive thinking, set `display` to `"updates"` to get the updates’ summaries alone or to `"summarized"` to get them mixed with reasoning. The `"updates"` value is in beta and needs the `thinking-display-updates-2026-08-18` beta header. Render each non-empty `thinking` block before the `tool_use` block that follows it. With [`between_tools`](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#turn-off-up-front-thinking), you get the summaries without `display`. See [User-facing progress updates](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5#user-facing-progress-updates).
870872 
871873### Safety classifiers and fallback
872874 
from line 934
932934 ```
933935 
934936 ```bash CLI
935 ant messages create <<'YAML'
936 model: claude-sonnet-4-6
937 max_tokens: 16000
938 thinking:
939 type: enabled
940 budget_tokens: 10000
941 messages:
942 - role: user
943 content: "..."
944 YAML
937 ant messages create \
938 --model claude-sonnet-4-6 \
939 --max-tokens 16000 \
940 --thinking '{type: enabled, budget_tokens: 10000}' \
941 --message '{role: user, content: "..."}'
945942 ```
946943 
947944 ```python Python
from line 960
963960 ```
964961 
965962 ```csharp C#
966 using Anthropic;
967 using Anthropic.Models.Messages;
968 
969963 AnthropicClient client = new();
970964 
971965 var parameters = new MessageCreateParams
from line 1060
10661060 ```
10671061 
10681062 ```bash CLI
1069 ant messages create <<'YAML'
1070 model: claude-sonnet-5-5
1071 max_tokens: 16000
1072 thinking:
1073 type: adaptive
1074 output_config:
1075 effort: high
1076 messages:
1077 - role: user
1078 content: "..."
1079 YAML
1063 ant messages create \
1064 --model claude-sonnet-5-5 \
1065 --max-tokens 16000 \
1066 --thinking '{type: adaptive}' \
1067 --output-config '{effort: high}' \
1068 --message '{role: user, content: "..."}'
10801069 ```
10811070 
10821071 ```python Python
from line 1089
11001089 ```
11011090 
11021091 ```csharp C#
1103 using Anthropic;
1104 using Anthropic.Models.Messages;
1105 
11061092 AnthropicClient client = new();
11071093 
11081094 var parameters = new MessageCreateParams
from line 1186
12001186 
12011187### Migrating from Claude Sonnet 4.5 or earlier
12021188 
1203On Claude Sonnet 4.5, Claude Sonnet 4, or Claude 3.7 Sonnet, first apply every preceding section, then these changes.
1189On Claude Sonnet 4.5, Claude Sonnet 4, or Claude Sonnet 3.7, first apply every preceding section, then these changes.
12041190 
12051191**Prefill returns an error.** Claude Sonnet 5.5 rejects a prefilled last assistant turn with a 400 error, as Claude Sonnet 4.6 and Claude Sonnet 5 do. Claude Sonnet 4.5, Claude Haiku 4.5, and older models accept one. The error reads:
12061192 
from line 1212
12261212 
12271213**Context and output.** Claude Sonnet 5.5 has a larger context window and a higher output limit. See the [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview) model page. Remove any context-window beta header.
12281214 
1229**Beta headers.** Remove `interleaved-thinking-2025-05-14`, because adaptive thinking interleaves automatically. Replace `fine-grained-tool-streaming-2025-05-14` with `eager_input_streaming: true` on each tool that needs it. That header returns a 400 error alongside a computer use or browser use toolset entry. See [Fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming).
1215**Beta headers.** Remove `interleaved-thinking-2025-05-14`, because adaptive thinking interleaves automatically. Replace `fine-grained-tool-streaming-2025-05-14` with `eager_input_streaming: true` on each user-defined tool that needs it. A request that sends that header with a computer use or browser use toolset entry returns a 400 error. See [Fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming).
12301216 
1231**Structured outputs.** The `output_format` parameter is deprecated. To use it anyway, add the `structured-outputs-2025-11-13` beta header. Without it, the API returns a 400 error. Use `output_config.format` instead.
1217**Structured outputs.** Move `output_format` to [`output_config.format`](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#migrating-from-the-beta). The `output_format` parameter is deprecated. A request that sends it without the `structured-outputs-2025-11-13` beta header returns a 400 error.
12321218 
12331219### Migrating from Claude Sonnet 4 or earlier
12341220 

models/sonnet-5-5/whats-new-sonnet-5-5 Changed · +4 / -13 lines

from line 12
1212* [Some computer use tool versions are not supported](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#computer-20251124-is-not-supported).
1313* [The advisor tool rejects four models as advisors](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#advisor-tool-pairings): Claude Opus 4.8, Claude Opus 4.7, Claude Sonnet 5, and Claude Haiku 5.5.
1414 
15One more change alters the response shape without failing any request: [text between tool calls comes back in `thinking` blocks](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#text-between-tool-calls). An application that streams that text to its users goes quiet between tool calls until it sets a `display` value that returns the text, or turns off up-front thinking with `between_tools`.
15One more change alters the response shape without failing any request: the model’s longer notes between tool calls [come back in `thinking` blocks](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#text-between-tool-calls). An application that reads only `text` blocks stops showing those notes.
1616 
1717## New model
1818 
from line 28
2828 
2929### Turn off up-front thinking with `between_tools`
3030 
31To turn off up-front thinking on Claude Sonnet 5.5, send `thinking: {"type": "between_tools"}` instead of `"disabled"`. It’s the lowest thinking setting on this model. It’s available on every platform that offers Claude Sonnet 5.5. The short [progress updates](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates) the model writes between tool calls still come back as `thinking` blocks with their summary text. Pass those blocks back unchanged with the rest of the assistant turn. A progress-update block you send back gives the model the full note it wrote, not the summary. If your requests don’t use tools, the response contains only text, as with `disabled` on Claude Sonnet 5.
31To turn off up-front thinking on Claude Sonnet 5.5, send `thinking: {"type": "between_tools"}` instead of `"disabled"`. It’s the lowest thinking setting on this model. It’s available on every platform that offers Claude Sonnet 5.5. The [progress updates](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates) the model writes between tool calls still come back as `thinking` blocks, with their summaries. Pass those blocks back unchanged with the rest of the assistant turn.
3232 
3333On Claude Sonnet 5.5, a request that sends `thinking: {"type": "disabled"}` returns a 400 `invalid_request_error` whose message points to `between_tools`.
3434 
from line 125
125125For guidance on each of the following, see [Prompting Claude Sonnet 5.5](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5). Claude Sonnet 5.5 differs from Claude Sonnet 5 in these ways, which show up without any code change:
126126 
127127* **Effort levels are recalibrated.** An [effort](https://platform.claude.com/docs/en/build-with-claude/effort) level doesn’t produce the same amount of thinking as it did on Claude Sonnet 5. Re-run your effort sweep rather than carrying a setting over. Start at `high` unless your workload is agentic or latency-sensitive. For agentic coding and multistep tool use, start at `medium` for well-specified tasks and move to `high` for harder or longer ones. For chat and other latency-sensitive work, start at `medium` or `low`.
128* **Text between tool calls comes back in thinking blocks.** Between tool calls, notes longer than a sentence or two come back as [progress-update `thinking` blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates). Shorter remarks stay `text`. At the default `display: "omitted"`, the progress-update blocks’ text is empty, so an application that streams those notes to its users goes quiet between tool calls, with no error. If you [turn off up-front thinking with `between_tools`](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#turn-off-up-front-thinking), the text comes back. To receive it, see [Text between tool calls is returned in thinking blocks](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#text-between-tool-calls) in the migration guide.
128* **Text between tool calls comes back in thinking blocks.** Between tool calls, notes longer than a sentence or two come back as [progress-update `thinking` blocks](https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates). Shorter remarks stay `text`. At the default `display: "omitted"`, the progress-update blocks’ text is empty. An application that streams those notes to its users stops showing them with no error. To receive summaries of those notes, see [Text between tool calls is returned in thinking blocks](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#text-between-tool-calls) in the migration guide.
129129* **Safeguard categories.** The model’s safeguards can decline a request in five [`stop_details` categories](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#refusal-response). `"cyber"` means the request could enable cyber harm. `"bio"` means it could enable biological harm. `"frontier_llm"` means it could help with the development of competing AI models. `"reasoning_extraction"` means it asks the model to reproduce its internal reasoning in the response text. `"general_harms"` means it falls under another usage-policy area. See [Refusals, fallback, and billing](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#refusals-fallback-and-billing).
130130 
131131## Refusals, fallback, and billing
from line 190
190190 ```
191191</CodeGroup>
192192 
193Then check six things:
194 
1951. If your code turns thinking off with `disabled`, send `between_tools` instead, at `high` effort or below.
1962. Replace `tool_choice` types `any` and `tool` with `auto` plus [strict tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/strict-tool-use).
1973. Keep conversations append-only. A request that replays a Claude Sonnet 5.5 thinking block after an edit to earlier history can return a 400 error. See [Thinking blocks are tied to the model and the conversation](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#thinking-blocks-are-tied-to-the-model-that-produced-them).
1984. If you use computer use through `computer_20251124`, [move to the toolset](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#migrate-from-computer-20251124). On Amazon Bedrock, `computer_20251124` also works.
1995. If you use the advisor tool with a Claude Opus 4.8, Claude Opus 4.7, Claude Sonnet 5, or Claude Haiku 5.5 advisor, [switch to an advisor that Claude Sonnet 5.5 accepts](https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5#advisor-tool-pairings).
2006. If your interface shows the text between tool calls, set `thinking.display` when you use adaptive thinking. With `between_tools`, the text comes back without it. See [Text between tool calls is returned in thinking blocks](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#text-between-tool-calls).
201 
202The [Claude Sonnet 5.5 migration guide](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide) has step-by-step instructions from Claude Sonnet 5 and earlier models, and the full checklist.
193Then, make the changes under [Every starting model](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migration-checklist-from-claude-sonnet-5) in the migration guide’s checklist.
203194 
204195## Next steps
205196 

agents-and-tools/tool-use/browser-use-tool Changed · +1 / -1 lines

from line 303
303303 
304304 <Step title="Run the calls in order and return results">
305305 * Iterate every `tool_use` block in `response.content` (don’t assume there’s exactly one) and run them sequentially, in the order they appear, because later calls usually depend on earlier ones.
306 * Return one `tool_result` for each block in a new `user` message, matched by `tool_use_id`, and echo `"toolset_name": "browser"` on each. Answer every call, or the next request is rejected.
306 * Return one `tool_result` for each block in a new `user` message, matched by `tool_use_id`, and echo each block’s `toolset_name` on its result. Answer every call, or the API rejects the next request.
307307 * If a call fails, return `is_error: true` with a text description for that block, then apply the halt rule in [Batch actions](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#batch-actions) to every later block in the turn.
308308 </Step>
309309 

api/migration-2026-10-21 Changed · +1 / -1 lines

from line 877
877877 
878878<Tabs exclude="shell:cURL">
879879 <Tab title="CLI">
880 If `--base-url` or `ANTHROPIC_BASE_URL` points `ant` at a proxy or gateway that reads `X-Api-Key`, change it to read the key from `Authorization`. `ant` has no flag or environment variable for adding a header of your own, so it can’t send `X-Api-Key`.
880 If `--base-url` or `ANTHROPIC_BASE_URL` points `ant` at a proxy or gateway that reads `X-Api-Key`, change it to read the key from `Authorization`. If you can’t change it, see [Custom headers](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#custom-headers).
881881 </Tab>
882882 
883883 <Tab title="Python">

build-with-claude/prompt-caching Changed · +1 / -1 lines

from line 614
614614On the Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), and [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), the minimum cacheable prompt length is:
615615 
616616* 512 tokens for Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Fable 5.1, [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Fable 5, [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), and Claude Haiku 5.5
617* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 (retired, except on [Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy)), Claude Opus 4.1, Claude Opus 4, and Claude Sonnet 4
617* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.1, Claude Opus 4, and Claude Sonnet 4
618618* 2,048 tokens for [Claude Mythos Preview](https://anthropic.com/glasswing) and Claude Opus 4.7
619619* 4,096 tokens for Claude Opus 4.6, Claude Opus 4.5 ([deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview)), and Claude Haiku 4.5
620620 

cli-sdks-libraries/cli/scripting Changed · +1 / -1 lines

from line 90
9090```
9191 
9292```text Output wrap
93GET "https://api.anthropic.com/v1/agents/bogus?beta=true": 404 Not Found
93GET "https://api.anthropic.com/v1/agents/bogus": 404 Not Found
9494Agent not found.
9595```
9696 

manage-claude/compliance-api Changed · +3 / -1 lines

from line 75
7575 
7676## Versioning
7777 
78Send the `anthropic-version` header on every request; see [API versions](https://platform.claude.com/docs/en/api/versioning) for the available versions.
78You must send the `anthropic-version` header on every request. Set it to an available version, for example, `2026-10-21`; see [API versions](https://platform.claude.com/docs/en/api/versioning) for the list.
79 
80If the `anthropic-version` value is empty or is not an available version, every endpoint returns a [400 `invalid_request_error`](https://platform.claude.com/docs/en/manage-claude/compliance-errors#missing-or-invalid-version-header). If a request omits the header, some endpoints return a 400 `invalid_request_error`, and the others process it as version `2023-06-01`. Always send the header, so that the same code works on every endpoint.
7981 
8082***
8183 

manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency Changed · +1 / -1 lines

from line 41
4141 
4242Access Transparency gives you a record whenever someone at Anthropic views your data. These records come through as `anthropic_access` events in your Compliance API Activity Feed. For the boundaries of what’s recorded, see [what Access Transparency covers](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-covers).
4343 
44For Claude Platform customers using Enterprise Frontier Safeguards or Enterprise Data Controls, Access Transparency turns on for your entire organization the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. Once it turns on, it starts recording within 2 hours.
44If you use Enterprise Frontier Safeguards or Enterprise Data Controls on Claude Platform or Claude Models on Google Cloud (Anthropic managed), Access Transparency turns on for your entire organization the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. Once it turns on, it starts recording within 2 hours.
4545 
4646The Compliance API must be on for you to read these events.
4747 

manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed Changed · +2 / -2 lines

from line 72
7272 <Accordion title="You can’t turn off Access Transparency once it’s on">
7373 [Access Transparency](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#check-access-transparency) records Anthropic personnel access to [the data that it covers](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-covers). When it turns on depends on where you use Claude:
7474 
75 * On Claude Platform, it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
76 * On Claude Models on Google Cloud (Anthropic managed) or Claude Platform on AWS, it turns on when you get access.
75 * On Claude Platform or Claude Models on Google Cloud (Anthropic managed), it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
76 * On Claude Platform on AWS, it turns on when you get access.
7777 
7878 Once it’s on, it’s on for every workspace in the organization. If another Claude Console organization under the same [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need) has Access Transparency, now or later, you can’t turn it off in that organization either. An organization linked to your Verification Portal profile, now or later, can also get Access Transparency. To find out which of your organizations have Access Transparency, ask your Anthropic account team.
7979 </Accordion>

manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws Changed · +2 / -2 lines

from line 92
9292 <Accordion title="You can’t turn off Access Transparency once it’s on">
9393 [Access Transparency](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#check-access-transparency) records Anthropic personnel access to [the data that it covers](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-covers). When it turns on depends on where you use Claude:
9494 
95 * On Claude Platform, it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
96 * On Claude Models on Google Cloud (Anthropic managed) or Claude Platform on AWS, it turns on when you get access.
95 * On Claude Platform or Claude Models on Google Cloud (Anthropic managed), it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
96 * On Claude Platform on AWS, it turns on when you get access.
9797 
9898 Once it’s on, it’s on for every workspace in the organization. If another Claude Console organization under the same [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need) has Access Transparency, now or later, you can’t turn it off in that organization either. An organization linked to your Verification Portal profile, now or later, can also get Access Transparency. To find out which of your organizations have Access Transparency, ask your Anthropic account team.
9999 </Accordion>

manage-claude/enterprise-frontier-safeguards/setup-console Changed · +2 / -2 lines

from line 83
8383 <Accordion title="You can’t turn off Access Transparency once it’s on">
8484 [Access Transparency](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#check-access-transparency) records Anthropic personnel access to [the data that it covers](https://platform.claude.com/docs/en/manage-claude/access-transparency#what-access-transparency-covers). When it turns on depends on where you use Claude:
8585 
86 * On Claude Platform, it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
87 * On Claude Models on Google Cloud (Anthropic managed) or Claude Platform on AWS, it turns on when you get access.
86 * On Claude Platform or Claude Models on Google Cloud (Anthropic managed), it turns on the first time you start connecting a bucket, attach a customer-managed key, or turn off Anthropic Human Review. If a workspace already has a key, a bucket, or Anthropic Human Review off, Access Transparency turns on when you get access.
87 * On Claude Platform on AWS, it turns on when you get access.
8888 
8989 Once it’s on, it’s on for every workspace in the organization. If another Claude Console organization under the same [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need) has Access Transparency, now or later, you can’t turn it off in that organization either. An organization linked to your Verification Portal profile, now or later, can also get Access Transparency. To find out which of your organizations have Access Transparency, ask your Anthropic account team.
9090 </Accordion>

models/opus-5-5/whats-new-opus-5-5 Changed · +1 / -1 lines

from line 11
1111* [Thinking blocks are tied to the model and the conversation](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5#thinking-blocks-are-tied-to-the-model-that-produced-them).
1212* [Some computer use tool versions are not supported](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5#computer-20251124-is-not-supported).
1313 
14The first three also apply on Claude Fable 5.1. A further change alters the response shape without failing any request: [text between tool calls comes back in `thinking` blocks](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5#text-between-tool-calls) whose text is empty at the default `display` setting. An application that streams that text to its users as progress updates goes quiet between tool calls until it sets a `display` value that returns the text.
14A further change alters the response shape without failing any request: [text between tool calls comes back in `thinking` blocks](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5#text-between-tool-calls). At the default `display` setting, their `thinking` field is empty. An application that reads only `text` blocks misses that text.
1515 
1616## New model
1717 
Feedback