Coffee
← Blog AI Cost Management

Claude API Pricing: Every Model, Caching and Batch Costs

By FavTray ·

Written by the team behind FavTray, a Mac developer dashboard for the menu bar. We check every app we cover against its own site, docs or a hands-on test, and each post says which.

Short answer: as of November 2026, Claude API pricing per million tokens (MTok) is $8 input / $40 output for Claude Fable 5.2, $4 / $20 for Claude Opus 5.5, $2 / $10 for Claude Sonnet 5.5 and $0.10 / $0.50 for Claude Haiku 5.5. The Batch API halves every rate, and prompt cache reads cost 2.5% to 10% of the input price.

TL;DR

  • Default pick: Claude Opus 5.5 at $4 / $20, which Anthropic recommends starting with for most workloads.
  • Cheapest: Claude Haiku 5.5 at $0.10 / $0.50, but it jumps to $0.50 / $2.50 once a prompt passes 100,000 tokens.
  • Batch API: 50% off input and output, results within 24 hours (most batches finish within an hour).
  • Prompt caching: reads at 0.1x input on most models, 0.05x on Opus 5.5 and Sonnet 5.5, 0.025x on Fable 5.2.
  • Long context: the full 1M-token window costs the same per token on every current model except Haiku 5.5.
  • Extras: web search is $10 per 1,000 searches; US-only inference adds 10%.

Prices checked on 14 November 2026 against Anthropic’s pricing documentation and models overview. All prices are in USD and apply to the first-party Claude API. Anthropic changes prices with new model releases, so check those pages before you budget.

How much does the Claude API cost per model?

The Claude API charges separately for input tokens (what you send) and output tokens (what the model writes), priced per million tokens. As of November 2026, the four current models are Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, and output always costs five times input.

Model (API ID)Input ($/MTok)Output ($/MTok)Cache read ($/MTok)Batch input / output ($/MTok)Context window
Claude Fable 5.2 (claude-fable-5-2)$8$40$0.20$4 / $201M tokens
Claude Opus 5.5 (claude-opus-5-5)$4$20$0.20$2 / $101M tokens
Claude Sonnet 5.5 (claude-sonnet-5-5)$2$10$0.10$1 / $51M tokens
Claude Haiku 5.5 (claude-haiku-5-5), prompt up to 100K$0.10$0.50$0.01$0.05 / $0.251M tokens
Claude Haiku 5.5, prompt over 100K$0.50$2.50$0.05$0.25 / $1.251M tokens

All four have a 128K-token maximum output on the synchronous Messages API. Anthropic’s models overview describes them this way:

  • Claude Fable 5.2: for demanding reasoning and long-horizon agentic work. Thinking is always on.
  • Claude Opus 5.5: for long-running agentic coding and knowledge work, and Anthropic’s suggested starting point if you are unsure.
  • Claude Sonnet 5.5: “the best combination of speed and intelligence”.
  • Claude Haiku 5.5: for high-volume, latency-sensitive work such as classification, extraction and routing.

Claude Mythos 5.2 costs the same as Fable 5.2 ($8 / $40) but is limited to organizations verified through Anthropic’s programs, such as the Cyber Verification Program.

What do older Claude models cost on the API?

Older Claude models stay available on the API at their launch prices, and several cost more than the newer model that replaced them. Claude Opus 4.8, for example, is $5 / $25, while Opus 5.5 is $4 / $20.

ModelInput ($/MTok)Output ($/MTok)Cache read ($/MTok)Batch input / output ($/MTok)
Claude Fable 5.1$10$50$0.25$5 / $25
Claude Fable 5$10$50$1$5 / $25
Claude Opus 5$5$25$0.50$2.50 / $12.50
Claude Opus 4.8, 4.7, 4.6, 4.5$5$25$0.50$2.50 / $12.50
Claude Sonnet 5$2$10$0.20$1 / $5
Claude Sonnet 4.6, 4.5$3$15$0.30$1.50 / $7.50
Claude Haiku 4.5$1$5$0.10$0.50 / $2.50

Check two things before you stay on an old model to save money:

  • Sonnet 5 kept its launch price. Its $2 / $10 was announced as introductory pricing through 31 August 2026, but Anthropic has made it the standard price, and the planned rise to $3 / $15 did not happen.
  • Newer models count more tokens. Claude 4.7 and later use a newer tokenizer that, per Anthropic, produces about 30% more tokens for the same text. Moving from Sonnet 4.6 ($3 input) to Sonnet 5.5 ($2 input) still saves money, but by less than the headline rate suggests. Measure with the token counting endpoint on the model you plan to use.

Claude Opus 4.1, Opus 4 and Sonnet 4 are retired on the Claude API.

How do I calculate the cost of a Claude API request?

The cost of a Claude API request is input tokens times the input rate plus output tokens times the output rate, each divided by one million. Cached tokens, tool definitions and thinking tokens all count toward those totals.

cost = (input_tokens  × input_price  / 1,000,000)
     + (output_tokens × output_price / 1,000,000)
     + (cache_write_tokens × write_price / 1,000,000)
     + (cache_read_tokens  × read_price  / 1,000,000)

The API returns every count you need in the usage object of each response: input_tokens, output_tokens, cache_creation_input_tokens and cache_read_input_tokens. A few costs are easy to miss:

  • Thinking is output. Reasoning tokens are billed at the output rate whether or not you display them. On Opus 5.5 and Fable 5.2 thinking is always on, so lower the effort setting rather than trying to disable it.
  • Tools add input tokens. Defining any tool adds a hidden tool-use system prompt: 286 tokens on Opus 5.5, Sonnet 5.5 and Haiku 5.5. The text editor tool adds another 974 tokens on Claude 4.7 and later models.
  • The whole conversation is resent. The API is stateless, so turn 20 of a chat bills turns 1 to 19 again as input unless they are cached.

Worked examples: what does Claude actually cost?

These examples use the November 2026 list prices above and round to the cent. Your real costs depend on prompt length, output length and how often the cache hits.

WorkloadModelTokensCost
Support chatbot, 1,000 requests a daySonnet 5.52,000 in + 500 out each$9.00 a day
Same chatbot, 1,500-token system prompt cachedSonnet 5.5500 uncached + 1,500 cached + 500 out$6.15 a day
Classify 100,000 documents overnightHaiku 5.5, Batch1,000 in + 100 out each$7.50 total
One question over an 800K-token codebaseOpus 5.5800,000 in + 4,000 out$3.28
Follow-up question, codebase cachedOpus 5.5800,000 cache read + 4,000 out$0.24

Example 1, the chatbot. 1,000 requests of 2,000 input tokens is 2 million input tokens a day: 2 × $2 = $4.00. 500,000 output tokens is 0.5 × $10 = $5.00. That’s $9.00 a day, about $270 over 30 days.

Example 2, the same chatbot with caching. If 1,500 of those 2,000 tokens are a fixed system prompt, they are read from the cache at $0.10 per MTok: 1.5 × $0.10 = $0.15. The remaining 0.5 million uncached input tokens cost $1.00 and output still costs $5.00, for $6.15 a day. Each cache write after the 5-minute cache lapses adds well under a cent (1,500 tokens at $2.50 per MTok). Output is now most of the bill, so capping response length is the next lever.

Example 3, batch classification. 100,000 documents at 1,000 tokens in and 100 out is 100 million input and 10 million output tokens. At Haiku 5.5’s batch rates that’s 100 × $0.05 + 10 × $0.25 = $7.50, against $15.00 at standard rates.

Example 4, long context. An 800,000-token prompt on Opus 5.5 costs 0.8 × $4 = $3.20 for input and 0.004 × $20 = $0.08 for output. If you cache the codebase, the first request pays the 5-minute write rate (0.8 × $5 = $4.00, plus $0.08 output), and every follow-up within the cache lifetime costs 0.8 × $0.20 + $0.08 = $0.24.

How does Claude prompt caching pricing work?

Prompt caching lets the API reuse a prompt prefix you sent before, billing it at a fraction of the input price. A cache read costs 0.1x the base input price on most models, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.2 and 5.1.

Cache operationPrice vs base inputLifetimeBreaks even after
5-minute cache write1.25x5 minutes, refreshed on each hit1 cache read
1-hour cache write2x1 hour, refreshed on each hit2 cache reads
Cache read (most models)0.1xSame as the writen/a
Cache read (Opus 5.5, Sonnet 5.5)0.05xSame as the writen/a
Cache read (Fable 5.2, Fable 5.1)0.025xSame as the writen/a

You turn it on with a top-level cache_control field (automatic caching) or by placing cache_control on specific content blocks. Caching is a prefix match, so put stable content first (tools, system prompt, long documents) and anything that changes per request, such as timestamps, after it. If cache_read_input_tokens stays at zero across repeated requests, something in your prefix is changing. Anthropic’s prompt caching guide covers placement in detail.

How much does the Claude Batch API save?

The Claude Batch API takes 50% off both input and output tokens on every model, in exchange for asynchronous results. According to Anthropic’s batch processing docs, most batches finish within an hour, and any batch that hasn’t finished within 24 hours expires.

  • Limits: up to 100,000 requests or 256 MB per batch, whichever comes first.
  • Results: downloadable for 29 days after the batch is created.
  • Stacking: the batch discount combines with prompt caching, so a cached batch read on Sonnet 5.5 costs $0.05 per MTok, half the normal $0.10.
  • Not included: fast mode isn’t available through the Batch API.

Use it for anything nobody is waiting on: evals, nightly classification, backfills, embeddings-style extraction and bulk summaries.

Does Claude charge extra for long context?

No, not on current models other than Haiku 5.5. Anthropic’s pricing docs state that Claude 4.6 and later models bill the full 1M-token context window at standard rates, so a 900,000-token request costs the same per token as a 9,000-token request.

Claude Haiku 5.5 is priced by prompt length. A request whose prompt is over 100,000 tokens, counting cache reads and writes, pays $0.50 input and $2.50 output instead of $0.10 and $0.50, even if part of the prompt was a cache hit. Each request is priced on its own. Two practical results:

  • A 90,000-token Haiku 5.5 prompt with 1,000 output tokens costs about $0.0095. At 150,000 tokens it costs about $0.0775, roughly eight times more for under twice the input.
  • If your Haiku workload regularly crosses 100,000 tokens, price the same job on Sonnet 5.5 with caching before assuming Haiku is cheaper.

What other Claude API costs should I budget for?

Beyond tokens, the Claude API bills a few features separately: web search, US-only data residency, fast mode, code execution beyond the free allowance, and Managed Agents runtime. As of November 2026:

FeaturePriceNotes
Web search tool$10 per 1,000 searchesPlus tokens for the results; failed searches aren’t billed
Web fetch toolNo extra chargeYou pay for the fetched content as input tokens
Code execution1,550 free hours per organization per month, then $0.05 per container-hourFree when used with the current web search or web fetch tools
US-only inference (inference_geo: "us")1.1x on all token pricesClaude 4.6 and later; global routing is standard price
Fast mode, Opus 5.5$8 / $40 per MTokUp to 2.5x faster output, 2x the standard price
Fast mode, Fable 5.2$16 / $80 per MTokNot available through the Batch API
Managed Agents session runtime$0.08 per session-hourOn top of normal token prices

Claude on Amazon Bedrock and Google Cloud’s Google-managed offering is priced by those providers, with a 10% premium on regional and multi-region endpoints over global ones. Claude Platform on AWS and Microsoft Foundry bill at Anthropic’s standard rates through their marketplaces.

Is the Claude API free, and how is it billed?

The Claude API isn’t free, but Anthropic’s pricing FAQ says new users get free credits to test it. After that you buy credits by card on the Billing page of the Claude Console, and all usage is billed in USD.

A claude.ai subscription and the API are separate products. Pro and Max plans cover the Claude apps and Claude Code within a usage allowance, while the API charges per token. If you use Claude Code mostly through an API key, our Claude Code pricing comparison of Pro, Max and API billing shows where each one wins, and Claude Code usage limits explains how plan allowances run out.

Rate limits depend on your usage tier (Start, Build, Scale), and Anthropic negotiates volume discounts and enterprise pricing case by case through sales.

How can I lower my Claude API bill?

The cheapest Claude API request is one that sends fewer uncached tokens to a smaller model. In rough order of effort:

  1. Cache your stable prefix. System prompts, tool definitions and long documents are the easiest saving: 90% to 97.5% off those tokens on every hit.
  2. Batch anything that can wait. Half price, no code changes to your prompts.
  3. Try a lower effort before a smaller model. On current models, the effort setting (low to max) changes how much the model thinks, and thinking is billed as output.
  4. Match the model to the job. Haiku 5.5 for routing and extraction, Sonnet 5.5 for most production work, Opus 5.5 or Fable 5.2 where quality really needs it.
  5. Cap output. Output is five times input on every Claude model, so a shorter max_tokens or a “reply in under 100 words” instruction pays off quickly.

Our guide to reducing AI API costs goes deeper, and reducing Claude Code token usage covers the coding-agent side.

How does Claude API pricing compare with OpenAI and Gemini?

Claude API pricing runs from $0.10 / $0.50 per MTok on Haiku 5.5 to $8 / $40 on Fable 5.2, with Sonnet 5.5 ($2 / $10) and Opus 5.5 ($4 / $20) in between. OpenAI and Google change their prices often, so we keep the side-by-side numbers in dedicated posts: Gemini vs Claude API pricing, Claude vs OpenAI pricing and the broader LLM API pricing comparison.

How do I track what I’m spending on Claude?

For the authoritative API bill, use the Usage and Cost pages in the Claude Console at platform.claude.com, and cap spend with workspace spend limits. Inside Claude Code, /usage estimates the current session’s cost. Our guide to tracking Claude API costs walks through each option.

If you want a running total on your Mac without opening a dashboard, FavTray can help. We make FavTray, so weigh our take accordingly. FavTray is a macOS menu bar app with developer and productivity tools, free with daily limits on some of them, and $4.99 once for Lifetime. Its AI Usage tracker is free in full: it reads Claude Code’s local logs, prices them on your Mac and shows your plan’s Claude usage limit in the menu bar. It doesn’t replace the Console for billing; it’s a glance, not an invoice. Every install gets a 7-day full trial with no card, and Lifetime pricing is one payment.

Try FavTray Free

One free Mac menu bar app: notch island, ports, keep-awake, clipboard, eye rest, and Claude and Codex limits.

Download Free

Frequently Asked Questions

How much does the Claude API cost per million tokens?

As of November 2026, Anthropic's current models cost: Claude Fable 5.2 $8 input and $40 output, Claude Opus 5.5 $4 and $20, Claude Sonnet 5.5 $2 and $10, and Claude Haiku 5.5 $0.10 and $0.50 per million tokens (Haiku rises to $0.50 and $2.50 above 100,000 prompt tokens). Batch requests are half price, and prompt cache reads cost 2.5% to 10% of the input price.

Is the Claude API free?

No, the Claude API is pay as you go, billed in USD on actual monthly usage. Anthropic's pricing docs say new users receive free credits to test the API, without stating an amount, and enterprise teams can ask sales about extended trials. A claude.ai Pro or Max subscription does not include API credits; the API is billed separately in the Claude Console.

Which Claude model is cheapest on the API?

Claude Haiku 5.5 is the cheapest current Claude model as of November 2026: $0.10 per million input tokens and $0.50 per million output tokens for prompts up to 100,000 tokens. Through the Batch API that halves to $0.05 and $0.25. Above 100,000 prompt tokens, Haiku 5.5 costs $0.50 input and $2.50 output, so very long prompts can be cheaper on Sonnet 5.5 with caching.

Does Claude charge more for long context?

Not on most current models. Anthropic's pricing docs say Claude 4.6 and later models, except Claude Haiku 5.5, bill the full 1 million token context window at standard rates, so a 900,000-token request costs the same per token as a 9,000-token one. Haiku 5.5 is the exception: any request whose prompt exceeds 100,000 tokens pays five times its base input and output price.

How much does prompt caching save on the Claude API?

A cache read costs 10% of the base input price on most Claude models, 5% on Opus 5.5 and Sonnet 5.5, and 2.5% on Fable 5.2 and 5.1. Writing to the cache costs 1.25 times input for a 5-minute cache or 2 times for a 1-hour cache, so caching pays for itself after one read (5-minute) or two reads (1-hour). It also stacks with the 50% batch discount.

Is the Claude API cheaper than a Claude Max subscription for Claude Code?

It depends on volume. Light or occasional Claude Code use is often cheaper on the API, because you only pay for tokens you use. Heavy daily agent work usually costs less on a Pro or Max plan, where usage draws from a fixed allowance instead of per-token billing. Check your real token totals for a week, price them with the rates above, then compare against the plan price.