Skip to main content

Provider pricing guide

Anthropic Claude API Pricing Calculator & Model Cost Guide

Claude model tiers separate standard input, cache-hit input, output, and batch rates. Output-heavy agent and coding workloads can cost substantially more than input-only comparisons suggest.

Open Claude cost calculator
Example comparison basis: 1M input tokens + 1M output tokens. This is a rate comparison, not a quality or capability ranking.
AI model pricing comparison filtered by provider and modality
Provider / modelInputOutputCached / batchUnit priceExample costVerified / sourceUse

Anthropic

Claude Haiku 4.5

Cheapest
$1.00 / 1M$5.00 / 1M$0.10 cache$6.00Verified

Jun 21, 2026

Anthropic Claude API pricing
Calculate

Anthropic

Claude Sonnet 4.6

$3.00 / 1M$15.00 / 1M$0.30 cache$18.00Verified

Jun 21, 2026

Anthropic Claude API pricing
Calculate

Anthropic

Claude Opus 4.8

Highest
$5.00 / 1M$25.00 / 1M$0.50 cache$30.00Verified

Jun 21, 2026

Anthropic Claude API pricing
Calculate

Pricing FAQ

How do I calculate Claude API cost?

Divide input and output token counts by one million, multiply by their respective Claude model rates, add the results, and multiply by request volume.

What is the cost difference between Claude Sonnet and Opus?

The exact difference depends on the input-to-output ratio. Use the model comparison or calculator with the same workload to avoid a misleading unit-rate comparison.

Does prompt caching reduce Claude cost?

Eligible cache hits use a separate lower rate, while cache writes can have distinct rates. Verify Anthropic's current cache rules before forecasting savings.