ToolPuma Logo

Claude Cost Calculator

Estimate Anthropic Claude API costs with caching.

$0.00300
Input cost
$0.00750
Output cost
$0.011
Total cost
Claude 3.7 Sonnet (Anthropic)
Context window200,000
Input price$3 / 1M tokens
Output price$15 / 1M tokens
Prompt caching write$3.75 / 1M tokens
Prompt caching read$0.3 / 1M tokens

What Is a Claude Cost Calculator?

The Claude Cost Calculator estimates Anthropic Claude API costs and includes prompt caching, letting you model how cached input tokens reduce cost using the cache write and read rates for models such as Claude Opus and Sonnet.

How to Use This Claude Cost Calculator

  1. 1
    Pick a Claude modelChoose Opus, Sonnet, or Haiku.
  2. 2
    Enter tokensProvide input and output token counts.
  3. 3
    Set cache readEnter how many input tokens will be served from cache.
  4. 4
    Read the costSee input, cache, output, and total cost.

Frequently Asked Questions

Anthropic's prompt caching lets you reuse a prefix of the input at a cheaper read rate. The first time a prefix is cached you pay a write fee; subsequent requests pay only the read fee.
Cache writes are typically 1.25x the input price and cache reads are typically 0.1x, making long system prompts and conversation prefixes much cheaper on repeat calls.
Caching is supported on most current Claude models including Opus, Sonnet, and Haiku. The calculator shows cache rates where the selected model supports them.