What Does Claude Sonnet 4 Cost?
Claude Sonnet 4 pricing: $3.00/$15.00 per 1M tokens (input/output). Context window: 200K. Best for coding, writing, balanced cost/quality workloads.
Pricing Overview
| Metric | Value |
|---|---|
| Input price (per 1M tokens) | $3.00 |
| Output price (per 1M tokens) | $15.00 |
| Context window | 200K tokens |
| Speed (typical) | 80 tok/s |
| Provider | Anthropic |
Cost for Common Tasks
| Task | Input Tokens | Output Tokens | Cost |
|---|---|---|---|
| 1-page summary | ~800 | ~400 | $0.0084 |
| 10K token conversation | ~8,000 | ~2,000 | $0.0540 |
| Batch of 1,000 API calls | ~500K | ~500K | $9.0000 |
Claude Sonnet 4 vs Alternatives
| Model | Input (per 1M) | Output (per 1M) | Context | Speed | Quality |
|---|---|---|---|---|---|
| Claude Sonnet 4 | $3.00 | $15.00 | 200K | 80 tok/s | 88/100 |
| Gemini 2.0 Pro | $1.25 | $5.00 | 1M | 100 tok/s | 87/100 |
| GPT-4o | $2.50 | $10.00 | 128K | 90 tok/s | 90/100 |
| Llama 3 405B | Self-host | Self-host | 128K | 25 tok/s | 86/100 |
When to Use Claude Sonnet 4
- Best for: coding, writing, balanced cost/quality workloads
- Context window: 200K tokens — suitable for long documents, entire codebases
- Speed: 80 tok/s — good for interactive use
- Quality: 88/100 — strong, suitable for most tasks
API Code Example with Cost Calculation
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-sonnet-4-20260301",
max_tokens=1024,
messages=[{"role": "user", "content": "Summarize this document..."}]
)
# Cost calculation
input_tokens = response.usage.input_tokens
output_tokens = response.usage.output_tokens
cost = (input_tokens / 1_000_000) * 3 + (output_tokens / 1_000_000) * 15
print(f"Tokens: {input_tokens} in / {output_tokens} out")
print(f"Cost: {cost:.6f}")
# Typical 1-page summary: ~$0.0084
Monthly Cost Estimates
| Usage Level | Daily Tokens (in/out) | Monthly Cost |
|---|---|---|
| Light (personal project) | 50K / 25K | $15.75 |
| Medium (small SaaS) | 500K / 250K | $157.50 |
| Heavy (production app) | 5M / 2.5M | $1575.00 |
FAQ
How much does Claude Sonnet 4 cost per API call?
A typical Claude Sonnet 4 API call with 1K input and 500 output tokens costs approximately $0.0105. Pricing is $3.00 per 1M input tokens and $15.00 per 1M output tokens.
Is Claude Sonnet 4 worth the price?
Claude Sonnet 4 scores approximately 88/100 on aggregate benchmarks. It is best suited for coding, writing, balanced cost/quality workloads. At $3.00/$15.00 per 1M tokens, it offers competitive value for its quality tier.
What are cheaper alternatives to Claude Sonnet 4?
Top alternatives: Gemini 2.0 Pro at $1.25/$5.00, GPT-4o at $2.50/$10.00, Llama 3 405B (self-hosted). Use KickLLM's calculator to compare costs for your specific workload.
Prices last verified: April 2026. Pricing may change — always check provider websites for current rates.
Calculate your LLM API costs with KickLLM — free, no sign-up required.