LLM Cost Calculator

Anthropic API Pricing 2026

Claude 4 models excel at agentic coding, reasoning, and long documents. Claude Opus 4.8 is the latest flagship; Sonnet 4.6 is the best speed/intelligence balance with 1M token context.

Pricing verified 2026-08-03. Sourced from docs.anthropic.com/en/docs/about-claude/pricing.

Get Anthropic API access →

Anthropic Model Pricing

Prices in USD per 1M tokens

ModelInput / 1MOutput / 1MContext
Claude Opus 4.7
Most capable Anthropic model; step-change in agentic coding
$5$251,000,000
Claude Opus 4.8
Latest Claude Opus; newest flagship from Anthropic
$5$251,000,000
Claude Opus 4.8 (Fast)
Claude Opus 4.8 fast variant; lower latency
$10$501,000,000
Claude Sonnet 4.6
Best speed/intelligence balance; extended thinking supported
$3$151,000,000
Claude Haiku 4.5
Fastest Anthropic model; near-frontier intelligence
$1$5200,000
Claude Opus 4.6
Previous Opus generation; extended thinking supported
$5$251,000,000
Claude Sonnet 4.5
Previous Sonnet; extended thinking supported
$3$15200,000
Claude Opus 4.1
Older flagship; very expensive — migrate to Opus 4.6+
$15$75200,000
Claude Sonnet 4
Claude Sonnet 4; 1M context; balanced cost/intelligence
$3$151,000,000

How to read these estimates

The monthly table assumes 70% input tokens and 30% output tokens. It is a consistent comparison baseline, not a prediction of your workload. Actual bills can also include cached-input discounts, batch pricing, tool calls, minimum charges, regional differences, retries, and taxes.

The linked source is the provider's pricing documentation. Verify the current rate card and model availability before committing to a budget.

Estimated Monthly Cost (70% input / 30% output split)

Model1M tokens/mo10M tokens/mo100M tokens/mo1B tokens/mo
Claude Opus 4.7$11.00$110$1,100$11,000
Claude Opus 4.8$11.00$110$1,100$11,000
Claude Opus 4.8 (Fast)$22.00$220$2,200$22,000
Claude Sonnet 4.6$6.60$66.00$660$6,600
Claude Haiku 4.5$2.20$22.00$220$2,200
Claude Opus 4.6$11.00$110$1,100$11,000
Claude Sonnet 4.5$6.60$66.00$660$6,600
Claude Opus 4.1$33.00$330$3,300$33,000
Claude Sonnet 4$6.60$66.00$660$6,600

Frequently Asked Questions

How much does Anthropic LLM API cost?

Anthropic offers 9 models ranging from $1.000/1M to $15.00/1M input tokens. Claude 4 models excel at agentic coding, reasoning, and long documents. Claude Opus 4.8 is the latest flagship; Sonnet 4.6 is the best speed/intelligence balance with 1M token context.

Is Anthropic cheaper than self-hosting?

For low-volume workloads (under 100M tokens/month), cloud APIs like Anthropic are almost always cheaper than purchasing and maintaining GPU hardware. Use our calculator to find the exact break-even point for your usage.