One read of Claude Developer Platformapi-20261120T193709Z
650 pages moved out of 936 read.
Pages moved
650
significant first
Pages read
936
in this capture
Captured
19:37 UTC
Corpus hash
721918d8c137
corpus-hash
What this read moved
226-250 of 650, page 10 of 26This capture is too large to show at once. Changes 226-250 of 650 are below, significant first; the rest are on the following screens.
build-with-claude/skills-guide Changed · +20 / -20 lines
from line 43
4343
4444You can use Skills from two sources:
4545
46| Aspect | Anthropic Skills | Custom Skills |
47| ------------------ | ------------------------------------------ | ------------------------------------------------------------------------------------------------- |
48| **Type value** | `anthropic` | `custom` |
49| **Skill IDs** | Short names: `pptx`, `xlsx`, `docx`, `pdf` | Generated: `skill_01AbCdEfGhIjKlMnOpQrStUv` |
50| **Version format** | Date-based: `20251013` or `latest` | Version ID: `skver_01AbCdEfGhIjKlMnOpQrStUv` or `latest` |
51| **Management** | Pre-built and maintained by Anthropic | Upload and manage through the [Skills API](https://platform.claude.com/docs/en/api/skills/create) |
52| **Availability** | Available to all users | Private to your workspace |
46| Aspect | Anthropic Skills | Custom Skills |
47| ----- | ----- | ----- |
48| **Type value** | `anthropic` | `custom` |
49| **Skill IDs** | Short names: `pptx`, `xlsx`, `docx`, `pdf` | Generated: `skill_01AbCdEfGhIjKlMnOpQrStUv` |
50| **Version format** | Date-based: `20251013` or `latest` | Version ID: `skver_01AbCdEfGhIjKlMnOpQrStUv` or `latest` |
51| **Management** | Pre-built and maintained by Anthropic | Upload and manage through the [Skills API](https://platform.claude.com/docs/en/api/skills/create) |
52| **Availability** | Available to all users | Private to your workspace |
5353
5454Both skill sources are returned by the [List Skills endpoint](https://platform.claude.com/docs/en/api/skills/list) (use the `source` parameter to filter). The integration shape and execution environment are identical. The only difference is where the Skills come from and how they’re managed.
5555
from line 4503
45034503
45044504The Skills API is out of beta and needs no beta header. Migrating off `skills-2025-10-02` is optional: requests that send it keep working and keep returning the beta response shapes, so an existing integration keeps working until you change it. Removing the header switches those requests to the shapes documented on this page:
45054505
4506| | With `skills-2025-10-02` | Without the header |
4507| ------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
4508| Skill label | `display_title` (up to 64 characters, unique per workspace) | `display_name` (up to 255 characters, not unique); derived from the `SKILL.md` `name` when omitted |
4509| Newest version pointer | `latest_version`, an epoch-microsecond string such as `"1759178010641129"` | `latest_version_id`, a version ID such as `"skver_01AbCdEfGhIjKlMnOpQrStUv"`; `GET /v1/skills/{skill_id}/versions/latest` resolves it in one call |
4510| Version identifier in URLs | Epoch-microsecond string | Version ID (`skver_...`). IDs captured under the beta with the `skill_version_` prefix are accepted as input. |
4511| Version object | Includes `directory` (always equal to the Skill `name`) | No `directory` field |
4512| `source` | A string, `"custom"` or `"anthropic"` | An object, for example `{"type": "custom"}`; the example catalog value is `"anthropic_example"` |
4513| List responses | `{ data, has_more, next_page }` | `{ data, next_page }`; `limit` from 1 to 1,000 (default 20) |
4514| Versions list order | Oldest first | Newest first, default `limit` 20. Page cursors from one shape are not valid on the other. |
4515| Deleting a Skill | Returns a 400 error while any version exists | Deletes the Skill and all of its versions |
4516| Deleting a Skill’s only version | Allowed, leaving a Skill with no versions | Returns a 400 error; upload a replacement version first, or delete the Skill |
4517| Upload layout | Files must sit inside a top-level directory whose name matches the Skill `name` | `SKILL.md` may sit at the root of the upload; stored paths are the same either way |
4518| Response types | `CreateSkillResponse`, `GetSkillResponse`, and one type per operation | `Skill`, `SkillVersion`, `DeletedSkill`, `DeletedSkillVersion` |
4506| | With `skills-2025-10-02` | Without the header |
4507| ----- | ----- | ----- |
4508| Skill label | `display_title` (up to 64 characters, unique per workspace) | `display_name` (up to 255 characters, not unique); derived from the `SKILL.md` `name` when omitted |
4509| Newest version pointer | `latest_version`, an epoch-microsecond string such as `"1759178010641129"` | `latest_version_id`, a version ID such as `"skver_01AbCdEfGhIjKlMnOpQrStUv"`; `GET /v1/skills/{skill_id}/versions/latest` resolves it in one call |
4510| Version identifier in URLs | Epoch-microsecond string | Version ID (`skver_...`). IDs captured under the beta with the `skill_version_` prefix are accepted as input. |
4511| Version object | Includes `directory` (always equal to the Skill `name`) | No `directory` field |
4512| `source` | A string, `"custom"` or `"anthropic"` | An object, for example `{"type": "custom"}`; the example catalog value is `"anthropic_example"` |
4513| List responses | `{ data, has_more, next_page }` | `{ data, next_page }`; `limit` from 1 to 1,000 (default 20) |
4514| Versions list order | Oldest first | Newest first, default `limit` 20. Page cursors from one shape are not valid on the other. |
4515| Deleting a Skill | Returns a 400 error while any version exists | Deletes the Skill and all of its versions |
4516| Deleting a Skill’s only version | Allowed, leaving a Skill with no versions | Returns a 400 error; upload a replacement version first, or delete the Skill |
4517| Upload layout | Files must sit inside a top-level directory whose name matches the Skill `name` | `SKILL.md` may sit at the root of the upload; stored paths are the same either way |
4518| Response types | `CreateSkillResponse`, `GetSkillResponse`, and one type per operation | `Skill`, `SkillVersion`, `DeletedSkill`, `DeletedSkillVersion` |
45194519
45204520To migrate:
45214521
build-with-claude/streaming Changed · +4 / -4 lines
from line 1573
15731573
15741574* Availability: Available
15751575
1576| Status | Cloud platforms |
1577| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1578| Available | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
1579| Available<sup>1</sup> | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) |
1576| Status | Cloud platforms |
1577| ----- | ----- |
1578| Available | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
1579| Available<sup>1</sup> | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) |
15801580
158115811. Amazon Bedrock’s `bedrock-runtime` endpoint does not stream plain server-sent events.
15821582
build-with-claude/structured-outputs Changed · +19 / -19 lines
from line 631
631631 <Accordion title="Type inference">
632632 The SDK maps native PHP 8 property types to JSON Schema:
633633
634 | PHP type | JSON Schema |
635 | ------------------------------------------ | ---------------------------------- |
636 | `string` | `"string"` |
637 | `int` | `"integer"` |
638 | `float` | `"number"` |
639 | `bool` | `"boolean"` |
640 | `array` | `"array"` (see the following note) |
641 | `?type` (nullable) | Optional field |
642 | Class implementing `StructuredOutputModel` | Nested object |
634 | PHP type | JSON Schema |
635 | ----- | ----- |
636 | `string` | `"string"` |
637 | `int` | `"integer"` |
638 | `float` | `"number"` |
639 | `bool` | `"boolean"` |
640 | `array` | `"array"` (see the following note) |
641 | `?type` (nullable) | Optional field |
642 | Class implementing `StructuredOutputModel` | Nested object |
643643
644644 For `array` properties, the SDK adds an `items` schema only when the element type is a nested `StructuredOutputModel`, declared with `#[Constrained(itemClass: MyModel::class)]` or a `/** @var MyModel[] */` docblock. Arrays of scalars (`string[]`, `int[]`) emit an unconstrained `{"type":"array"}`.
645645
from line 3019
30193019
30203020The following limits apply to all requests with `output_config.format` or `strict: true`:
30213021
3022| Limit | Value | Description |
3023| --------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3024| Strict tools per request | 20 | Maximum number of tools with `strict: true`. Non-strict tools don’t count toward this limit. |
3025| Optional parameters | 24 | Total optional parameters across all strict tool schemas and JSON output schemas. Each parameter not listed in `required` counts toward this limit. |
3026| Parameters with union types | 16 | Total parameters that use `anyOf` or type arrays (for example, `"type": ["string", "null"]`) across all strict schemas. These are especially expensive because they create exponential compilation cost. |
3022| Limit | Value | Description |
3023| ----- | ----- | ----- |
3024| Strict tools per request | 20 | Maximum number of tools with `strict: true`. Non-strict tools don’t count toward this limit. |
3025| Optional parameters | 24 | Total optional parameters across all strict tool schemas and JSON output schemas. Each parameter not listed in `required` counts toward this limit. |
3026| Parameters with union types | 16 | Total parameters that use `anyOf` or type arrays (for example, `"type": ["string", "null"]`) across all strict schemas. These are especially expensive because they create exponential compilation cost. |
30273027
30283028<Note>
30293029 These limits apply to the combined total across all strict schemas in a single request. For example, if you have four strict tools with six optional parameters each, you’ll reach the 24-parameter limit even though no single tool seems complex.
from line 3083
30833083
30843084* Availability: Available
30853085
3086| Status | Cloud platforms | Models |
3087| --------- | ----------------------- | ----------------------------------------------------------------- |
3086| Status | Cloud platforms | Models |
3087| ----- | ----- | ----- |
30883088| Available | All supported platforms | [All models](https://platform.claude.com/docs/en/models/overview) |
30893089
30903090#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 3095
30953095
30963096[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
30973097
3098| Item | Zero data retention | HIPAA |
3099| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3100| Status | Eligible (qualified; excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
3098| Item | Zero data retention | HIPAA |
3099| ----- | ----- | ----- |
3100| Status | Eligible (qualified; excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
31013101| Details | Your prompts and Claude’s outputs are not stored. Only the JSON schema is cached, for up to 24 hours since last use. This also covers strict tool use (`strict: true` on tools), which uses the same grammar pipeline. [Learn more](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#data-retention) | PHI must not be included in JSON schema definitions; see PHI handling guidelines. [Learn more](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#phi-handling-guidelines) |
31023102
31033103Applicable endpoints:
build-with-claude/task-budgets Changed · +25 / -25 lines
from line 379
379379
380380Putting the three requests side by side makes the distinction between payload size and budget spend explicit:
381381
382| Request | Request payload (approx. input tokens you sent) | Tokens counted against budget this request | Budget `remaining` after |
383| --------- | ----------------------------------------------- | --------------------------------------------------------- | ------------------------ |
384| 1 | \~20 | 5,000 (thinking + `tool_use`) | \~95,000 |
385| 2 | \~7,800 (messages from request 1 + tool result) | 6,800 (2,800 tool result + 4,000 thinking and `tool_use`) | \~88,200 |
386| 3 | \~13,000 (full history + second tool result) | 7,200 (1,200 tool result + 6,000 `text`) | \~81,000 |
387| **Total** | **\~20,820 sent across requests** | **19,000 counted against budget** | N/A |
382| Request | Request payload (approx. input tokens you sent) | Tokens counted against budget this request | Budget `remaining` after |
383| ----- | ----- | ----- | ----- |
384| 1 | \~20 | 5,000 (thinking + `tool_use`) | \~95,000 |
385| 2 | \~7,800 (messages from request 1 + tool result) | 6,800 (2,800 tool result + 4,000 thinking and `tool_use`) | \~88,200 |
386| 3 | \~13,000 (full history + second tool result) | 7,200 (1,200 tool result + 6,000 `text`) | \~81,000 |
387| **Total** | **\~20,820 sent across requests** | **19,000 counted against budget** | N/A |
388388
389389Your client sent the original user message three times and the first assistant message twice, but each was counted once. The budget spent 19,000 of 100,000 tokens, even though the cumulative payload your client transmitted was larger and the prompt-cached input on requests 2 and 3 was larger still.
390390
from line 667
667667
668668## Feature support
669669
670| Model | Support |
671| ----------------- | ------------------------------------------- |
672| Claude Fable 5.2 | Beta (set `task-budgets-2026-03-13` header) |
670| Model | Support |
671| ----- | ----- |
672| Claude Fable 5.2 | Beta (set `task-budgets-2026-03-13` header) |
673673| Claude Mythos 5.2 | Beta (set `task-budgets-2026-03-13` header) |
674| Claude Fable 5.1 | Beta (set `task-budgets-2026-03-13` header) |
674| Claude Fable 5.1 | Beta (set `task-budgets-2026-03-13` header) |
675675| Claude Mythos 5.1 | Beta (set `task-budgets-2026-03-13` header) |
676| Claude Opus 5.5 | Beta (set `task-budgets-2026-03-13` header) |
677| Claude Opus 5 | Beta (set `task-budgets-2026-03-13` header) |
678| Claude Fable 5 | Beta (set `task-budgets-2026-03-13` header) |
679| Claude Mythos 5 | Beta (set `task-budgets-2026-03-13` header) |
676| Claude Opus 5.5 | Beta (set `task-budgets-2026-03-13` header) |
677| Claude Opus 5 | Beta (set `task-budgets-2026-03-13` header) |
678| Claude Fable 5 | Beta (set `task-budgets-2026-03-13` header) |
679| Claude Mythos 5 | Beta (set `task-budgets-2026-03-13` header) |
680680| Claude Sonnet 5.5 | Beta (set `task-budgets-2026-03-13` header) |
681| Claude Sonnet 5 | Not supported |
682| Claude Haiku 5.5 | Beta (set `task-budgets-2026-03-13` header) |
683| Claude Opus 4.8 | Beta (set `task-budgets-2026-03-13` header) |
684| Claude Opus 4.7 | Beta (set `task-budgets-2026-03-13` header) |
685| Claude Opus 4.6 | Not supported |
686| Claude Sonnet 4.6 | Not supported |
687| Claude Haiku 4.5 | Not supported |
681| Claude Sonnet 5 | Not supported |
682| Claude Haiku 5.5 | Beta (set `task-budgets-2026-03-13` header) |
683| Claude Opus 4.8 | Beta (set `task-budgets-2026-03-13` header) |
684| Claude Opus 4.7 | Beta (set `task-budgets-2026-03-13` header) |
685| Claude Opus 4.6 | Not supported |
686| Claude Sonnet 4.6 | Not supported |
687| Claude Haiku 4.5 | Not supported |
688688
689689Task budgets are not supported on [Claude Code](https://code.claude.com/docs/en/overview) or Cowork surfaces. Use task budgets directly through the Messages API on a [supported model](https://platform.claude.com/docs/en/build-with-claude/task-budgets#feature-support).
690690
from line 719
719719* Availability: Available
720720* Usage: Advisory: set in `output_config.task_budget`. The API does not stop Claude at the budget.
721721
722| Status | Cloud platforms | Models |
723| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
724| Beta | 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), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview) |
725| Beta | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview) |
722| Status | Cloud platforms | Models |
723| ----- | ----- | ----- |
724| Beta | 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), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview) |
725| Beta | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview) |
726726
727727#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
728728
build-with-claude/thinking Changed · +53 / -53 lines
from line 82
8282
8383On most models, thinking is on by default or needs only one parameter. The following table shows what each model does with each `thinking` value a request can send. A 400 error means the API rejects the request, and [Troubleshooting thinking](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting) has each error and its fix.
8484
85| Model | No `thinking` field | `"adaptive"` | `"enabled"` with `budget_tokens` | `"between_tools"` | `"disabled"` |
86| --------------------- | ------------------- | ----------------- | -------------------------------- | ----------------------------------------------- | -------------------------------------- |
87| Claude Opus 5.5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
88| Claude Sonnet 5.5 | Adaptive thinking | Adaptive thinking | 400 error | Up-front thinking off at `high` effort or below | 400 error |
89| Claude Haiku 5.5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off at `high` effort or below |
90| Claude Fable 5.2 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
91| Claude Mythos 5.2 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
92| Claude Fable 5.1 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
93| Claude Mythos 5.1 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
94| Claude Fable 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
95| Claude Mythos 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
96| Claude Opus 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off at `high` effort or below |
97| Claude Sonnet 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off |
98| Claude Opus 4.8 | Thinking off | Adaptive thinking | 400 error | 400 error | Thinking off |
99| Claude Opus 4.7 | Thinking off | Adaptive thinking | 400 error | 400 error | Thinking off |
100| Claude Mythos Preview | Adaptive thinking | Adaptive thinking | Extended thinking | 400 error | 400 error |
101| Claude Opus 4.6 | Thinking off | Adaptive thinking | Extended thinking (deprecated) | 400 error | Thinking off |
102| Claude Sonnet 4.6 | Thinking off | Adaptive thinking | Extended thinking (deprecated) | 400 error | Thinking off |
103| Claude Opus 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
104| Claude Sonnet 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
105| Claude Haiku 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
85| Model | No `thinking` field | `"adaptive"` | `"enabled"` with `budget_tokens` | `"between_tools"` | `"disabled"` |
86| ----- | ----- | ----- | ----- | ----- | ----- |
87| Claude Opus 5.5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
88| Claude Sonnet 5.5 | Adaptive thinking | Adaptive thinking | 400 error | Up-front thinking off at `high` effort or below | 400 error |
89| Claude Haiku 5.5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off at `high` effort or below |
90| Claude Fable 5.2 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
91| Claude Mythos 5.2 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
92| Claude Fable 5.1 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
93| Claude Mythos 5.1 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
94| Claude Fable 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
95| Claude Mythos 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | 400 error |
96| Claude Opus 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off at `high` effort or below |
97| Claude Sonnet 5 | Adaptive thinking | Adaptive thinking | 400 error | 400 error | Thinking off |
98| Claude Opus 4.8 | Thinking off | Adaptive thinking | 400 error | 400 error | Thinking off |
99| Claude Opus 4.7 | Thinking off | Adaptive thinking | 400 error | 400 error | Thinking off |
100| Claude Mythos Preview | Adaptive thinking | Adaptive thinking | Extended thinking | 400 error | 400 error |
101| Claude Opus 4.6 | Thinking off | Adaptive thinking | Extended thinking (deprecated) | 400 error | Thinking off |
102| Claude Sonnet 4.6 | Thinking off | Adaptive thinking | Extended thinking (deprecated) | 400 error | Thinking off |
103| Claude Opus 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
104| Claude Sonnet 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
105| Claude Haiku 4.5 | Thinking off | 400 error | Extended thinking | 400 error | Thinking off |
106106
107107In the table, “at `high` effort or below” means the request works at `low`, `medium`, and `high` effort and returns a 400 error at `xhigh` or `max`.
108108
from line 1016
10161016
10171017What a progress-update block contains depends on [`display`](https://platform.claude.com/docs/en/build-with-claude/thinking#controlling-thinking-display):
10181018
1019| `display` | Reasoning blocks | Progress-update blocks |
1020| ----------------------------------------- | ---------------------- | -------------------------------------------------------- |
1021| `"omitted"` (the default on these models) | Empty `thinking` field | Empty `thinking` field |
1022| `"updates"` (beta) | Empty `thinking` field | Summary text |
1023| `"summarized"` | Summary text | Summary text, not distinguishable from a reasoning block |
1019| `display` | Reasoning blocks | Progress-update blocks |
1020| ----- | ----- | ----- |
1021| `"omitted"` (the default on these models) | Empty `thinking` field | Empty `thinking` field |
1022| `"updates"` (beta) | Empty `thinking` field | Summary text |
1023| `"summarized"` | Summary text | Summary text, not distinguishable from a reasoning block |
10241024
10251025On Claude Sonnet 5.5, the lowest thinking setting is `thinking: {type: "between_tools"}`. It turns off up-front thinking, and each progress update comes back with its summary text, as it would under `display: "updates"`. `between_tools` is accepted only at [effort](https://platform.claude.com/docs/en/build-with-claude/effort) `high` or below. At `xhigh` or `max`, a request with it returns a 400 error. `between_tools` takes no other field: `display`, `budget_tokens`, or `block_binding` sent with it returns a 400 error. The setting works on every platform that offers Claude Sonnet 5.5. Pass the blocks back unchanged: a progress-update block you send back gives the model the full note it wrote, not the summary.
10261026
from line 1237
12371237
12381238Each model accepts `max_tokens` up to the ceiling listed here. On the [Message Batches API](https://platform.claude.com/docs/en/build-with-claude/batch-processing#extended-output-beta), the `output-300k-2026-03-24` [beta header](https://platform.claude.com/docs/en/api/beta-headers) raises that ceiling for the models with a batches ceiling listed.
12391239
1240| Model | Max output tokens | Batches beta ceiling |
1241| :-------------------- | :---------------- | :------------------- |
1242| Claude Fable 5.2 | 128K | — |
1243| Claude Mythos 5.2 | 128K | — |
1244| Claude Fable 5.1 | 128K | — |
1245| Claude Mythos 5.1 | 128K | — |
1246| Claude Fable 5 | 128K | — |
1247| Claude Mythos 5 | 128K | — |
1248| Claude Mythos Preview | 128K | Not available |
1249| Claude Opus 5.5 | 128K | 300K |
1250| Claude Opus 5 | 128K | 300K |
1251| Claude Opus 4.8 | 128K | 300K |
1252| Claude Opus 4.7 | 128K | 300K |
1253| Claude Opus 4.6 | 128K | 300K |
1254| Claude Opus 4.5 | 64K | Not available |
1255| Claude Sonnet 5.5 | 128K | 300K |
1256| Claude Sonnet 5 | 128K | 300K |
1257| Claude Sonnet 4.6 | 128K | 300K |
1258| Claude Sonnet 4.5 | 64K | Not available |
1259| Claude Haiku 5.5 | 128K | 300K |
1260| Claude Haiku 4.5 | 64K | Not available |
1240| Model | Max output tokens | Batches beta ceiling |
1241| :---- | :---- | :---- |
1242| Claude Fable 5.2 | 128K | — |
1243| Claude Mythos 5.2 | 128K | — |
1244| Claude Fable 5.1 | 128K | — |
1245| Claude Mythos 5.1 | 128K | — |
1246| Claude Fable 5 | 128K | — |
1247| Claude Mythos 5 | 128K | — |
1248| Claude Mythos Preview | 128K | Not available |
1249| Claude Opus 5.5 | 128K | 300K |
1250| Claude Opus 5 | 128K | 300K |
1251| Claude Opus 4.8 | 128K | 300K |
1252| Claude Opus 4.7 | 128K | 300K |
1253| Claude Opus 4.6 | 128K | 300K |
1254| Claude Opus 4.5 | 64K | Not available |
1255| Claude Sonnet 5.5 | 128K | 300K |
1256| Claude Sonnet 5 | 128K | 300K |
1257| Claude Sonnet 4.6 | 128K | 300K |
1258| Claude Sonnet 4.5 | 64K | Not available |
1259| Claude Haiku 5.5 | 128K | 300K |
1260| Claude Haiku 4.5 | 64K | Not available |
12611261
12621262To read a model’s limits programmatically, see [Using the Models API](https://platform.claude.com/docs/en/models/overview#using-the-models-api).
12631263
from line 1300
13001300* Availability: On by default
13011301* Usage: `thinking: {"type": "disabled"}` turns it off on models that accept that value. Where it is off by default, set `thinking` to turn it on.
13021302
1303| Status | Cloud platforms |
1304| --------- | ----------------------- |
1303| Status | Cloud platforms |
1304| ----- | ----- |
13051305| Available | All supported platforms |
13061306
13071307#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 1309
13091309* Availability: Always on
13101310* Usage: Managed Agents sets the thinking configuration; the agent definition has no `thinking` field.
13111311
1312| Status | Cloud platforms |
1313| --------- | ----------------------- |
1312| Status | Cloud platforms |
1313| ----- | ----- |
13141314| Available | All supported platforms |
13151315
13161316### Data handling
from line 1317
13171317
13181318[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
13191319
1320| Item | Zero data retention | HIPAA |
1321| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
1320| Item | Zero data retention | HIPAA |
1321| ----- | ----- | ----- |
13221322| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
13231323
13241324Applicable endpoints:
build-with-claude/thinking-steering-and-cost Changed · +13 / -13 lines
from line 47
4747
4848Effort is the primary steering lever for thinking. Each level sets a different default for how often Claude thinks and how deeply:
4949
50| Effort level | Thinking behavior |
51| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
52| `max` | Claude thinks the most readily and at the greatest depth, with no constraint on thinking length. |
53| `xhigh` | Claude thinks more readily and at greater depth than at `high`, suited to extended exploration. |
54| `high` (default on most models) | Claude thinks on most requests that benefit from it. Provides deep reasoning on complex tasks. |
55| `medium` (default on Claude Opus 5.5 and Claude Haiku 5.5) | Claude uses moderate thinking. Might skip thinking for simple queries. |
56| `low` | Claude minimizes thinking. Skips thinking for simple tasks where speed matters most. |
50| Effort level | Thinking behavior |
51| ----- | ----- |
52| `max` | Claude thinks the most readily and at the greatest depth, with no constraint on thinking length. |
53| `xhigh` | Claude thinks more readily and at greater depth than at `high`, suited to extended exploration. |
54| `high` (default on most models) | Claude thinks on most requests that benefit from it. Provides deep reasoning on complex tasks. |
55| `medium` (default on Claude Opus 5.5 and Claude Haiku 5.5) | Claude uses moderate thinking. Might skip thinking for simple queries. |
56| `low` | Claude minimizes thinking. Skips thinking for simple tasks where speed matters most. |
5757
5858At every level, Claude determines for each request whether to think. In a tool-use loop, the first request after new user input typically carries most of the reasoning, and follow-up requests that only process tool results can skip thinking, including at `xhigh` and `max`. Thinking per request also tends to decrease as a conversation grows longer. No level guarantees a thinking block on every request.
5959
from line 876
876876
877877What you’re billed for is the same regardless of the `display` setting; only what you see changes:
878878
879| | `display: "summarized"` | `display: "omitted"` |
880| --------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
881| **Input tokens** | Tokens in your original request | Same as summarized |
882| **Output tokens (billed)** | The full thinking tokens Claude generated internally | Same as summarized |
883| **Output tokens (visible)** | The summarized thinking text | Zero thinking tokens (the `thinking` field is empty) |
884| **Summary generation** | No charge | Not applicable |
879| | `display: "summarized"` | `display: "omitted"` |
880| ----- | ----- | ----- |
881| **Input tokens** | Tokens in your original request | Same as summarized |
882| **Output tokens (billed)** | The full thinking tokens Claude generated internally | Same as summarized |
883| **Output tokens (visible)** | The summarized thinking text | Zero thinking tokens (the `thinking` field is empty) |
884| **Summary generation** | No charge | Not applicable |
885885
886886<Warning>
887887 The billed output token count does **not** match the visible token count in the response. You are billed for the full thinking process, not the thinking content visible in the response.
build-with-claude/thinking-troubleshooting Changed · +21 / -21 lines
from line 18
1818
1919The table lists what each model supports, what it defaults to, and which `thinking.type` values it rejects with a 400 error; any value not listed as rejected is accepted. Only Claude Sonnet 5.5 accepts `"between_tools"`, and it takes that value in place of `"disabled"`.
2020
21| Model | Thinking types | Default | Rejected with 400 |
22| --------------------- | ------------------------------------------- | --------- | ------------------------------------- |
23| Claude Fable 5.2 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
24| Claude Mythos 5.2 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
25| Claude Fable 5.1 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
26| Claude Mythos 5.1 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
27| Claude Fable 5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
28| Claude Mythos 5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
29| Claude Mythos Preview | Adaptive, extended | Always on | `"disabled"` |
30| Claude Opus 5.5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
31| Claude Opus 5 | Adaptive only | On | `"enabled"`, `"disabled"`<sup>2</sup> |
32| Claude Opus 4.8 | Adaptive only | Off | `"enabled"` |
33| Claude Opus 4.7 | Adaptive only | Off | `"enabled"` |
34| Claude Sonnet 5.5 | Adaptive, `between_tools`<sup>3</sup> | On | `"enabled"`, `"disabled"` |
35| Claude Sonnet 5 | Adaptive only | On | `"enabled"` |
36| Claude Haiku 5.5 | Adaptive only | On | `"enabled"`, `"disabled"`<sup>2</sup> |
37| Claude Opus 4.6 | Adaptive, extended (deprecated)<sup>1</sup> | Off | None |
38| Claude Sonnet 4.6 | Adaptive, extended (deprecated)<sup>1</sup> | Off | None |
39| Claude Opus 4.5 | Extended only | Off | `"adaptive"` |
40| Claude Haiku 4.5 | Extended only | Off | `"adaptive"` |
41| Claude Sonnet 4.5 | Extended only | Off | `"adaptive"` |
21| Model | Thinking types | Default | Rejected with 400 |
22| ----- | ----- | ----- | ----- |
23| Claude Fable 5.2 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
24| Claude Mythos 5.2 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
25| Claude Fable 5.1 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
26| Claude Mythos 5.1 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
27| Claude Fable 5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
28| Claude Mythos 5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
29| Claude Mythos Preview | Adaptive, extended | Always on | `"disabled"` |
30| Claude Opus 5.5 | Adaptive only | Always on | `"enabled"`, `"disabled"` |
31| Claude Opus 5 | Adaptive only | On | `"enabled"`, `"disabled"`<sup>2</sup> |
32| Claude Opus 4.8 | Adaptive only | Off | `"enabled"` |
33| Claude Opus 4.7 | Adaptive only | Off | `"enabled"` |
34| Claude Sonnet 5.5 | Adaptive, `between_tools`<sup>3</sup> | On | `"enabled"`, `"disabled"` |
35| Claude Sonnet 5 | Adaptive only | On | `"enabled"` |
36| Claude Haiku 5.5 | Adaptive only | On | `"enabled"`, `"disabled"`<sup>2</sup> |
37| Claude Opus 4.6 | Adaptive, extended (deprecated)<sup>1</sup> | Off | None |
38| Claude Sonnet 4.6 | Adaptive, extended (deprecated)<sup>1</sup> | Off | None |
39| Claude Opus 4.5 | Extended only | Off | `"adaptive"` |
40| Claude Haiku 4.5 | Extended only | Off | `"adaptive"` |
41| Claude Sonnet 4.5 | Extended only | Off | `"adaptive"` |
4242
4343*<sup>1</sup> `enabled` and `budget_tokens` still work on these models but are deprecated; use adaptive thinking instead.*\
4444*<sup>2</sup> Claude Opus 5 and Claude Haiku 5.5 accept `"disabled"` at [effort](https://platform.claude.com/docs/en/build-with-claude/effort) `high` or below; combining it with effort `xhigh` or `max` returns a 400 error. On Claude Opus 5, this restriction is enforced on each request. On Claude Haiku 5.5, a per-message effort that differs from the level in effect also returns a 400 error.*\
build-with-claude/token-counting Changed · +10 / -10 lines
from line 1440
14401440Token counting is **free to use** but subject to requests per minute rate limits based on your [usage tier](https://platform.claude.com/docs/en/api/rate-limits#rate-limits). If you need higher limits, use **Request tier increase** on the [Rate limits](https://platform.claude.com/usage/limits) page in the Claude Console.
14411441
14421442| Usage tier | Requests per minute (RPM) |
1443| ---------- | ------------------------- |
1444| Start | 5,000 |
1445| Build | 10,000 |
1446| Scale | 20,000 |
1443| ----- | ----- |
1444| Start | 5,000 |
1445| Build | 10,000 |
1446| Scale | 20,000 |
14471447
14481448<Note>
14491449 Token counting and message creation have separate and independent rate limits. Usage of one does not count against the limits of the other.
from line 1491
14911491
14921492* Availability: Available
14931493
1494| Status | Models |
1495| --------- | ----------------------------------------------------------------- |
1494| Status | Models |
1495| ----- | ----- |
14961496| Available | [All models](https://platform.claude.com/docs/en/models/overview) |
14971497
14981498#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 1503
15031503
15041504[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
15051505
1506| Item | Zero data retention | HIPAA |
1507| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
1508| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1509| Details | Count tokens before sending requests. | — |
1506| Item | Zero data retention | HIPAA |
1507| ----- | ----- | ----- |
1508| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1509| Details | Count tokens before sending requests. | — |
15101510
15111511Applicable endpoints:
15121512
build-with-claude/vision Changed · +18 / -18 lines
from line 1310
13101310
13111311Each model has a maximum native image resolution, expressed as a long-edge limit and a visual-token limit. Images larger than either limit are downscaled before processing; see [How Claude resizes and pads images](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#how-claude-resizes-and-pads-images) for the exact rule. The exception is screenshots and zoom images that you return to the [computer use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions) and [browser use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#targets-and-coordinates) toolsets: the API rejects a `tool_result` image that exceeds the model’s limits with a validation error instead of downscaling it, so resize those images in your application before returning them. To have any other oversized image rejected with an error instead of downscaled, set the image block’s [`transformations` field](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#oversized-image-error).
13121312
1313| Resolution tier | Models | Max long edge | Max visual tokens |
1314| --------------- | --------------------------- | ------------- | ----------------- |
1315| High-resolution | Claude 4.7 and later models | 2,576 px | 4,784 |
1316| Standard | All other models | 1,568 px | 1,568 |
1313| Resolution tier | Models | Max long edge | Max visual tokens |
1314| ----- | ----- | ----- | ----- |
1315| High-resolution | Claude 4.7 and later models | 2,576 px | 4,784 |
1316| Standard | All other models | 1,568 px | 1,568 |
13171317
13181318High-resolution support is automatic on the listed models and requires no beta header or client-side opt-in.
13191319
13201320The following table shows the downsized resolution and visual-token cost for several image sizes on each tier:
13211321
1322| Image size | Standard tier: downsized to | Standard tier: tokens | High-resolution tier: downsized to | High-resolution tier: tokens |
1323| ------------------------------ | --------------------------- | --------------------- | ---------------------------------- | ---------------------------- |
1324| 200x200 px (0.04 megapixels) | Not resized | 64 | Not resized | 64 |
1325| 1000x1000 px (1 megapixel) | Not resized | 1,296 | Not resized | 1,296 |
1326| 1092x1092 px (1.19 megapixels) | Not resized | 1,521 | Not resized | 1,521 |
1327| 1920x1080 px (2.07 megapixels) | 1456x819 px | 1,560 | Not resized | 2,691 |
1328| 2000x1500 px (3 megapixels) | 1269x952 px | 1,564 | Not resized | 3,888 |
1329| 3840x2160 px (8.29 megapixels) | 1456x819 px | 1,560 | 2576x1449 px | 4,784 |
1322| Image size | Standard tier: downsized to | Standard tier: tokens | High-resolution tier: downsized to | High-resolution tier: tokens |
1323| ----- | ----- | ----- | ----- | ----- |
1324| 200x200 px (0.04 megapixels) | Not resized | 64 | Not resized | 64 |
1325| 1000x1000 px (1 megapixel) | Not resized | 1,296 | Not resized | 1,296 |
1326| 1092x1092 px (1.19 megapixels) | Not resized | 1,521 | Not resized | 1,521 |
1327| 1920x1080 px (2.07 megapixels) | 1456x819 px | 1,560 | Not resized | 2,691 |
1328| 2000x1500 px (3 megapixels) | 1269x952 px | 1,564 | Not resized | 3,888 |
1329| 3840x2160 px (8.29 megapixels) | 1456x819 px | 1,560 | 2576x1449 px | 4,784 |
13301330
13311331When an image is downsized, Claude scales it to the largest size that fits the tier’s limits while preserving its aspect ratio. This caps the token cost. For the precise rule and a reference implementation, see [How Claude resizes and pads images](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates#how-claude-resizes-and-pads-images).
13321332
from line 1437
14371437
14381438* Availability: Always on
14391439
1440| Status | Cloud platforms |
1441| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1442| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
1443| Available<sup>1</sup> | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) |
1440| Status | Cloud platforms |
1441| ----- | ----- |
1442| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
1443| Available<sup>1</sup> | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) |
14441444
144514451. Only base64 image sources; per-image limit 5 MB (base64-encoded) and a lower total request size.
14461446
from line 1448
14481448
14491449* Availability: Always on
14501450
1451| Status | Cloud platforms |
1452| --------- | ----------------------- |
1451| Status | Cloud platforms |
1452| ----- | ----- |
14531453| Available | All supported platforms |
14541454
build-with-claude/working-with-messages Changed · +8 / -8 lines
from line 39
3939
4040Anthropic offers two ways to build with Claude, each suited to different use cases:
4141
42| | Messages API | Claude Managed Agents |
43| -------------- | ------------------------------------------- | ------------------------------------------------------------------------- |
44| **What it is** | Direct model prompting access | Pre-built, configurable agent harness that runs in managed infrastructure |
45| **Best for** | Custom agent loops and fine-grained control | Long-running tasks and asynchronous work |
42| | Messages API | Claude Managed Agents |
43| ----- | ----- | ----- |
44| **What it is** | Direct model prompting access | Pre-built, configurable agent harness that runs in managed infrastructure |
45| **Best for** | Custom agent loops and fine-grained control | Long-running tasks and asynchronous work |
4646
4747This guide covers common patterns for working with the Messages API, including basic requests, multi-turn conversations, prefill techniques, and vision capabilities. For complete API specifications, see the [Messages API reference](https://platform.claude.com/docs/en/api/messages/create). For the managed agent harness instead, see the [Claude Managed Agents overview](https://platform.claude.com/docs/en/managed-agents/overview).
4848
from line 1099
10991099
11001100[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
11011101
1102| Item | Zero data retention | HIPAA |
1103| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
1104| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1105| Details | Standard API calls for generating Claude responses. | — |
1102| Item | Zero data retention | HIPAA |
1103| ----- | ----- | ----- |
1104| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
1105| Details | Standard API calls for generating Claude responses. | — |
11061106
11071107Applicable endpoints:
11081108
claude_api_primer Changed · +5 / -5 lines
from line 499
499499
500500Client tools are specified in the `tools` top-level parameter of the API request. Each tool definition includes:
501501
502| Parameter | Description |
503| -------------- | ---------------------------------------------------------------------------------------------------- |
504| `name` | The name of the tool. Must match the regex `^[a-zA-Z0-9_-]{1,128}$`. |
505| `description` | A detailed plain text description of what the tool does, when it should be used, and how it behaves. |
506| `input_schema` | A [JSON Schema](https://json-schema.org/) object defining the expected parameters for the tool. |
502| Parameter | Description |
503| ----- | ----- |
504| `name` | The name of the tool. Must match the regex `^[a-zA-Z0-9_-]{1,128}$`. |
505| `description` | A detailed plain text description of what the tool does, when it should be used, and how it behaves. |
506| `input_schema` | A [JSON Schema](https://json-schema.org/) object defining the expected parameters for the tool. |
507507
508508```json
509509{
cli-sdks-libraries/cli/apply Changed · +8 / -8 lines
from line 332
332332
333333## Flags
334334
335| Flag | Effect |
336| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
337| `--dry-run` | Print the plan and exit without applying or writing the lockfile. Exits 0 even when the plan is blocked. |
338| `--yes` | Apply without asking for confirmation. Required when there’s no terminal. |
339| `--force` | Apply even where a resource was changed, archived, or deleted outside these files. |
340| `--prune` | Remove resources that are in the lockfile but no longer declared in a file. |
341| `--upgrade` | Re-resolve skills referenced by GitHub URL, which otherwise stay pinned to the commit recorded in the lockfile. |
335| Flag | Effect |
336| ----- | ----- |
337| `--dry-run` | Print the plan and exit without applying or writing the lockfile. Exits 0 even when the plan is blocked. |
338| `--yes` | Apply without asking for confirmation. Required when there’s no terminal. |
339| `--force` | Apply even where a resource was changed, archived, or deleted outside these files. |
340| `--prune` | Remove resources that are in the lockfile but no longer declared in a file. |
341| `--upgrade` | Re-resolve skills referenced by GitHub URL, which otherwise stay pinned to the commit recorded in the lockfile. |
342342| `--lock-file <path>` | Use this lockfile instead of searching upward from the current directory. Keep one for each organization or workspace: `ant apply` refuses a lockfile whose organization or workspace doesn’t match your credentials. |
343| `--verbose`, `-v` | Show unchanged resources and full field values in the plan. |
343| `--verbose`, `-v` | Show unchanged resources and full field values in the plan. |
344344
345345## Next steps
346346
cli-sdks-libraries/cli/sessions-connect Changed · +7 / -7 lines
from line 24
2424
2525The terminal view shows the conversation live: messages and tool calls, with each call’s duration and outcome. A status bar shows whether the session is running, idle, or waiting for your approval. In [multiagent](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration) sessions, the view follows the session’s primary thread, which includes the messages exchanged between the agent that the session runs and the agents it delegates to.
2626
27| Key | Action |
28| ------------------ | -------------------------------------------------------------------------------------------------------------------------- |
29| Enter | Send your input as a `user.message` event. Alt+Enter or Ctrl+J starts a new line. |
30| Esc | Interrupt the agent while it’s running (`user.interrupt`). |
31| Ctrl+O | Show or hide detail: tool inputs and results, token usage, and status events. `--verbose` (`-v`) starts with detail shown. |
32| Page Up, Page Down | Scroll through the transcript. Scrolling up pauses following; End resumes it. |
33| Ctrl+C | Detach. Ctrl+D on an empty input line also detaches. |
27| Key | Action |
28| ----- | ----- |
29| Enter | Send your input as a `user.message` event. Alt+Enter or Ctrl+J starts a new line. |
30| Esc | Interrupt the agent while it’s running (`user.interrupt`). |
31| Ctrl+O | Show or hide detail: tool inputs and results, token usage, and status events. `--verbose` (`-v`) starts with detail shown. |
32| Page Up, Page Down | Scroll through the transcript. Scrolling up pauses following; End resumes it. |
33| Ctrl+C | Detach. Ctrl+D on an empty input line also detaches. |
3434
3535When a tool call is waiting for your approval, the input line changes to **Allow tool call?** This occurs under an `always_ask` policy, or under `auto` when the server reaches no determination. Select **Yes**, **No**, or **No, and tell the agent why**. The CLI sends your choice as a [`user.tool_confirmation`](https://platform.claude.com/docs/en/managed-agents/permission-policies#respond-to-confirmation-requests) event, with any reason you type as its `deny_message`.
3636
cli-sdks-libraries/cli/using Changed · +12 / -12 lines
from line 27
2727
2828### Global flags
2929
30| Flag | Description |
31| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32| `--profile` | Named profile to use for this command (equivalent to setting `ANTHROPIC_PROFILE`). See [Switch between workspaces](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/authentication#switch-between-workspaces). |
33| `--api-key-stdin` | Read the API key from standard input. The flag reads all of standard input, so pass the request body with [flags](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#flags). |
34| `--auth-token-stdin` | Read the bearer token from standard input. The flag reads all of standard input, so pass the request body with [flags](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#flags). |
35| `--format` | Output format: `auto`, `json`, `jsonl`, `yaml`, `pretty`, `raw`, `explore` |
36| `--transform` | Filter or reshape the response with a GJSON path. See [Transform output with GJSON](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#transform-output-with-gjson). |
37| `-r`, `--raw-output` | Print string results without surrounding quotes, like `jq -r` |
38| `--base-url` | Override the API base URL |
39| `--workspace-id` | Optional. Workspace ID (`wrkspc_...`) to send as the `anthropic-workspace-id` header, for API keys that aren’t scoped to a workspace (equivalent to setting `ANTHROPIC_WORKSPACE_ID`). See [Select a workspace](https://platform.claude.com/docs/en/manage-claude/authentication#select-a-workspace). [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) commands take their own `--workspace-id`, which names the workspace they manage instead. |
40| `--debug` | Print full HTTP request and response to stderr |
41| `--format-error`, `--transform-error` | Same as `--format` and `--transform` but applied to [error responses](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting#inspect-errors) |
30| Flag | Description |
31| ----- | ----- |
32| `--profile` | Named profile to use for this command (equivalent to setting `ANTHROPIC_PROFILE`). See [Switch between workspaces](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/authentication#switch-between-workspaces). |
33| `--api-key-stdin` | Read the API key from standard input. The flag reads all of standard input, so pass the request body with [flags](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#flags). |
34| `--auth-token-stdin` | Read the bearer token from standard input. The flag reads all of standard input, so pass the request body with [flags](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#flags). |
35| `--format` | Output format: `auto`, `json`, `jsonl`, `yaml`, `pretty`, `raw`, `explore` |
36| `--transform` | Filter or reshape the response with a GJSON path. See [Transform output with GJSON](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#transform-output-with-gjson). |
37| `-r`, `--raw-output` | Print string results without surrounding quotes, like `jq -r` |
38| `--base-url` | Override the API base URL |
39| `--workspace-id` | Optional. Workspace ID (`wrkspc_...`) to send as the `anthropic-workspace-id` header, for API keys that aren’t scoped to a workspace (equivalent to setting `ANTHROPIC_WORKSPACE_ID`). See [Select a workspace](https://platform.claude.com/docs/en/manage-claude/authentication#select-a-workspace). [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) commands take their own `--workspace-id`, which names the workspace they manage instead. |
40| `--debug` | Print full HTTP request and response to stderr |
41| `--format-error`, `--transform-error` | Same as `--format` and `--transform` but applied to [error responses](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/scripting#inspect-errors) |
4242
4343## Output formats
4444
cli-sdks-libraries/libraries/apple-foundation-models Changed · +6 / -6 lines
from line 288
288288
289289## Additional resources
290290
291| Reference | Covers |
292| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
291| Reference | Covers |
292| ----- | ----- |
293293| [Apple Foundation Models documentation](https://developer.apple.com/documentation/foundationmodels) | `LanguageModelSession`, `@Generable`, `Transcript`, `Tool`, and the rest of the framework surface |
294| [`ClaudeForFoundationModels` on GitHub](https://github.com/anthropics/ClaudeForFoundationModels) | Source, the runnable example, and the issue tracker |
295| [Claude API reference](https://platform.claude.com/docs/en/api/overview) | The underlying Messages API |
294| [`ClaudeForFoundationModels` on GitHub](https://github.com/anthropics/ClaudeForFoundationModels) | Source, the runnable example, and the issue tracker |
295| [Claude API reference](https://platform.claude.com/docs/en/api/overview) | The underlying Messages API |
296296
297297The package is licensed under Apache 2.0. Bug reports are welcome through GitHub issues. External pull requests are not being accepted during the beta period.
298298
from line 307
307307* Availability: Available
308308
309309| Status | Cloud platforms |
310| ------ | --------------- |
311| Beta | Claude API |
310| ----- | ----- |
311| Beta | Claude API |
312312
cli-sdks-libraries/libraries/openai-sdk Changed · +112 / -112 lines
from line 318
318318
319319#### Simple fields
320320
321| Field | Support status |
322| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
323| `model` | Use Claude model names |
324| `max_tokens` | Fully supported |
325| `max_completion_tokens` | Fully supported |
326| `stream` | Fully supported |
327| `stream_options` | Fully supported |
328| `top_p` | Passed through to the model. Claude 4.7 and later models and Claude Mythos Preview return a 400 error for any value other than `0.99`, the default, so omit it. A request that sets both `temperature` and `top_p` also returns a 400 error. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
329| `parallel_tool_calls` | Fully supported |
330| `tool_choice` | Supported with limits. `"required"` and a named function force a tool call. Some models return a 400 error for forced tool use: Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and Claude Mythos 5.1. Use `"auto"` on those models. See [Forcing tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#forcing-tool-use). |
331| `stop` | All non-whitespace stop sequences work |
332| `temperature` | Between 0 and 1 (inclusive). Values greater than 1 are capped at 1. On Claude 4.7 and later models and Claude Mythos Preview, any value below 1 returns a 400 error, so omit it. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
333| `n` | Must be exactly 1. Any other value returns a 400 error. |
334| `response_format` | Supported with limits. Only `json_schema` with `strict: true` is accepted, and the structured outputs [JSON Schema limitations](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#json-schema-limitations) apply. Any other value, including `json_object` and `text`, returns a 400 error. |
335| `logprobs` | Ignored |
336| `metadata` | Ignored |
337| `prediction` | Ignored |
338| `presence_penalty` | Ignored |
339| `frequency_penalty` | Ignored |
340| `seed` | Ignored |
341| `service_tier` | Ignored |
342| `audio` | Ignored |
343| `logit_bias` | Ignored |
344| `store` | Ignored |
345| `user` | Ignored |
346| `modalities` | Ignored |
347| `top_logprobs` | Ignored |
348| `reasoning_effort` | Ignored |
321| Field | Support status |
322| ----- | ----- |
323| `model` | Use Claude model names |
324| `max_tokens` | Fully supported |
325| `max_completion_tokens` | Fully supported |
326| `stream` | Fully supported |
327| `stream_options` | Fully supported |
328| `top_p` | Passed through to the model. Claude 4.7 and later models and Claude Mythos Preview return a 400 error for any value other than `0.99`, the default, so omit it. A request that sets both `temperature` and `top_p` also returns a 400 error. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
329| `parallel_tool_calls` | Fully supported |
330| `tool_choice` | Supported with limits. `"required"` and a named function force a tool call. Some models return a 400 error for forced tool use: Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and Claude Mythos 5.1. Use `"auto"` on those models. See [Forcing tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#forcing-tool-use). |
331| `stop` | All non-whitespace stop sequences work |
332| `temperature` | Between 0 and 1 (inclusive). Values greater than 1 are capped at 1. On Claude 4.7 and later models and Claude Mythos Preview, any value below 1 returns a 400 error, so omit it. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
333| `n` | Must be exactly 1. Any other value returns a 400 error. |
334| `response_format` | Supported with limits. Only `json_schema` with `strict: true` is accepted, and the structured outputs [JSON Schema limitations](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#json-schema-limitations) apply. Any other value, including `json_object` and `text`, returns a 400 error. |
335| `logprobs` | Ignored |
336| `metadata` | Ignored |
337| `prediction` | Ignored |
338| `presence_penalty` | Ignored |
339| `frequency_penalty` | Ignored |
340| `seed` | Ignored |
341| `service_tier` | Ignored |
342| `audio` | Ignored |
343| `logit_bias` | Ignored |
344| `store` | Ignored |
345| `user` | Ignored |
346| `modalities` | Ignored |
347| `top_logprobs` | Ignored |
348| `reasoning_effort` | Ignored |
349349
350350#### `tools` / `functions` fields
351351
from line 354
354354 <Tab title="Tools">
355355 `tools[n].function` fields
356356
357 | Field | Support status |
358 | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
359 | `name` | Fully supported |
360 | `description` | Fully supported |
361 | `parameters` | Fully supported |
362 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
357 | Field | Support status |
358 | ----- | ----- |
359 | `name` | Fully supported |
360 | `description` | Fully supported |
361 | `parameters` | Fully supported |
362 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
363363 </Tab>
364364
365365 <Tab title="Functions">
from line 369
369369 OpenAI has deprecated the `functions` field and recommends using `tools` instead.
370370 </Info>
371371
372 | Field | Support status |
373 | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
374 | `name` | Fully supported |
375 | `description` | Fully supported |
376 | `parameters` | Fully supported |
377 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
372 | Field | Support status |
373 | ----- | ----- |
374 | `name` | Fully supported |
375 | `description` | Fully supported |
376 | `parameters` | Fully supported |
377 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
378378 </Tab>
379379 </Tabs>
380380</Accordion>
from line 390
390390 Developer messages are hoisted to the beginning of the conversation as part of the initial system message.
391391 </Info>
392392
393 | Field | Support status |
394 | --------- | ---------------------------- |
393 | Field | Support status |
394 | ----- | ----- |
395395 | `content` | Fully supported, but hoisted |
396 | `name` | Ignored |
396 | `name` | Ignored |
397397 </Tab>
398398
399399 <Tab title="System role">
from line 403
403403 System messages are hoisted to the beginning of the conversation as part of the initial system message.
404404 </Info>
405405
406 | Field | Support status |
407 | --------- | ---------------------------- |
406 | Field | Support status |
407 | ----- | ----- |
408408 | `content` | Fully supported, but hoisted |
409 | `name` | Ignored |
409 | `name` | Ignored |
410410 </Tab>
411411
412412 <Tab title="User role">
413413 Fields for `messages[n].role == "user"`
414414
415 | Field | Variant | Sub-field | Support status |
416 | --------- | -------------------------------- | --------- | ------------------- |
417 | `content` | `string` | | Fully supported |
418 | | `array`, `type == "text"` | | Fully supported |
419 | | `array`, `type == "image_url"` | `url` | Fully supported |
420 | | | `detail` | Ignored |
421 | | `array`, `type == "input_audio"` | | Returns a 400 error |
422 | | `array`, `type == "file"` | | Returns a 400 error |
423 | `name` | | | Ignored |
415 | Field | Variant | Sub-field | Support status |
416 | ----- | ----- | ----- | ----- |
417 | `content` | `string` | | Fully supported |
418 | | `array`, `type == "text"` | | Fully supported |
419 | | `array`, `type == "image_url"` | `url` | Fully supported |
420 | | | `detail` | Ignored |
421 | | `array`, `type == "input_audio"` | | Returns a 400 error |
422 | | `array`, `type == "file"` | | Returns a 400 error |
423 | `name` | | | Ignored |
424424 </Tab>
425425
426426 <Tab title="Assistant role">
427427 Fields for `messages[n].role == "assistant"`
428428
429 | Field | Variant | Support status |
430 | --------------- | ---------------------------- | --------------- |
431 | `content` | `string` | Fully supported |
432 | | `array`, `type == "text"` | Fully supported |
433 | | `array`, `type == "refusal"` | Ignored |
434 | `tool_calls` | | Fully supported |
435 | `function_call` | | Fully supported |
436 | `audio` | | Ignored |
437 | `refusal` | | Ignored |
429 | Field | Variant | Support status |
430 | ----- | ----- | ----- |
431 | `content` | `string` | Fully supported |
432 | | `array`, `type == "text"` | Fully supported |
433 | | `array`, `type == "refusal"` | Ignored |
434 | `tool_calls` | | Fully supported |
435 | `function_call` | | Fully supported |
436 | `audio` | | Ignored |
437 | `refusal` | | Ignored |
438438 </Tab>
439439
440440 <Tab title="Tool role">
441441 Fields for `messages[n].role == "tool"`
442442
443 | Field | Variant | Support status |
444 | -------------- | ------------------------- | --------------- |
445 | `content` | `string` | Fully supported |
446 | | `array`, `type == "text"` | Fully supported |
447 | `tool_call_id` | | Fully supported |
448 | `name` | | Ignored |
443 | Field | Variant | Support status |
444 | ----- | ----- | ----- |
445 | `content` | `string` | Fully supported |
446 | | `array`, `type == "text"` | Fully supported |
447 | `tool_call_id` | | Fully supported |
448 | `name` | | Ignored |
449449 </Tab>
450450
451451 <Tab title="Function role">
452452 Fields for `messages[n].role == "function"`
453453
454 | Field | Variant | Support status |
455 | --------- | -------- | ---------------------------------- |
456 | `content` | `string` | Fully supported |
457 | `name` | | Required, but the value is ignored |
454 | Field | Variant | Support status |
455 | ----- | ----- | ----- |
456 | `content` | `string` | Fully supported |
457 | `name` | | Required, but the value is ignored |
458458 </Tab>
459459 </Tabs>
460460</Accordion>
from line 461
461461
462462### Response fields
463463
464| Field | Support status |
465| --------------------------------- | ------------------------ |
466| `id` | Fully supported |
467| `choices[]` | Always has a length of 1 |
468| `choices[].finish_reason` | Fully supported |
469| `choices[].index` | Fully supported |
470| `choices[].message.role` | Fully supported |
471| `choices[].message.content` | Fully supported |
472| `choices[].message.tool_calls` | Fully supported |
473| `object` | Fully supported |
474| `created` | Fully supported |
475| `model` | Fully supported |
476| `usage.completion_tokens` | Fully supported |
477| `usage.prompt_tokens` | Fully supported |
478| `usage.total_tokens` | Fully supported |
479| `usage.completion_tokens_details` | Always empty |
480| `usage.prompt_tokens_details` | Always empty |
481| `choices[].message.refusal` | Always empty |
482| `choices[].message.audio` | Always empty |
483| `logprobs` | Always empty |
484| `service_tier` | Always empty |
485| `system_fingerprint` | Always empty |
464| Field | Support status |
465| ----- | ----- |
466| `id` | Fully supported |
467| `choices[]` | Always has a length of 1 |
468| `choices[].finish_reason` | Fully supported |
469| `choices[].index` | Fully supported |
470| `choices[].message.role` | Fully supported |
471| `choices[].message.content` | Fully supported |
472| `choices[].message.tool_calls` | Fully supported |
473| `object` | Fully supported |
474| `created` | Fully supported |
475| `model` | Fully supported |
476| `usage.completion_tokens` | Fully supported |
477| `usage.prompt_tokens` | Fully supported |
478| `usage.total_tokens` | Fully supported |
479| `usage.completion_tokens_details` | Always empty |
480| `usage.prompt_tokens_details` | Always empty |
481| `choices[].message.refusal` | Always empty |
482| `choices[].message.audio` | Always empty |
483| `logprobs` | Always empty |
484| `service_tier` | Always empty |
485| `system_fingerprint` | Always empty |
486486
487487### Error message compatibility
488488
from line 492
492492
493493If your code reads or sets headers directly, the following table shows how the Claude API handles OpenAI’s headers.
494494
495| Header | Support status |
496| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
497| `x-ratelimit-limit-requests` | Not returned. The request limit is in `x-ratelimit-requests`. |
498| `x-ratelimit-limit-tokens` | Not returned. The token limit is in `x-ratelimit-tokens`. |
499| `x-ratelimit-remaining-requests` | Fully supported |
500| `x-ratelimit-remaining-tokens` | Fully supported |
501| `x-ratelimit-reset-requests` | Fully supported |
502| `x-ratelimit-reset-tokens` | Fully supported |
503| `retry-after` | Fully supported |
504| `x-request-id` | Fully supported. Carries the Claude API [request ID](https://platform.claude.com/docs/en/api/errors#request-id) in place of the `request-id` header. |
505| `openai-version` | Not returned |
506| `openai-processing-ms` | Not returned |
507| `authorization` | Fully supported |
495| Header | Support status |
496| ----- | ----- |
497| `x-ratelimit-limit-requests` | Not returned. The request limit is in `x-ratelimit-requests`. |
498| `x-ratelimit-limit-tokens` | Not returned. The token limit is in `x-ratelimit-tokens`. |
499| `x-ratelimit-remaining-requests` | Fully supported |
500| `x-ratelimit-remaining-tokens` | Fully supported |
501| `x-ratelimit-reset-requests` | Fully supported |
502| `x-ratelimit-reset-tokens` | Fully supported |
503| `retry-after` | Fully supported |
504| `x-request-id` | Fully supported. Carries the Claude API [request ID](https://platform.claude.com/docs/en/api/errors#request-id) in place of the `request-id` header. |
505| `openai-version` | Not returned |
506| `openai-processing-ms` | Not returned |
507| `authorization` | Fully supported |
508508
509509## Availability
510510
from line 516
516516
517517* Availability: Available
518518
519| Status | Cloud platforms |
520| --------- | --------------- |
521| Available | Claude API |
519| Status | Cloud platforms |
520| ----- | ----- |
521| Available | Claude API |
522522
cli-sdks-libraries/middleware Changed · +5 / -5 lines
from line 222
222222
223223* Availability: Available
224224
225| Status | Cloud platforms |
226| --------- | ----------------------- |
225| Status | Cloud platforms |
226| ----- | ----- |
227227| Available | All supported platforms |
228228
229229#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 231
231231* Availability: Available
232232* Usage: Runs on your SDK client’s calls to the Managed Agents API. It does not see the model calls the agent makes inside its loop.
233233
234| Status | Cloud platforms |
235| ------ | ----------------------- |
236| Beta | All supported platforms |
234| Status | Cloud platforms |
235| ----- | ----- |
236| Beta | All supported platforms |
237237
cli-sdks-libraries/overview Changed · +10 / -10 lines
from line 58
5858
5959## Latest versions
6060
61| Tool | Latest version | Package |
62| ---------- | -------------- | ----------------------------------------------------------------------------------------------------------- |
63| ant CLI | `2.12.1` | [`github.com/anthropics/anthropic-cli`](https://github.com/anthropics/anthropic-cli/releases) |
64| Python | `2.12.0` | [`anthropic` on PyPI](https://pypi.org/project/anthropic/) |
65| TypeScript | `1.12.0` | [`@anthropic-ai/sdk`](https://www.npmjs.com/package/@anthropic-ai/sdk) |
66| C# | `13.12.0` | [`Anthropic`](https://www.nuget.org/packages/Anthropic) |
67| Go | `2.13.0` | [`github.com/anthropics/anthropic-sdk-go/v2`](https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/v2) |
68| Java | `3.12.0` | [`com.anthropic:anthropic-java`](https://central.sonatype.com/artifact/com.anthropic/anthropic-java) |
69| PHP | `1.12.0` | [`anthropic-ai/sdk`](https://packagist.org/packages/anthropic-ai/sdk) |
70| Ruby | `2.12.0` | [`anthropic` on RubyGems](https://rubygems.org/gems/anthropic) |
61| Tool | Latest version | Package |
62| ----- | ----- | ----- |
63| ant CLI | `2.12.1` | [`github.com/anthropics/anthropic-cli`](https://github.com/anthropics/anthropic-cli/releases) |
64| Python | `2.12.0` | [`anthropic` on PyPI](https://pypi.org/project/anthropic/) |
65| TypeScript | `1.12.0` | [`@anthropic-ai/sdk`](https://www.npmjs.com/package/@anthropic-ai/sdk) |
66| C# | `13.12.0` | [`Anthropic`](https://www.nuget.org/packages/Anthropic) |
67| Go | `2.13.0` | [`github.com/anthropics/anthropic-sdk-go/v2`](https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/v2) |
68| Java | `3.12.0` | [`com.anthropic:anthropic-java`](https://central.sonatype.com/artifact/com.anthropic/anthropic-java) |
69| PHP | `1.12.0` | [`anthropic-ai/sdk`](https://packagist.org/packages/anthropic-ai/sdk) |
70| Ruby | `2.12.0` | [`anthropic` on RubyGems](https://rubygems.org/gems/anthropic) |
7171
7272The same versions are available as JSON at `https://platform.claude.com/docs/sdk-versions.json`.
7373
cli-sdks-libraries/sdks/csharp Changed · +14 / -14 lines
from line 78
7878
7979See this table for the available options:
8080
81| Property | Environment variable | Required | Default value |
82| ----------- | ---------------------- | -------- | ----------------------------- |
83| `ApiKey` | `ANTHROPIC_API_KEY` | false | - |
84| `AuthToken` | `ANTHROPIC_AUTH_TOKEN` | false | - |
85| `BaseUrl` | `ANTHROPIC_BASE_URL` | true | `"https://api.anthropic.com"` |
81| Property | Environment variable | Required | Default value |
82| ----- | ----- | ----- | ----- |
83| `ApiKey` | `ANTHROPIC_API_KEY` | false | - |
84| `AuthToken` | `ANTHROPIC_AUTH_TOKEN` | false | - |
85| `BaseUrl` | `ANTHROPIC_BASE_URL` | true | `"https://api.anthropic.com"` |
8686
8787### Modifying configuration
8888
from line 142
142142
143143* `AnthropicApiException`: Base class for API errors. See this table for which exception subclass is thrown for each HTTP status code:
144144
145| Status | Exception |
146| ------ | ---------------------------------------- |
147| 400 | `AnthropicBadRequestException` |
148| 401 | `AnthropicUnauthorizedException` |
149| 403 | `AnthropicForbiddenException` |
150| 404 | `AnthropicNotFoundException` |
151| 422 | `AnthropicUnprocessableEntityException` |
152| 429 | `AnthropicRateLimitException` |
153| 5xx | `Anthropic5xxException` |
145| Status | Exception |
146| ----- | ----- |
147| 400 | `AnthropicBadRequestException` |
148| 401 | `AnthropicUnauthorizedException` |
149| 403 | `AnthropicForbiddenException` |
150| 404 | `AnthropicNotFoundException` |
151| 422 | `AnthropicUnprocessableEntityException` |
152| 429 | `AnthropicRateLimitException` |
153| 5xx | `Anthropic5xxException` |
154154| others | `AnthropicUnexpectedStatusCodeException` |
155155
156156Additionally, all 4xx errors inherit from `Anthropic4xxException`.
cli-sdks-libraries/sdks/java Changed · +14 / -14 lines
from line 133
133133
134134### Configuration options
135135
136| Setter | System property | Environment variable | Required | Default value |
137| ----------- | --------------------- | ---------------------- | -------- | ----------------------------- |
138| `apiKey` | `anthropic.apiKey` | `ANTHROPIC_API_KEY` | false | - |
139| `authToken` | `anthropic.authToken` | `ANTHROPIC_AUTH_TOKEN` | false | - |
140| `baseUrl` | `anthropic.baseUrl` | `ANTHROPIC_BASE_URL` | true | `"https://api.anthropic.com"` |
136| Setter | System property | Environment variable | Required | Default value |
137| ----- | ----- | ----- | ----- | ----- |
138| `apiKey` | `anthropic.apiKey` | `ANTHROPIC_API_KEY` | false | - |
139| `authToken` | `anthropic.authToken` | `ANTHROPIC_AUTH_TOKEN` | false | - |
140| `baseUrl` | `anthropic.baseUrl` | `ANTHROPIC_BASE_URL` | true | `"https://api.anthropic.com"` |
141141
142142System properties take precedence over environment variables.
143143
from line 606
606606
607607### Status code mapping
608608
609| Status | Exception |
610| ------ | ------------------------------- |
611| 400 | `BadRequestException` |
612| 401 | `UnauthorizedException` |
613| 403 | `PermissionDeniedException` |
614| 404 | `NotFoundException` |
615| 422 | `UnprocessableEntityException` |
616| 429 | `RateLimitException` |
617| 5xx | `InternalServerException` |
609| Status | Exception |
610| ----- | ----- |
611| 400 | `BadRequestException` |
612| 401 | `UnauthorizedException` |
613| 403 | `PermissionDeniedException` |
614| 404 | `NotFoundException` |
615| 422 | `UnprocessableEntityException` |
616| 429 | `RateLimitException` |
617| 5xx | `InternalServerException` |
618618| others | `UnexpectedStatusCodeException` |
619619
620620`SseException` is thrown for errors encountered during SSE streaming after a successful initial HTTP response.
cli-sdks-libraries/sdks/php Changed · +13 / -13 lines
from line 104
104104
105105Error codes are as follows:
106106
107| Cause | Error type |
108| ---------------- | ------------------------------ |
109| HTTP 400 | `BadRequestException` |
110| HTTP 401 | `AuthenticationException` |
111| HTTP 403 | `PermissionDeniedException` |
112| HTTP 404 | `NotFoundException` |
113| HTTP 409 | `ConflictException` |
114| HTTP 422 | `UnprocessableEntityException` |
115| HTTP 429 | `RateLimitException` |
116| HTTP >= 500 | `InternalServerException` |
117| Other HTTP error | `APIStatusException` |
118| Timeout | `APITimeoutException` |
119| Network error | `APIConnectionException` |
107| Cause | Error type |
108| ----- | ----- |
109| HTTP 400 | `BadRequestException` |
110| HTTP 401 | `AuthenticationException` |
111| HTTP 403 | `PermissionDeniedException` |
112| HTTP 404 | `NotFoundException` |
113| HTTP 409 | `ConflictException` |
114| HTTP 422 | `UnprocessableEntityException` |
115| HTTP 429 | `RateLimitException` |
116| HTTP >= 500 | `InternalServerException` |
117| Other HTTP error | `APIStatusException` |
118| Timeout | `APITimeoutException` |
119| Network error | `APIConnectionException` |
120120
121121## Retries
122122
cli-sdks-libraries/sdks/python Changed · +19 / -19 lines
from line 378
378378
379379Error codes are as follows:
380380
381| Status code | Error type |
382| ----------- | -------------------------- |
383| 400 | `BadRequestError` |
384| 401 | `AuthenticationError` |
385| 403 | `PermissionDeniedError` |
386| 404 | `NotFoundError` |
387| 409 | `ConflictError` |
388| 422 | `UnprocessableEntityError` |
389| 429 | `RateLimitError` |
390| >=500 | `InternalServerError` |
391| N/A | `APIConnectionError` |
381| Status code | Error type |
382| ----- | ----- |
383| 400 | `BadRequestError` |
384| 401 | `AuthenticationError` |
385| 403 | `PermissionDeniedError` |
386| 404 | `NotFoundError` |
387| 409 | `ConflictError` |
388| 422 | `UnprocessableEntityError` |
389| 429 | `RateLimitError` |
390| >=500 | `InternalServerError` |
391| N/A | `APIConnectionError` |
392392
393393## Request IDs
394394
from line 755
755755
756756All six client classes are included in the base `anthropic` package:
757757
758| Provider | Client | Extra dependencies |
759| ------------------------------------------------- | ---------------------------------------------- | --------------------------------------- |
760| Claude Models on Google Cloud (Google managed) | `from anthropic import AnthropicVertex` | `pip install "anthropic[vertex]"` |
761| Bedrock | `from anthropic import AnthropicBedrockMantle` | `pip install "anthropic[bedrock]"` |
762| Bedrock (`bedrock-runtime` path) | `from anthropic import AnthropicBedrock` | `pip install "anthropic[bedrock]"` |
763| Claude Platform on AWS | `from anthropic import AnthropicAWS` | `pip install "anthropic[aws]"` |
764| Claude Models on Google Cloud (Anthropic managed) | `from anthropic import AnthropicGoogleCloud` | `pip install "anthropic[google_cloud]"` |
765| Foundry | `from anthropic import AnthropicFoundry` | None |
758| Provider | Client | Extra dependencies |
759| ----- | ----- | ----- |
760| Claude Models on Google Cloud (Google managed) | `from anthropic import AnthropicVertex` | `pip install "anthropic[vertex]"` |
761| Bedrock | `from anthropic import AnthropicBedrockMantle` | `pip install "anthropic[bedrock]"` |
762| Bedrock (`bedrock-runtime` path) | `from anthropic import AnthropicBedrock` | `pip install "anthropic[bedrock]"` |
763| Claude Platform on AWS | `from anthropic import AnthropicAWS` | `pip install "anthropic[aws]"` |
764| Claude Models on Google Cloud (Anthropic managed) | `from anthropic import AnthropicGoogleCloud` | `pip install "anthropic[google_cloud]"` |
765| Foundry | `from anthropic import AnthropicFoundry` | None |
766766
767767The `AnthropicAWS` client is in beta. Pass `workspace_id` to the constructor or set the `ANTHROPIC_AWS_WORKSPACE_ID` environment variable. The `AnthropicGoogleCloud` client is also in beta. Pass `workspace_id` to the constructor or set the `ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID` environment variable. See [Project, location, and workspace resolution](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#project-location-and-workspace-resolution) for how the client resolves the workspace ID.
768768
cli-sdks-libraries/sdks/ruby Changed · +13 / -13 lines
from line 136
136136
137137Error codes are as follows:
138138
139| Cause | Error type |
140| ---------------- | -------------------------- |
141| HTTP 400 | `BadRequestError` |
142| HTTP 401 | `AuthenticationError` |
143| HTTP 403 | `PermissionDeniedError` |
144| HTTP 404 | `NotFoundError` |
145| HTTP 409 | `ConflictError` |
146| HTTP 422 | `UnprocessableEntityError` |
147| HTTP 429 | `RateLimitError` |
148| HTTP >= 500 | `InternalServerError` |
149| Other HTTP error | `APIStatusError` |
150| Timeout | `APITimeoutError` |
151| Network error | `APIConnectionError` |
139| Cause | Error type |
140| ----- | ----- |
141| HTTP 400 | `BadRequestError` |
142| HTTP 401 | `AuthenticationError` |
143| HTTP 403 | `PermissionDeniedError` |
144| HTTP 404 | `NotFoundError` |
145| HTTP 409 | `ConflictError` |
146| HTTP 422 | `UnprocessableEntityError` |
147| HTTP 429 | `RateLimitError` |
148| HTTP >= 500 | `InternalServerError` |
149| Other HTTP error | `APIStatusError` |
150| Timeout | `APITimeoutError` |
151| Network error | `APIConnectionError` |
152152
153153## Retries
154154
cli-sdks-libraries/sdks/typescript Changed · +11 / -11 lines
from line 396
396396
397397Error codes are as follows:
398398
399| Status code | Error type |
400| ----------- | -------------------------- |
401| 400 | `BadRequestError` |
402| 401 | `AuthenticationError` |
403| 403 | `PermissionDeniedError` |
404| 404 | `NotFoundError` |
405| 409 | `ConflictError` |
406| 422 | `UnprocessableEntityError` |
407| 429 | `RateLimitError` |
408| >=500 | `InternalServerError` |
409| N/A | `APIConnectionError` |
399| Status code | Error type |
400| ----- | ----- |
401| 400 | `BadRequestError` |
402| 401 | `AuthenticationError` |
403| 403 | `PermissionDeniedError` |
404| 404 | `NotFoundError` |
405| 409 | `ConflictError` |
406| 422 | `UnprocessableEntityError` |
407| 429 | `RateLimitError` |
408| >=500 | `InternalServerError` |
409| N/A | `APIConnectionError` |
410410
411411## Request IDs
412412
intro Changed · +4 / -4 lines
from line 10
1010
1111Anthropic offers two ways to build with Claude, each suited to different use cases:
1212
13| | Messages API | Claude Managed Agents |
14| -------------- | ------------------------------------------- | ------------------------------------------------------------------------- |
15| **What it is** | Direct model prompting access | Pre-built, configurable agent harness that runs in managed infrastructure |
16| **Best for** | Custom agent loops and fine-grained control | Long-running tasks and asynchronous work |
13| | Messages API | Claude Managed Agents |
14| ----- | ----- | ----- |
15| **What it is** | Direct model prompting access | Pre-built, configurable agent harness that runs in managed infrastructure |
16| **Best for** | Custom agent loops and fine-grained control | Long-running tasks and asynchronous work |
1717
1818To learn more about each, see [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and the [Claude Managed Agents overview](https://platform.claude.com/docs/en/managed-agents/overview).
1919