Home/Anthropic/Claude Sonnet 5
Anthropic pricing

Claude Sonnet 5 API Pricing & Cost Calculator

Claude Sonnet 5 opens the Claude 5 family: near-flagship capability at $2/$10 with the same 1M context and 128K output as Opus. The price/performance pick of the Anthropic lineup.

Anthropic plans to retire Claude Sonnet 5 on 2027-06-30

Pricing below is still current. Worth factoring the retirement date into anything you are building on it long-term.

Still available from Anthropic: Claude Fable 5, Claude Mythos 5, Claude Opus 5

Input
$2.00
per 1M tokens
Output
$10.00
per 1M tokens
Context window
1000K
tokens
Released
2026-06
Cutoff
≈ Estimated tokenizer·$2.00 in·$10.00 out (per 1M)
Quick start with a use case
Total cost per call$0.007000
Input$0.002000
Output$0.005000
Cost comparison
Standard
$0.007000
With Caching
$0.006100
Save 13% ↓
With Batch
$0.003500
Save 50% ↓
Cutting costs? Open models start at $0.28/1M

DeepSeek, Kimi & 200+ open models on Novita AI — often 5–20x cheaper than proprietary APIs for comparable tasks.

Try Novita AI

Affiliate link — we may earn a commission at no extra cost to you.

Detailed pricing

Claude Sonnet 5 pricing breakdown

All pricing dimensions including caching and batch discounts.

TypePrice (per 1M tokens)
Input$2.0000
Output$10.0000
Cached input$0.2000
Cache write$2.5000
Batch input$1.0000
Batch output$5.0000
Cutting costs? Open models start at $0.28/1M

DeepSeek, Kimi & 200+ open models on Novita AI — often 5–20x cheaper than proprietary APIs for comparable tasks.

Try Novita AI

Affiliate link — we may earn a commission at no extra cost to you.

Last verified 2026-08-01 · Anthropic official pricing · ⚠️ Spotted a wrong price? Report in 30s →

How it compares

Claude Sonnet 5 vs alternatives

Single-call cost (1000 input + 500 output tokens) ranked from cheapest.

ModelPer call
Claude Sonnet 5
Anthropic · this page
$0.007000
DeepSeek V3.2
DeepSeek
$0.000480
GPT-5.6 Luna
OpenAI
$0.000800
Gemini 3.1 Flash Lite
Google
$0.001000
DeepSeek V4-Flash
DeepSeek
$0.001100
GPT-5 mini
OpenAI
$0.001250
Recommended use

When to choose Claude Sonnet 5

Claude Sonnet 5 shines for general-purpose tasks, code generation and review, and complex multi-step reasoning. Token counts are estimated within ~10-20% margin.

Context window of 1000K tokens handles entire codebases or book-length documents.
Prompt caching available — significant savings for repeated system prompts.
Batch API support for non-realtime workloads at ~50% discount.
Tool / function calling supported.
FAQ

Frequently asked questions

Claude Sonnet 5 costs $2.00 per 1M input tokens and $10.00 per 1M output tokens. A typical chat call (1000 input + 500 output tokens) costs approximately $0.0070. Use the calculator above to estimate your specific use case.
Claude Sonnet 5 supports a 1000K token context window with a max output of 128,000 tokens.
Yes. Cached input is priced at $0.20 per 1M tokens — 90% cheaper than uncached input. This is especially valuable for repeated system prompts, long-context retrieval, and chat threads with shared history.
Yes. Claude Sonnet 5 supports the Batch API at $1.00 input / $5.00 output per 1M tokens — typically 50% off standard pricing. Batch jobs complete within ~24 hours, ideal for non-realtime workloads like overnight data processing or content generation pipelines.
Yes, Claude Sonnet 5 accepts image input. Vision token pricing is generally calculated based on image dimensions and folded into the input token count. Specific image-specific pricing varies — refer to Anthropic's official documentation.
Token counts for Claude Sonnet 5 are estimated from character ratios (~10-20% margin). Cost calculations use prices verified on 2026-08-01. For final billing accuracy, always verify with Anthropic's usage dashboard.
Claude Sonnet 5 does not currently support fine-tuning. Consider another model in the Anthropic family if fine-tuning is required.