Model | Claude Opus 4 | Claude Sonnet 4 | Claude Sonnet 3.7 | Claude Sonnet 3.5 | Claude Haiku 3.5 | Claude Opus 3 | Claude Haiku 3 |
---|---|---|---|---|---|---|---|
Extended Thinking | Yes | Yes | Yes | No | No | No | No |
Context Window | 200K | 200K | 200K | 200K | 200K | 200K | 200K |
Max Output | 32000 tokens | 64000 tokens | 64000 tokens | 8192 tokens | 8192 tokens | 4096 tokens | 4096 tokens |
Training Cut-off | Mar 2025 | Mar 2025 | Nov 2024 | Apr 2024 | July 2024 | Aug 2023 | Aug 2023 |
"max_tokens"
parameter, referring to the Max Output
column in the table above.extra_headers={"anthropic-beta": "output-128k-2025-02-19"}
. See the “Streaming 128K” example below.refusal
stop reason for content that the model declines to generate for safety reasons:
refusal
stop reasons.
interleaved-thinking-2025-05-14
to your API request:
POST
/v1/messages
Name | Location | Type | Required | Description |
---|---|---|---|---|
x-api-key | header | string | No | Bearer AIHUBMIX_API_KEY |
Content-Type | header | string | No | none |
body | body | object | No | none |
» model | body | string | Yes | none |
» messages | body | [object] | Yes | none |
»» role | body | string | No | none |
»» content | body | string | Yes | none |
» max_tokens | body | number | Yes | none |
Status Code | Status Description | Description | Data Model |
---|---|---|---|
200 | OK | none | Inline |
refusal
stop reason:
output-128k-2025-02-19
beta header is only available in Claude Sonnet 3.7claude-opus-4-20250514
, claude-sonnet-4-20250514
): text_editor_20250429
claude-3-7-sonnet-20250219
): text_editor_20250124
claude-3-5-sonnet-20241022
): text_editor_20241022
Model Version | Tool Type | Tool Name | Supported Features |
---|---|---|---|
Claude 4 (Opus/Sonnet) | text_editor_20250429 | str_replace_based_edit_tool | view, str_replace, create |
Claude 3.7 Sonnet | text_editor_20250124 | str_replace_editor | view, str_replace, create, undo_edit |
Claude 3.5 Sonnet | text_editor_20241022 | str_replace_editor | view, str_replace, create, undo_edit |
undo_edit
command. Please remove any dependencies on this functionality from your code.anthropic
package:
undo_edit
command: Claude 4 models no longer support the undo edit functionalityundo_edit
from your code