Claude Sonnet 5
Claude Sonnet 5 is a Claude 5 model from Anthropic, released in 2026-06. It costs $3 / $15 per 1M, has a 1M-token context window, and is best for coding, agents, rag. Last verified 2026-07-11.
Spec sheet
Pricing
- Input
- $3 / 1M
- Output
- $15 / 1M
- Cached input
- $0.3 / 1M
- Batch discount
- 50%
- Free tier
- No
Context & speed
- Context window
- 1M tokens
- Max output
- 128k tokens
- Throughput
- ~90 tok/s
- Time to first token
- ~550 ms
- Speed tier
- balanced
Capabilities
- Tool use
- Yes
- Structured output
- Yes
- Prompt caching
- Yes
- Extended thinking
- Yes
- Vision input
- Yes
- Audio in / out
- No
- Fine-tuning
- No
Deployment
- Open weights
- No
- On-prem
- No
- HIPAA eligible
- Yes
- Zero retention
- Yes
- Regions
- us, eu
Estimated monthly cost
Assumes typical token shape: 2k input, 600 output per call. Prompt caching is excluded from these figures.
When to use Claude Sonnet 5
Sweet spot
- coding
- agents
- rag
- long documents
- general production
Known trade-offs
- slightly below Opus on hardest reasoning
Best use cases
Best LLM for Autonomous agents
Best-in-class tool use + long-horizon planning (τ-bench leader)
Best LLM for Coding assistant
Current benchmark leader on real-world coding + agents
Best LLM for Long documents (100k+ tokens)
1M context with excellent retrieval + prompt caching
Best LLM for RAG
1M context + prompt caching (up to 90% cost cut on repeat prompts)
Best LLM for Vision
Best for UI/document understanding and diagrams
Best LLM for Content writing
Nearly as good as Opus, 5× cheaper
Works with
Compare Claude Sonnet 5 to other models
FAQ — Claude Sonnet 5
How much does Claude Sonnet 5 cost?
Claude Sonnet 5 costs $3 / $15 per 1M tokens on the Anthropic API. Cached input reads cost $0.3 per 1M, cutting the input bill by roughly 90% on repeat system prompts. The batch API offers a 50% discount for async workloads.
What is the context window of Claude Sonnet 5?
Claude Sonnet 5 has a 1M-token context window with up to 128k tokens of output. That's enough for entire codebases, long transcripts, or multi-document RAG.
Does Claude Sonnet 5 have a free tier?
No — Default model on Claude.ai Free/Pro web chat; API requires paid credits.
Is Claude Sonnet 5 HIPAA / EU / on-prem friendly?
Claude Sonnet 5 is HIPAA-eligible, available in EU regions, and is API-only. Zero data retention is available for enterprise customers.
What is Claude Sonnet 5 best for?
Claude Sonnet 5 is best for coding, agents, rag, long documents. Trade-offs to be aware of: slightly below Opus on hardest reasoning.
Which tools and SDKs work with Claude Sonnet 5?
Claude Sonnet 5 integrates with Anthropic SDK, Claude Code, Cursor, AWS Bedrock, Google Vertex AI, Vercel AI SDK, LangChain, LlamaIndex, OpenRouter. Most major AI frameworks support it either natively or through OpenAI-compatible endpoints.