Skip to content
Claude Sonnet 4 logo

Claude Sonnet 4

Verified

Claude Sonnet 4 handles complex multimodal tasks with a million-token context.

AnthropicMultimodalClosed
Vision
Model page
Updated 2026-06-15

About Claude Sonnet 4

Claude Sonnet 4 was developed by Anthropic as a closed-weight system. It integrates vision and language processing in a single architecture. The model supports a context window of one million tokens for handling large inputs.

Its design emphasizes coherent analysis across text, images, and attached files. This enables consistent performance on tasks that combine multiple data types. The model remains unavailable for local deployment or weight inspection.

Users apply it to document review, visual question answering, and multi-turn conversations with extensive history. Typical workflows include summarizing long reports that contain embedded images or processing code repositories alongside diagrams.

Capabilities

Long-context reasoning
Vision understanding
Code generation
Document and file analysis
Complex instruction following
Nuanced content generation

How Claude Sonnet 4 compares

Claude Sonnet 4 (striped bar) vs other multimodal on intelligence, speed and price.

Price

USD per 1M output tokens · Lower is better · Claude Sonnet 4 ranks #111 of 139

$12.5
Nova Premier 1.0
$14.0
GPT-5.2-Codex
$14.0
GPT-5.2
$14.0
GPT-5.3-Codex
$14.0
GPT-5.2 Chat
$14.0
GPT-5.3 Chat
$15.0
Claude Sonnet 4
$15.0
Claude Sonnet 4.6
$15.0
Claude Sonnet 4.5
$15.0
GPT-5.4
$15.0
Anthropic Claude Sonnet Latest
$15.0
Sonar Pro
$15.0
Sonar Pro Search

Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).

Best for

Long legal and research document review

Processes entire contracts, case files, or research papers up to 1M tokens while preserving nuanced reasoning across the full context.

Multimodal data analysis projects

Combines vision understanding with document analysis to interpret charts, diagrams, and images embedded in large reports or datasets.

Complex software development tasks

Generates and refines code across multiple files while following detailed instructions for architecture and integration requirements.

Strengths & limitations

Strengths

  • +Strong reasoning and coherence over long inputs
  • +Careful safety alignment
  • +High-quality, detailed responses
  • +Effective multimodal integration

Limitations

  • Conservative refusals on sensitive topics
  • No native audio or video support
  • May prioritize caution over maximum helpfulness

Cost calculator

Estimate what Claude Sonnet 4 would cost for your usage.

$0.0105
per request
$105
estimated / month

Based on Claude Sonnet 4's $3.00/1M input · $15.00/1M output. Estimate only — actual cost varies by provider and caching.

Quick start

OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. Only the model slug changes between models.

JavaScript · openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-4",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);

Model slug: anthropic/claude-sonnet-4

Editor's verdict

Our take on Claude Sonnet 4

Claude Sonnet 4 is Anthropic's proprietary multimodal with a 1000K-token context window.

At $15.00 per 1M output tokens, it is premium-priced for its class.

It is available through Anthropic's API and aggregators like OpenRouter.

Best suited to strong reasoning and coherence over long inputs and careful safety alignment.

Did you find this helpful?

Frequently asked questions

The model supports a context length of 1,000,000 tokens.

User reviews

Real, verified reviews from the community shape this model's rating.

Loading reviews…

Sign in to review

Other Claude models

Sibling versions in the Claude family from Anthropic.

Promote Claude Sonnet 4

Add this badge to your website, or share the tool.

DFeatured on DhanasviClaude Sonnet 4 2