Skip to content

Claude API pricing

What Anthropic charges for each Claude model on the Claude API, in US dollars per million tokens (MTok), with the prices for prompt caching, the Batch API, fast mode, US-only inference and server tools.

Source: Anthropic pricing documentation and model deprecations, checked 27 November 2026. List prices before tax and any negotiated discount.

Current models

Claude API prices per million tokens, current models
ModelInputOutputCache write 5 minCache write 1 hCache hitBatch inputBatch output
Claude Fable 5.2$8$40$10$16$0.20$4$20
Claude Opus 5.5$4$20$5$8$0.20$2$10
Claude Sonnet 5.5$2$10$2.50$4$0.10$1$5
Claude Haiku 5.5Prompts up to 100,000 tokens$0.10$0.50$0.125$0.20$0.01$0.05$0.25
Claude Haiku 5.5Prompts over 100,000 tokens$0.50$2.50$0.625$1$0.05$0.25$1.25

All prices per million tokens. Claude 4.7 and later models use a newer tokenizer that produces about 30 percent more tokens for the same text than Sonnet 4.6 and earlier, so per-token prices across those generations do not compare one to one.

Earlier models still on the API

Claude API prices per million tokens, earlier models
ModelInputOutputCache write 5 minCache write 1 hCache hitBatch inputBatch output
Claude Fable 5.1$10$50$12.50$20$0.25$5$25
Claude Fable 5$10$50$12.50$20$1$5$25
Claude Opus 5$5$25$6.25$10$0.50$2.50$12.50
Claude Opus 4.8$5$25$6.25$10$0.50$2.50$12.50
Claude Opus 4.7$5$25$6.25$10$0.50$2.50$12.50
Claude Opus 4.6$5$25$6.25$10$0.50$2.50$12.50
Claude Opus 4.5Deprecated: retires 22 January 2027 (replacement Opus 5.5)$5$25$6.25$10$0.50$2.50$12.50
Claude Sonnet 5$2$10$2.50$4$0.20$1$5
Claude Sonnet 4.6$3$15$3.75$6$0.30$1.50$7.50
Claude Sonnet 4.5Deprecated: retires 30 November 2026 (replacement Sonnet 5.5)$3$15$3.75$6$0.30$1.50$7.50
Claude Haiku 4.5$1$5$1.25$2$0.10$0.50$2.50

Retired models (Opus 4.1, Opus 4, Sonnet 4 and the Claude 3 family) are left out: requests to them fail. Retirement dates for every model: AI model deprecation tracker.

Prompt caching

Caching reuses an already processed prompt prefix, such as a long system prompt or document, across requests. Prices are multipliers on the model’s input price:

  • 5-minute cache write: 1.25 times input.
  • 1-hour cache write: 2 times input.
  • Cache hit: 0.025 times input on Fable 5.2 and Fable 5.1, 0.05 times on Opus 5.5 and Sonnet 5.5, 0.1 times on every other model.

Anthropic states that a 5-minute cache costs less than no cache after one read and a 1-hour cache after two. The caching multipliers stack with the Batch discount and the US-only inference multiplier.

Batch API

The Batch API processes requests asynchronously at 50 percent of the standard input and output price; the batch columns in the tables above show the result. Fast mode cannot be combined with Batch.

Long prompts on Haiku 5.5

Claude 4.6 and later models, except Haiku 5.5, bill the whole 1M-token context window at the standard rate: a 900,000-token request costs the same per token as a 9,000-token one. Haiku 5.5 is priced by prompt length. A request whose prompt is over 100,000 tokens, counting cache reads and writes, pays the higher Haiku 5.5 row for the whole request, even when part of the prompt is a cache hit.

Fast mode

Fast mode gives up to 2.5 times more output tokens per second at a higher price, across the full context window. It is in research preview on Opus 5 and deprecated on Opus 4.8.

ModelFast inputFast output
Claude Fable 5.2$16$80
Claude Opus 5.5$8$40
Claude Opus 5 / Opus 4.8$10$50

US-only inference and cloud platforms

On Claude 4.6 and later models, setting inference_geo to "us" multiplies every token price (input, output, cache writes and hits) by 1.1. Global routing, the default, uses the standard price. The same 1.1 multiplier applies on Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and US Data Zone deployments in Microsoft Foundry. Amazon Bedrock and Google-managed Claude on Google Cloud set their own prices; there, regional and multi-region endpoints cost 10 percent more than global endpoints.

Tools and agents

  • Web search: $10 per 1,000 searches, plus the search results as input tokens. Failed searches are not billed.
  • Web fetch: no charge beyond the tokens of the fetched content.
  • Code execution: free when used with web search or web fetch; otherwise 1,550 free hours per organization a month, then $0.05 per hour per container, with a 5-minute minimum.
  • Tool definitions: tools you send count as input tokens, plus a tool-use system prompt of about 286 to 406 tokens on current models.
  • Claude Managed Agents: tokens at the model rates plus $0.08 per session-hour while a session is running. No Batch discount.

API compared with a Claude subscription

The API is paid per token in the Claude Console; Claude.ai plans are a monthly price with usage limits. The plan prices, from claude.com/pricing:

  • Free: $0
  • Pro: $20/month monthly, or $17/month billed annually ($200 a year). Includes Claude Code.
  • Max: $100/month. 5x Pro usage; $100 a month in API credits.
  • Ultra: $200/month. 10x Pro weekly usage, no 5-hour limit for verified accounts; $200 a month in API credits.

All plans side by side with other vendors: AI subscription pricing. To turn token prices into a monthly figure for your own traffic: AI token cost calculator.

Frequently asked questions

How much does the Claude API cost per million tokens?+

Claude Fable 5.2: $8 input and $40 output. Claude Opus 5.5: $4 input and $20 output. Claude Sonnet 5.5: $2 input and $10 output. Claude Haiku 5.5: $0.10 input and $0.50 output (Haiku 5.5 prompts over 100,000 tokens: $0.50 and $2.50). Prices are in US dollars per million tokens.

Is the Claude API included in a Claude Pro or Max subscription?+

No. The API is billed separately by usage in the Claude Console. Claude’s own pricing page lists API credits only with Max ($100 a month in API credits) and Ultra ($200 a month in API credits).

How much does Claude prompt caching cost?+

A 5-minute cache write costs 1.25 times the input price and a 1-hour write 2 times. A cache hit costs 0.025 times input on Fable 5.2 and 5.1, 0.05 times on Opus 5.5 and Sonnet 5.5, and 0.1 times on other models. Anthropic says a 5-minute cache pays for itself after one read and a 1-hour cache after two.

How much does the Claude Batch API save?+

Batch requests cost 50 percent less on both input and output tokens. The Batch discount stacks with prompt caching, but fast mode is not available with the Batch API.

Does Claude charge more for long prompts?+

Claude 4.6 and later models, except Haiku 5.5, bill the full 1M-token context window at the standard rate. Haiku 5.5 charges higher prices when a request’s prompt is over 100,000 tokens, counting cache reads and writes in the prompt length.

Is there a free tier for the Claude API?+

Anthropic’s pricing documentation says new users receive free credits to test the API. There is no ongoing free API tier listed. For free routes to Claude models, see the guide linked at the end of this page.

Related: how to get a Claude API key for free, OpenAI API pricing, Gemini API pricing, DeepSeek API pricing, Grok API pricing, Mistral API pricing, inference provider pricing, AI model rankings.