TryLLMCost
All 20 Calculators/Provider Calculators
Anthropic Claude Pricing

Claude API Cost Calculator (Sonnet 4, Opus 4 & Haiku 3.5)

Model exact Anthropic token spend across Claude Sonnet 4, Opus 4, and Haiku 3.5 — including Anthropic's industry-leading 90% prompt-cache read discount.

Reference public API rates (2025–2026) — editable inline
34 tok
34 tok
~608 tok
75%
0–90%
Async Batch API (24h SLA)
Live Token EstimatorEnglish Prose
OpenAI (o200k)
68
Claude (~1.08x)
73
Gemini (~1.03x)
70
Input Words
42
Characters
314
Out Tokens
608
Cheapest Match (1k calls):Claude 3.5 Haiku · $2.65
#Model & ProviderContext / SpeedInput $/1M (edit)Output $/1M (edit)Cached $/1M1 Call1,000 Calls100,000 Callsvs GPT-4o
1
Claude 3.5 HaikuFocus
Anthropic·Fast / Budget
200K ctx
120 tok/s
$0.080$0.0026$2.65$264.70-57%
2
Claude Sonnet 4Focus
Anthropic·Frontier
200K ctx
72 tok/s
$0.30$0.0099$9.93$992.62+60%
3
Claude 3.7 SonnetFocus
Anthropic·Frontier
200K ctx
75 tok/s
$0.30$0.0099$9.93$992.62+60%
4
Claude Opus 4Focus
Anthropic·Frontier
200K ctx
42 tok/s
$1.50$0.05$49.63$4,963.09+702%

Tip: Click any Input or Output $/1M cell to test custom enterprise discounts, Bedrock/Vertex tiers, or Gemini 2.5 Pro >200k long-context rates inline.

Key Cost Benchmarks & Pricing Dynamics

90% Cache Read Discount
$0.30 / 1M Input

Claude Sonnet 4 cached input drops from $3.00 to $0.30/1M—making long repo contexts dramatically cheaper.

Output-Heavy Pricing Ratio
5:1 Output/Input

Anthropic charges 5x more per output token ($15 vs $3 on Sonnet 4), so concise output schemas yield huge savings.

Haiku 3.5 Sub-Agent Tier
$0.08 Cached Input

Pairing Claude 3.5 Haiku for routing/extraction with Sonnet 4 for final synthesis protects 80%+ SaaS margins.

Focused Models in This Calculator

Claude Sonnet 4Anthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~72 tok/s

Autonomous coding agents, editorial writing, tool use

Claude 3.7 SonnetAnthropic
Input/1M
$3.00
Output/1M
$15.00
Cached/1M
$0.30
200K context~75 tok/s

Hybrid extended thinking & enterprise workflows

Claude Opus 4Anthropic
Input/1M
$15.00
Output/1M
$75.00
Cached/1M
$1.50
200K context~42 tok/s

Hardest multi-file engineering, legal & research synthesis

Claude 3.5 HaikuAnthropic
Input/1M
$0.80
Output/1M
$4.00
Cached/1M
$0.080
200K context~120 tok/s

Low-latency customer support & prompt-cached sub-agents

Production FinOps Optimization Playbook

Add cache_control Breakpoints on Tool Definitions & Docs

Anthropic requires explicit cache_control markers. Place breakpoints right after your system prompt, tool JSON schemas, and pinned reference docs to unlock 90% read discounts on turns 2–20.

Constrain Verbosity in Agent Loops

Because Sonnet 4 output is $15/1M and Opus 4 output is $75/1M, stripping conversational preamble and requesting terse JSON diffs cuts total Claude bills by 30–45%.

Use Opus 4 Strictly as an Escalation Model

At $15/$75 per 1M tokens, running 100% of SaaS traffic on Opus 4 destroys gross margin on sub-$50/mo plans. Route only failed retries or architectural planning to Opus 4.

Frequently Asked Questions

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

For a 2,000-input / 500-output token call without caching, Claude Sonnet 4 costs ~$0.0135 per call ($13.50 per 1,000 calls). With 80% prompt cache hits, the same 1,000 calls drop to ~$9.18.

Why does Claude tokenize slightly differently from OpenAI?

Anthropic's tokenizer typically produces ~6–10% more tokens on English prose and source code than OpenAI's o200k_base. TryLLMCost automatically applies a 1.08x tokenizer multiplier to Claude estimates.

When does Anthropic Prompt Caching break even?

Anthropic's 5-minute cache write costs 1.25x base input, while cache reads cost 0.10x. As soon as a cached prefix is reused even once within 5 minutes, you save money—and at 5+ turns you save >70% on input.

Does Anthropic support Batch API discounts?

Yes. Anthropic Message Batches offer a 50% discount on both input and output tokens for asynchronous workloads processed within 24 hours.

Transparent SaaS Pricing

Free Forever Calculator. Upgrade When Spend Scales.

Model 25 LLMs with zero login today. Upgrade to Pro or Team for automated API price-drop alerts, saved CFO scenarios, and live usage overrun guards.

Free

No Signup
$0/ forever

Everything you need for architecture sizing, prompt tokenization, and SaaS margin checks.

  • Unlimited comparisons across 25+ models
  • Live client-side prompt token counter (EN/Code/CJK)
  • Prompt caching (0–90%) & Batch API 50% toggles
  • AI Agent & SaaS Gross Margin Simulator
  • 80/20 Model Routing Optimizer + inline rate edits
  • Unlimited CSV financial exports
Use Free Calculator Now
Most Popular

Pro

Founders & PMs
$15/ month

Never get blindsided by provider price changes or margin erosion across investor reviews.

  • Everything in Free, plus cloud-saved scenarios
  • Compare multiple multi-agent architecture versions
  • Weekly API price-drop & new-model email alerts
  • 1-click branded CFO / Board Deck PDF export
  • Custom enterprise discount profiles (AWS/Vertex/OpenAI)
  • Historical token price tracker & depreciation notices

Team

Live Guardrails
$39/ month

Connect real production token telemetry and catch runaway agent loops before the bill lands.

  • Everything in Pro for up to 10 team seats
  • Zero-latency live usage telemetry proxy endpoint
  • Real-time Slack & webhook budget overrun alerts
  • Per-customer / per-tenant gross margin leaderboard
  • Automatic anomaly detection on infinite agent loops
  • Scheduled weekly FinOps digest to #ai-infra