Anthropic Cost Calculator

Claude API Pricing Calculator

Calculate costs for the latest Anthropic Claude models including Claude Opus 4.8, Opus 4.6, Sonnet 5, Sonnet 4.6, Haiku 4.5, Fable 5, and legacy models. Opus 4.6+, Sonnet 4.6+, and Sonnet 5 include the full 1M context at standard flat pricing.

Token Cost Calculator

Enter your estimated token usage to calculate costs

Input: $5.00/1M tokens
Output: $25.00/1M tokens

750 words

7500 words

Real-time Calculation

Instant cost estimates for your API usage

Latest Models Supported

From Claude Opus 4.8 to Claude Haiku 4.5

Smart Estimates

Detailed breakdown of all costs

Current Claude API Pricing

Latest pricing information per million tokens for each model

Claude Opus 4.8

Latest Opus flagship with 1M context at standard pricing

Input: $5.00/1M tokens

Output: $25.00/1M tokens

Claude Opus 4.7

Previous Opus with 1M context at standard pricing

Input: $5.00/1M tokens

Output: $25.00/1M tokens

Claude Opus 4.6

Most intelligent model for building agents and coding

Input: $5.00/1M tokens

Output: $25.00/1M tokens

Claude Sonnet 5 (through Aug 31, 2026)

Introductory Sonnet 5 pricing through August 31, 2026

Input: $2.00/1M tokens

Output: $10.00/1M tokens

Claude Sonnet 5 (from Sep 1, 2026)

Standard Sonnet 5 pricing starting September 1, 2026

Input: $3.00/1M tokens

Output: $15.00/1M tokens

Claude Sonnet 4.6

Latest Sonnet with best balance of capability and cost

Input: $3.00/1M tokens

Output: $15.00/1M tokens

Claude Sonnet 4.5

Previous Sonnet with strong capability and cost balance

Input: $3.00/1M tokens

Output: $15.00/1M tokens

Claude Fable 5

Creative writing model for long-form fiction

Input: $10.00/1M tokens

Output: $50.00/1M tokens

Claude Haiku 4.5

Fastest, most cost-efficient model

Input: $1.00/1M tokens

Output: $5.00/1M tokens

Claude Opus 4.5

Previous flagship model

Input: $5.00/1M tokens

Output: $25.00/1M tokens

Claude Opus 4.1

Deprecated Opus with improved reliability

Input: $15.00/1M tokens

Output: $75.00/1M tokens

Claude Sonnet 4

Retired Sonnet (except on Bedrock and Google Cloud)

Input: $3.00/1M tokens

Output: $15.00/1M tokens

Claude Opus 4

Retired Opus (except on Google Cloud)

Input: $15.00/1M tokens

Output: $75.00/1M tokens

Claude Haiku 3.5

Retired fast model (except on Bedrock and Google Cloud)

Input: $0.80/1M tokens

Output: $4.00/1M tokens

Claude Haiku 3

Legacy budget model — no longer on official pricing table

Input: $0.25/1M tokens

Output: $1.25/1M tokens

Claude & Anthropic API Pricing Calculator: Latest Models

Our comprehensive token calculator provides accurate cost estimates for Anthropic's latest Claude lineup. Perfect for developers and teams budgeting for Claude Opus 4.8, Opus 4.6, Sonnet 5, Sonnet 4.6, Haiku 4.5, and legacy models. Opus 4.6+, Sonnet 4.6+, and Sonnet 5 include the full 1M context window at standard flat pricing.

Latest Models

  • • Claude Opus 4.8: Latest flagship with 1M context
  • • Claude Sonnet 5: Introductory $2/$10 pricing through Aug 2026
  • • Claude Sonnet 4.6: Best capability-cost balance
  • • Claude Haiku 4.5: Fastest, most cost-efficient model

Key Features

  • • Flat per-token pricing on all supported models
  • • Prompt caching cost estimation
  • • 50% batch API discount available

How It Works

Calculate your Claude API costs in three simple steps:

1

Select Model

Choose from Claude Opus 4.6, Sonnet 4.6, Haiku 4.5, and legacy models

2

Enter Tokens

Specify your input and output token usage

3

Get Costs

View your detailed cost breakdown

Pro Tips

  • • Use prompt caching for significant savings on repeated inputs
  • • Batch API offers 50% off on all models
  • • Opus 4.6+ and Sonnet 4.6+ include 1M context at standard rates

Model Comparison & Use Cases

Compare Claude models to find the perfect fit for your needs and budget.

ModelBest ForPrice Range
Claude Opus 4.8 / 4.6Most intelligent models for agents and coding$5.00 / $25.00
Claude Sonnet 5Latest Sonnet (introductory pricing through Aug 2026)$2.00 / $10.00
Claude Sonnet 4.6Best value for production workloads$3.00 / $15.00
Claude Sonnet 4.5Previous Sonnet, still highly capable$3.00 / $15.00
Claude Haiku 4.5Fastest, most cost-efficient for high-volume tasks$1.00 / $5.00
Claude Opus 4.5Previous flagship, still highly capable$5.00 / $25.00
Claude Opus 4.1 / 4Legacy models for complex tasks$15.00 / $75.00

Cost Optimization Tips

Maximize your Claude API usage while minimizing costs:

Input Optimization

  • • Enable prompt caching for up to 90% savings on repeated inputs
  • • Use Batch API for 50% discount on non-urgent workloads
  • • Opus 4.6+ and Sonnet 4.6+ bill at flat rates across the full 1M context

Model Selection

  • • Choose the right model tier
  • • Start with Haiku 4.5 for testing
  • • Upgrade as needed

Pricing Updates & Information

Stay informed about Anthropic's Claude API pricing and updates.

Claude API pricing is subject to change. While we maintain current rates for all models in our calculator, always verify the latest pricing on Anthropic's official website.