Claude Sonnet 4
Pricing & Specs

Anthropic · $3 input / $15 output per 1M tokens · 200K context window

$3
per 1M input tokens
$15
per 1M output tokens
200K
context window (tokens)

The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on Claude Sonnet 4 costs about $0.0105 — roughly $10.50 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.

Claude Sonnet 4 API Pricing

TokensPrice
Input$3 / 1M tokens
Output$15 / 1M tokens
Cached input$0.3 / 1M tokens

50% discount available for batch API requests. Batch API pricing is available for this model at 50%. Cache writes and cache hits or refreshes are billed separately.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0105
1K 1,000 runs of that task: $10.50
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

Claude Sonnet 4 Specs

SpecValue
Context window200K tokens
Max output tokens64K tokens
Input modalitiestext, image
Output modalitiestext
Latency (measured by OpenMark)~1.1s median response
Reasoning modelNo
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes
Batch APIYes

Capabilities

text generation vision extended thinking tool use structured outputs streaming

FAQ

How much does Claude Sonnet 4 cost?

Claude Sonnet 4 costs $3 per 1M input tokens and $15 per 1M output tokens ($0.3 per 1M cached input tokens).

What is Claude Sonnet 4's context window?

Claude Sonnet 4 has a 200K-token context window. Maximum output is 64K tokens.

Can I test Claude Sonnet 4 on my own task?

Yes. OpenMark lets you benchmark Claude Sonnet 4 against 100+ models on your own task with real API calls — no API keys needed, free tier available.

Is Claude Sonnet 4 the right model for YOUR task?

Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.

Benchmark Claude Sonnet 4 — Free →