Atlas / Models / Anthropic / Anthropic: Claude Sonnet 4

Anthropic: Claude Sonnet 4✓ Catalog verified

anthropic/claude-sonnet-4

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

Input price
$3.00 /1M
Output price
$15.00 /1M
Context
200K
Modalities
imagetextfile
Released
May 22, 2025
Tool calling
✓ Yes
Atlas signal
90/100
01

Overview

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

Access: available through the official Anthropic API. Context window: 200K.

ModelsAtlas catalog, merged with official vendor documentation.Last refreshed Aug 5, 2026
02

Specifications

API identifieranthropic/claude-sonnet-4
ProviderAnthropic
Model typeMultimodal LLM
Context window200K catalog
Input modalitiesimage · text · file
Output modalitiestext
ReleasedMay 22, 2025
TokenizerClaude
ModeratedYes
Architecture modalitytext+image+file->text
Supported parameters
include_reasoningmax_tokensreasoningstoptemperaturetool_choicetoolstop_ktop_p
Source: provider documentation + catalog feedMethodology →

API defaults

Default parameters
{
  "top_p": null,
  "temperature": null,
  "frequency_penalty": null
}
03

Pricing

Live pricing components for anthropic/claude-sonnet-4 as published in the catalog.

$3.00
Input /1M
$15.00
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$0.000003$3.00 / 1MPer input token
Completion tokens$0.000015$15.00 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search fee$0.01$0.010000Per search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$4.5Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual Understanding✓ SupportedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-HostingNot advertisedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Anthropic: Claude Sonnet 4
MMLU Signal (Reasoning)
97signal
Coding Signal (HumanEval proxy)
95signal
Math Signal (GSM8K proxy)
83signal
Science Signal (GPQA proxy)
83signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call Anthropic: Claude Sonnet 4 through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="anthropic/claude-sonnet-4",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does Anthropic: Claude Sonnet 4 cost?

$3.00 per 1M input tokens and $15.00 per 1M output tokens on the official Anthropic API.

What is the context window of Anthropic: Claude Sonnet 4?

Anthropic: Claude Sonnet 4 supports up to 200K tokens of context.

Does Anthropic: Claude Sonnet 4 support tool / function calling?

Yes, Anthropic: Claude Sonnet 4 supports tool / function calling — you can register tools and the model will emit structured tool calls.

How do I access Anthropic: Claude Sonnet 4?

Use the official Anthropic API with the model id `anthropic/claude-sonnet-4`. See the Quick start section above for code examples.