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

MetricValue
Input price (per 1M tokens)$3.00
Output price (per 1M tokens)$15.00
Context window200K tokens
Speed (typical)80 tok/s
ProviderAnthropic

Cost for Common Tasks

TaskInput TokensOutput TokensCost
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

ModelInput (per 1M)Output (per 1M)ContextSpeedQuality
Claude Sonnet 4$3.00$15.00200K80 tok/s88/100
Gemini 2.0 Pro$1.25$5.001M100 tok/s87/100
GPT-4o$2.50$10.00128K90 tok/s90/100
Llama 3 405BSelf-hostSelf-host128K25 tok/s86/100

When to Use Claude Sonnet 4

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 LevelDaily 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.