Anthropic: Claude Sonnet 4

Text input Image input File input Text output
Author's Description

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4)

Key Specifications
Cost
$$$$$
Context
1M
Released
May 22, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Tools Tool Choice Reasoning Include Reasoning Stop Max Tokens Temperature
Features

This model supports the following features:

Tools Reasoning
Performance Summary

Anthropic's Claude Sonnet 4, released May 22, 2025, demonstrates a strong balance of capability and efficiency, particularly excelling in coding and reasoning tasks. It achieves state-of-the-art performance on SWE-bench (72.7%) and boasts exceptional reliability with a 100% success rate across all benchmarks, indicating consistent and usable responses. While its speed performance is competitive, ranking in the 41st percentile, its pricing tends to be at premium levels (11th percentile). Key strengths include perfect accuracy in Hallucinations and Ethics benchmarks, showcasing robust truthfulness and adherence to ethical principles. It also exhibits high accuracy in Coding (93.0%), General Knowledge (99.8%), and Mathematics (93.0%), indicating strong foundational and advanced problem-solving abilities. Its Reasoning capabilities are also notable at 88.0% accuracy. A potential area for improvement is Instruction Following, where it achieved 66.0% accuracy, though still performing above average. Sonnet 4 is optimized for practical everyday use, offering advanced reasoning and reduced error rates in agent-driven workflows.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $3
Completion $15
Input Cache Read $0.3
Input Cache Write $3.75

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Amazon Bedrock
Amazon Bedrock | anthropic/claude-4-sonnet-20250522 200K $3 / 1M tokens $15 / 1M tokens
Anthropic
Anthropic | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Strategy Free Executions Accuracy Cost Duration
Other Models by anthropic