Anthropic: Claude Sonnet 4.5
by anthropic
Input price
$3.00 /1M tok
Output price
$15.00 /1M tok
Context length
1,000K tokens
JSON mode
Yes
Our tests and reviews
-
Claude Sonnet 4.5 vs GPT-5 in 2026: 8/15 wins, 1.7x faster
May 6, 2026 · We ran 20 real prompts through Claude Sonnet 4.5 and GPT-5. Claude won 8 of 15 comparisons, ran 1.7x faster, and GPT-5 timed out on 5 of 20.
Model details
Model ID
anthropic/claude-sonnet-4.5
Provider
anthropic
Modality
text+image+file->text
Supports response_format
Yes
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| model | string | Model identifier, e.g. anthropic/claude-sonnet-4.5 |
| messages | array | Array of message objects with role and content |
| temperature | number | Sampling temperature (0-2). Default varies by model. |
| max_tokens | integer | Max tokens to generate |
| top_p | number | Nucleus sampling (0-1) |
| stream | boolean | Stream response via SSE |
| stop | string | array | Stop sequences |
| response_format | object | Set to {"type": "json_object"} for guaranteed JSON output |