In May 2025, Anthropic unveiled Claude Sonnet 4 alongside its sibling model Claude Opus 4, marking a major milestone in the evolution of the Claude family of large language models. Building on the strengths of its predecessor, Claude Sonnet 3.7, Sonnet 4 introduces a suite of enhancements targeting reasoning depth, coding proficiency, and seamless tool integration. By balancing high performance with practical efficiency, Sonnet 4 aims to serve a broad spectrum of usersโfrom individual developers and research teams to enterprise customers requiring reliable AI assistants for complex, high-volume tasks. This article synthesizes the latest announcements, system card disclosures, and third-party analyses to provide a comprehensive overview of โWhat is Claude Sonnet 4?โ .
What is Claude Sonnet 4?
Claude Sonnet 4 is the newest iteration of Anthropicโs โSonnetโโtier model, designed as a versatile, generalโpurpose AI assistant that offers both standard and hybrid reasoning modes. As the successor to Claude Sonnet 3.7, it delivers enhanced coding, complexโproblem solving, and precision in responses, all while maintaining costโefficiency for a broad range of tasks.
Origin and Naming
The โClaudeโ series, named in homage to informationโtheory pioneer Claude Shannon, reflects Anthropicโs focus on transparency, safety, and ethical AI development. Within this series, โSonnetโ models have historically provided a balance: more capable than the faster, lighter โHaikuโ models, yet more costโeffective and efficient than the most powerful โOpusโ variants .
Core Capabilities
- Hybrid Reasoning: Users can toggle between a default โfastโ mode for rapid responses and an โextended thinkingโ mode that devotes more compute to multiโstep reasoning and tool usage.
- Enhanced Coding Support: Sonnet 4 exhibits improved performance on coding tasks, from autocompleting lines of code to debugging complex algorithms.
- LongโContext Understanding: With support for tens of thousands of tokens (and up to 1 million tokens in enterprise deployments), it can analyze and generate responses for lengthy documents, contracts, or datasets.
- Safety and Alignment: Built under Anthropicโs Constitutional AI framework, Sonnet 4 is designed to minimize harmful outputs and adhere to ethical guidelines, reducing shortcut reasoning by approximately 65% compared to prior models.
How does Claude Sonnet 4 stand out within the Claude 4 family?
Within the Claude 4 lineupโwhich includes Haiku (fastest), Sonnet (balanced), and Opus (most powerful)โSonnet 4 targets users who require a robust mix of capability and efficiency without the premium cost of the Opus tier.
Hybrid Modes: Speed vs. Depth
- Standard Mode: Prioritizes latency, ideal for chatbots, drafting emails, or summarizing text.
- Extended Thinking Mode: Allocates more compute to internal reasoning steps, summarizing longer โthoughtโ chains for transparency. Notably, only ~5% of extended thinking chains exceed the summarization threshold, ensuring concise insights most of the time.
Efficiency and Cost-Effectiveness
- Token Pricing: Priced at $3 per million input tokens and $15 per million output tokens, Sonnet 4 offers roughly oneโfifth the cost of Opus 4 while delivering enhanced reasoning over Sonnet 3.7 .
- Resource Footprint: Optimized for CPU inference, enabling deployment in environments where GPU resources are limited or costly.
Integrated Tool Use and Parallel Execution
Another major enhancement is Sonnet 4โs ability to interleave its internal reasoning with external tool invocationsโsuch as web search, code execution environments, or proprietary databasesโwithin a single query. This โextended thinking with tool useโ feature allows simultaneous execution of multiple tools, enabling complex workflows like fact-checking against live data sources, fetching external documents, or orchestrating API calls. Developers report that tooling integration has become up to 220% more reliable compared to Sonnet 3.7, significantly boosting practical utility for automated coding and data analysis tasks .
Memory and Context Window Enhancements
Sonnet 4 inherits an expanded context window that can handle hundreds of thousands of tokens in enterprise deploymentsโfacilitating the analysis of lengthy documents, multimodal inputs, and multi-turn conversations without losing coherence. Additionally, Sonnet 4 features improved โshort-term memoryโ for the duration of a session, retaining critical details across exchanges and enabling smoother interactions. These memory improvements are particularly valuable for use cases requiring continuity, such as drafting research papers, conducting legal analysis, or managing customer support dialogues .
What benchmarks demonstrate Claude Sonnet 4โs performance?
Anthropic has subjected Sonnet 4 to a battery of public and internal evaluations, showcasing its strength in both capability and safety.
Coding and Reasoning Benchmarks
- MBPP (Python Code Generation): Sonnet 4 achieves pass rates substantially higher than Sonnet 3.7 on the โhardโ problem set (0.824 vs. ~0.75), demonstrating its improved algorithmic reasoning .
- BIG-Bench Hard: On complex linguistic tasks requiring logic and world knowledge, Sonnet 4 scores above 0.82, outperforming its predecessor by over 4% and narrowing the gap with Opus 4 .
Safety and Alignment Evaluations
- Bias Benchmark for Question Answering (BBQ): Sonnet 4 records a bias score of 0.61% (vs. 0.21% for Opus 4) with 99.4% accuracy, reflecting strong mitigation of discriminatory responses .
- Cybersecurity Suite: In specialized โcyberโharnessโ and โcryptoโ tests, Sonnet 4 matches or exceeds Sonnet 3.7โs performance, demonstrating its ability to reason about network security and cryptographic protocols without engaging in harmful behaviour.

How can users access Claude Sonnet 4?
Anthropic and its cloud partners have made Claude Sonnet 4 widely available through multiple channels, catering to both freeโtier users and enterprise customers.
Access Channels
- Anthropic API: Direct API access with RESTful endpoints, supporting JSON payloads and streaming responses.
- Claude.ai Interface: A webโbased playground offering chat UI, document summarization, and code editing. Free users receive access to Sonnet 4 (with rate limits), while paid tiers unlock extended thinking and Opus 4.
- Amazon Bedrock: Available as part of Amazonโs managed Foundation Models service, enabling integration with AWS services such as Lambda and SageMaker .
- Google Cloud Vertex AI: Sonnet 4 can be invoked via Vertexโs unified API, integrating with Google Cloud storage and data analytics pipelines .
- GitHub Copilot: Now in public preview, Sonnet 4 powers Copilot suggestions for code completion and in-editor research, succeeding Sonnet 3.7 and offering a balanced mix of capability and speed .
- CometAPI: CometAPI provides a unified REST interface that aggregates hundreds of AI modelsโunder a consistent endpoint, with built-in API-key management, usage quotas, and billing dashboards. Developers can access Claude Sonnet 4 API through CometAPI.CometAPIโve also added
cometapi-sonnet-4-20250514andcometapi-sonnet-4-20250514-thinkingspecifically for use in Cursor.
Pricing Plans
| Plan | Sonnet 4 Access | Opus 4 Access | Extended Thinking |
| Free | Standard mode, limited usage | Not included | No |
| Pro ($20/mo) | Sonnet 4 standard + extended mode | Opus 4 standard mode only | Yes |
| Team/Enterprise | Unrestricted Sonnet & Opus 4 | Enhanced SLAs, dedicated instances | Yes |
Token pricing: Sonnet 4 input at $3/million, output at $15/million; Opus 4 input at $15/million, output at $75/million.Tiered per-token billing with volume discounts; Sonnet 4 usage is available to both free and paid API subscribers (free tier limited to 5M tokens per month).
What use cases can benefit from Claude Sonnet 4?
Developer Workflows and Code Generation
Sonnet 4โs robust coding metrics make it an ideal assistant for tasks such as boilerplate generation, code refactoring, automated testing scaffolds, and inline documentation. Its extended thinking with tool use can fetch and analyze external code repositories, perform live linting, and integrate with CI/CD pipelinesโstreamlining development lifecycles and reducing context switching for engineers .
Content Creation and High-Context Tasks
Beyond coding, Claude Sonnet 4 excels at high-context understanding required for drafting technical reports, legal memos, and research summaries. Its large context window allows ingestion of entire documentsโsuch as white papers or regulatory filingsโfollowed by precise Q&A, summarization, or translation. Marketing teams can leverage Sonnet 4 to generate SEO-optimized content, while customer support can automate ticket triage and response generation with minimal oversight .
By blending cost-effective pricing, hybrid reasoning, and strong safety guarantees, Claude Sonnet 4 stands poised to serve a diverse array of usersโfrom individual developers to large enterprisesโseeking a reliable AI assistant for coding, analysis, and content creation. Its position within the Claude 4 family ensures that users can select the ideal balance of power and efficiency, while continuous updates promise that Sonnet 4 will only grow more capable in the months ahead.
Getting Started
Developers can accessย Claude Sonnet 4 APIย ย (model:ย claude-sonnet-4-20250514ย ;ย claude-sonnet-4-20250514-thinking). To begin, explore the modelโs capabilities in theย Playgroundย and consult theย API guideย for detailed instructions. Before accessing, please make sure you have logged in to CometAPI and obtained the API key. CometAPIโve also added cometapi-sonnet-4-20250514 and cometapi-sonnet-4-20250514-thinking specifically for use in Cursor.
New to CometAPI?ย Start a free 1$ trialย and unleash Sonnet 4 on your toughest tasks.
We canโt wait to see what you build. If something feels off, hit the feedback buttonโtelling us what broke is the fastest way to make it better.
