Claude Sonnet Cost Calculator
Paste your prompt and instantly calculate the USD cost for Claude Sonnet 4, Claude 3.5 Sonnet, and other Sonnet-tier models.
Tokens: 0
Words: 0
Characters: 0
Input cost: $0.000000
Output cost: $0.000000
Claude Sonnet Cost Calculator — Real-Time API Pricing
The Claude Sonnet Cost Calculator provides instant USD cost estimates for Anthropic's Sonnet model family. Whether you're working with Claude Sonnet 4, Claude 3.5 Sonnet, or earlier versions, this tool calculates your exact API cost based on current Anthropic pricing.
Claude Sonnet API Pricing (per 1M tokens)
| Model | Input (per 1M) | Output (per 1M) | Context Window |
|---|---|---|---|
| Claude Opus 4 | $15.00 | $75.00 | 200K tokens |
| Claude Sonnet 4 | $3.00 | $15.00 | 200K tokens |
| Claude 3.7 Sonnet | $3.00 | $15.00 | 200K tokens |
| Claude 3.5 Sonnet | $3.00 | $15.00 | 200K tokens |
| Claude 3 Sonnet | $3.00 | $15.00 | 200K tokens |
| Claude 3.5 Haiku | $0.80 | $4.00 | 200K tokens |
Sonnet vs Opus vs Haiku: Which to Choose?
Claude Sonnet models offer an optimal balance between intelligence and cost. Opus 4 is the most powerful but 5× more expensive than Sonnet. Haiku is the fastest and cheapest, ideal for high-volume classification or extraction tasks where maximum intelligence isn't needed.
How to Reduce Claude API Costs
- Use prompt caching for repeated system prompts — Anthropic offers up to 90% discount on cached tokens.
- Choose Claude 3.5 Haiku for classification, summarization, and simple extraction tasks.
- Use Claude Sonnet for general development, coding, and analysis at 5× lower cost than Opus.
- Batch API requests where real-time response isn't required for a 50% discount.
Related Tools
- Claude Opus 4 Token Counter — token counting for Claude's most powerful model
- Multi-Model Cost Comparison — compare Claude vs GPT vs Gemini costs side-by-side
- Prompt vs Completion Cost Split — breakdown of input vs output token costs
- Monthly API Budget Planner — estimate how many Claude calls fit your budget
- Token Cost Converter — convert any token count directly to USD cost