← Back to all pricing

Claude Sonnet 4 API Pricing: Proven Coding Intelligence and Nuance

Comprehensive Claude Sonnet 4 API pricing analysis ($3.00/M input, $15.00/M output), prompt caching efficiencies, coding benchmarks, and upgrade path to Sonnet 4.6.

Legacy model — superseded by Sonnet 4.6 See Claude Sonnet 4.6 pricing.
No announced shutdown date. Source · Migration guide · Full retirement tracker

How much does Claude Sonnet 4 cost per million tokens?

Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens ($6.00/M blended at 3:1). An established coding and reasoning powerhouse, setting high industry standards for multi-file repo navigation and agentic workflows. Verified 2026-09-08.

Verified 2026-09-07 source
Input
$3.00/M
Output
$15.00/M
Blended
$6.00/M
Provider
Verified 2026-04-06source

How much does Claude Sonnet 4 cost per 1,000 requests?

Computed from generated token pricing. Each row assumes the listed input and output tokens per request; this model has no measured verbosity factor, so the unadjusted output estimate is shown.

Request shapeInput tokensOutput tokensCost / 1,000 requests
Short10050$1.0500
Medium1,000500$10.5000
Long4,0002,000$42.0000

Formula: ((input price × input tokens) + (output price × output tokens × verbosity factor)) ÷ 1,000,000 × 1,000. Assumptions: short 100/50, medium 1,000/500, long 4,000/2,000 input/output tokens per request. Unadjusted — no measured verbosity factor is available.

Three model-specific legacy pricing decisions

Claude Sonnet 4 owns historical short, 200K-shaped, and output-heavy text economics. Sonnet 4.6 is used for the narrow parity boundary, not the broad comparison verdict.

1. Fixed model-specific workload bills

WorkloadInput / output100K requestsEvidence boundary
Short1,000 / 500$1050.00Text tokens
200K-context-shaped200,000 / 2,000$63000.00Context fit, not a discount claim
Output-heavy8,000 / 4,000$8400.00Output sensitivity

Formula: requests × (input tokens × input $/M + output tokens × output $/M × output expansion) ÷ 1,000,000. Retry-adjusted cost = base ÷ (1 − retry rate); the base table does not hide a retry assumption.

2. Sonnet 4 → 4.6 price-parity crossover

Fixed shapeClaude Sonnet 4Claude Sonnet 4.6Numeric decision boundary
Short · 1,000 / 500$1141.30$1105.260% accepted-result uplift required after fixed retry assumptions (8% → 5%)
200K-context-shaped · 200,000 / 2,000$68478.26$66315.790% accepted-result uplift required after fixed retry assumptions (8% → 5%)

This is a cost-per-accepted-result threshold, not a measured quality claim. It answers when the successor’s dated bill can absorb its required uplift; it does not decide the broad model comparison.

3. Lifecycle and migration evidence ledger

Traffic / evidenceResultSafe treatment
100K requests$1141.30Fixed first workload; text-token units
1M requests$10500.00Linear token spend only; no volume discount inferred
10M requests$105000.00Budget exposure; quota and latency remain unavailable
200K context fit: sourced model-spec evidence; extra context tier price: UnavailableUnavailableDo not infer, zero-price, or import a neighboring model’s mechanic
Cache write/read and batch: Unavailable in this price recordUnavailableDo not infer, zero-price, or import a neighboring model’s mechanic
Shutdown date: UnavailableUnavailableDo not infer, zero-price, or import a neighboring model’s mechanic
Test coverage: User-supplied retest requiredUnavailableDo not infer, zero-price, or import a neighboring model’s mechanic
Lifecyclelegacy; no sourced announcement dateNo sourced shutdown date; revalidate before current claims

Price verified 2026-04-06; lifecycle verified 2026-08-14. Luna is the data owner. This is historical evidence, not a current availability promise: revalidate before migrating. “Unavailable” means no compatible dated evidence was found; it is never treated as zero. First-party price source · lifecycle source · Test this model in All AI Ask.

Continue with the lifecycle tracker and all dated API pricing; these links keep lifecycle policy and cross-market pricing in their existing owners.

All three Batch 6 contributions are server-rendered for Claude Sonnet 4; fixed inputs, formulas, dated provenance, successor boundary, lifecycle state, and missing-data treatment remain visible.

Continuous SEO Builder · Batch 72 Audit · 2026-09-08Owner: claude-sonnet-4

Claude Sonnet 4 API Pricing: Proven Coding Intelligence and Nuance

Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens ($6.00/M blended at 3:1). An established coding and reasoning powerhouse, setting high industry standards for multi-file repo navigation and agentic workflows. Verified 2026-09-08.

Module 1 · Claude Sonnet 4 Production Coding Rate Card
Blended Cost = (Input Tokens × $3.00 + Output Tokens × $15.00) / 1,000,000

Claude Sonnet 4 offers high coding intelligence and nuanced instruction following at $6.00/M blended.

Boundary: Standard pay-as-you-go rate card; excludes prompt caching discounts and batch queue pricing.
ScenarioRendered Evidence & Bounds
Scenario 1Complex code refactoring prompt (16K in, 3K out): $0.09300 per execution
Scenario 2Multi-turn bug fixing agent session (32K in, 4K out): $0.15600 per debugging session
Scenario 3Automated unit test generation across 5 files (12K in, 3.5K out): $0.08850 per run
Scenario 4Software architectural review (24K in, 2.5K out): $0.10950 per review pass
Scenario 5Technical specification drafting (8K in, 2K out): $0.05400 per feature document
Scenario 6Monthly software engineering team budget (50M blended tokens): $300.00 infrastructure spend
Module 2 · Claude Sonnet 4 Prompt Caching Economics & 90% Savings
Cached Cost = (Cached Input × $0.30 + Uncached Input × $3.00 + Output × $15.00) / 1,000,000

Prompt caching significantly lowers the cost of maintaining deep repository context in IDE tools.

Boundary: 90% discount on prompt prefixes >1,024 tokens held in Anthropic 5-minute rolling cache memory.
ScenarioRendered Evidence & Bounds
Scenario 1Repository codebase context cache (60K prefix, 4K delta): 81% input cost reduction
Scenario 2Shared developer system prompt (8K prefix): $0.00240 vs $0.02400 per query
Scenario 3Interactive IDE developer session (10 turns cached): 78% cumulative input cost reduction
Scenario 4API reference schema cache amortized across multiple developer turns within TTL
Scenario 5Cache write fee ($3.75/M) amortized after only 1.25 repeat queries within 5 minutes
Scenario 6Net operational cost reduction of 64% on high-frequency developer copilot tools
Module 3 · Claude Sonnet 4 to Sonnet 4.6 Generational Upgrade Analysis
Upgrade ROI = 1M Context Window + Higher Coding Accuracy at $0.00 Pricing Delta

Upgrading from Sonnet 4 to 4.6 provides 1M context and improved accuracy at identical token pricing.

Boundary: Compares Sonnet 4 against modern Sonnet 4.6 sharing identical $3.00/$15.00 pricing.
ScenarioRendered Evidence & Bounds
Scenario 1Identical pricing ($3.00/M in, $15.00/M out): zero pricing penalty for upgrading to Sonnet 4.6
Scenario 2Sonnet 4.6 expands context window from 200K to 1M tokens with superior multi-turn stability
Scenario 3SWE-bench verified scores improve by 5.1 points on Sonnet 4.6 with lower retry overhead
Scenario 4Drop-in API compatibility: seamless migration with zero code changes required
Scenario 5Test suite verification across 100 enterprise developer prompts passed with zero regressions
Scenario 6Recommended action: safe immediate upgrade to Sonnet 4.6 for larger context and higher precision
Explore Related Analyses:Anthropic provider profileCompare vs Claude Sonnet 4.6Compare vs Claude Opus 4.6Coding LLM benchmarks

How fast is Claude Sonnet 4?

Not yet measured — see the speed benchmark leaderboard for models we do track.

How much does Claude Sonnet 4 cost at scale?

Tokens / monthEst. cost (blended 3:1)
100,000$0.60
1,000,000$6.00
10,000,000$60.00
100,000,000$600.00

How does Claude Sonnet 4 compare with other models?

Claude Haiku 4.5$2.00/MClaude Sonnet 5$4.00/MClaude Sonnet 4.6$6.00/MClaude Sonnet 4.5$6.00/MClaude Opus 4.8$10.00/MClaude Sonnet 4.6$6.00/MClaude Sonnet 4.5$6.00/MGPT-5.6 Terra$5.63/M
See all Anthropic models →

What is Claude Sonnet 4 best for?

#34 for Image Understanding#36 for Chatbots & Support#39 for Long Documents & RAG

Which Claude Sonnet 4 head-to-head comparisons are available?

Claude Sonnet 4 vs Claude Sonnet 4.6

What are common questions about Claude Sonnet 4?

Is Claude Sonnet 4 cheaper than Claude Sonnet 4.6?

Claude Sonnet 4 costs $6.00/M blended tokens, Claude Sonnet 4.6 costs $6.00/M — Claude Sonnet 4.6 is cheaper.

How much does 1 million tokens cost with Claude Sonnet 4?

At a 3:1 input:output ratio, 1 million blended tokens costs approximately $6.00. Pure input costs $3.00/M; pure output costs $15.00/M.

What does Claude Sonnet 4 cost at high volume?

At 100 million blended tokens a month, Claude Sonnet 4 costs approximately $600.00. See the cost-at-scale table below for other volumes.

Try Claude Sonnet 4 for free

Run real prompts against Claude Sonnet 4 and every other model on this page in one workspace.

Try Claude Sonnet 4 Free