claude-3-7-sonnet-20250219
claude-sonnet-4-20250514
or claude-opus-4-1-20250805
refusal
stop reason for content that the model declines to generate for safety reasons, due to the increased intelligence of Claude 4 models:
refusal
stop reasons.
interleaved-thinking-2025-05-14
to your API request.text_editor_20250728
str_replace_based_edit_tool
undo_edit
command is no longer supported in Claude 4 models.str_replace_editor
text editor tool remains the same for Claude Sonnet 3.7.token-efficient-tools-2025-02-19
beta header from your requests.
The token-efficient-tools-2025-02-19
beta header can still be included in Claude 4 requests, but it will have no effect.
output-128k-2025-02-19
beta header for extended output is only available in Claude Sonnet 3.7.
If you’re migrating from Claude Sonnet 3.7, we recommend removing output-128k-2025-02-19
from your requests.
The output-128k-2025-02-19
beta header can still be included in Claude 4 requests, but it will have no effect.
token-efficient-tools-2025-02-19
beta header if applicableoutput-128k-2025-02-19
beta header if applicablerefusal
stop reasonundo_edit
command