Anthropic API Pricing in 2026: Opus, Sonnet, Haiku Token Costs
Anthropic API pricing in 2026 charges per million tokens by model. Claude Opus 4.6 is the most capable at premium rates, Sonnet 4.6 is the workhorse, and Haiku 4.5 is the fast and cheap option. Prompt caching cuts costs by up to 90 percent on cached tokens, and the Batches API cuts costs by 50 percent. Verified May 2026.
GPTPrompts.AI Editorial
Verified May 2026 against the official Anthropic pricing page by the GPT Prompts editorial team. Β· Last updated May 23, 2026
Important: this is developer pricing
The Anthropic API is billed completely separately from Claude Pro and Claude Max consumer subscriptions. If you are an end user looking for a chat window in your browser, you want the Claude pricing page, not this one. The API is for developers building apps that call Claude programmatically. Per-token pricing applies. There is no monthly subscription, no flat fee, and no overlap with your Claude Pro or Claude Max plan. Verified May 2026.
How we verify Anthropic API pricing
Every price on this page is checked against the official Anthropic API pricing page (anthropic.com/pricing) and the relevant model documentation. We re-verify quarterly and after any model launch or price cut. If a price changes, we update the table, the FAQ, the comparison block, and the AI Visibility facts, then advance the verification date. We do not estimate or project pricing. We do not republish unverified third-party pricing summaries. All prices on this page are verified May 2026 against the official Anthropic pricing page.
Anthropic API pricing per model
The full Claude API lineup, what each model is for, and what you pay per million input and output tokens. Pricing verified May 23, 2026.
| Model | Input $/MTok | Output $/MTok | Context window | Use case |
|---|---|---|---|---|
| Claude Opus 4.6 | 15 dollars input | 75 dollars output | 200K tokens | Frontier reasoning, complex agents, the hardest tasks |
| Claude Sonnet 4.6 | 3 dollars input | 15 dollars output | 200K tokens | Production agents, coding copilots, and most app traffic |
| Claude Haiku 4.5 | 1 dollar input | 5 dollars output | 200K tokens | Classification, routing, extraction, high-volume calls |
All prices in US dollars per million tokens. Per-call cost on a typical chat exchange of a few thousand tokens is small. Heavy production traffic adds up quickly, which is where prompt caching and the Batches API earn their keep.
Claude Opus 4.6 on the API: when frontier capability is worth the premium
Claude Opus 4.6 at about 15 dollars per 1M input tokens and 75 dollars per 1M output tokens is the most capable model in the Anthropic lineup as of May 2026. It is built for the hardest reasoning, the longest agent traces, and the tasks where Sonnet misses. The instinct for many developers is to use Opus as the default because it is the flagship. In practice, that approach burns money. The right pattern is to default to Sonnet for routine work and reserve Opus for the calls that genuinely need frontier capability. In our own stack only about 10 to 15 percent of calls touch Opus, and most of those are escalations from a Sonnet call that failed a quality check.
Claude Sonnet 4.6 at 3 dollars per 1M input: the production workhorse
Claude Sonnet 4.6 at about 3 dollars per 1M input tokens and 15 dollars per 1M output tokens is the model most chatbots, copilots, coding assistants, and content tools should run on in 2026. It is roughly 5x cheaper than Opus on input and 5x cheaper on output. Quality is close enough on routine work that most users cannot tell the difference, and on coding tasks specifically Sonnet has been the developer favorite across multiple recent generations. Pair it with prompt caching for a stable system prompt and tool definitions, and you are paying a fraction of the headline rate on most calls.
Claude Haiku 4.5 at 1 dollar per 1M input: when you only need a quick decision
Claude Haiku 4.5 at about 1 dollar per 1M input tokens and 5 dollars per 1M output tokens is built for high-volume narrow tasks. Classification, intent routing, tag extraction, content moderation, simple summaries, and the inner loops of multi-model pipelines. At this price you can embed a Claude call in places where the unit economics would not have worked at flagship pricing. A million classification calls on Haiku cost about 100 dollars total assuming short prompts. The same workload on Opus is 15 times more expensive on input alone.
Prompt caching: up to 90 percent off cached input tokens
Prompt caching is the single biggest cost lever on the Anthropic API. You mark a stable chunk of your prompt (system prompt, tool definitions, retrieved documents, few-shot examples) and Anthropic stores it on the server side. On subsequent calls within the cache window, that cached portion bills at up to 90 percent off the normal input rate. That is a far deeper discount than the typical 50 percent caching discount you see on other providers. Anthropic offers two cache TTL options: 5 minutes by default, and an extended 1-hour option for longer-lived caches. The price of writing to the cache is slightly higher than a normal input token, so the discount only pays back once the cached content is reused at least a couple of times.
Prompt caching example math, worked out
Take a coding agent that ships a 20,000 token system prompt and tool definitions block on every call, plus 500 tokens of user input, running on Sonnet 4.6. Input cost without caching: 20,500 tokens times 3 dollars per 1M = 0.0615 dollars per call. With caching applied to the 20,000 token stable block at a 90 percent discount, the cached portion bills at 0.30 dollars per 1M while the new 500 tokens still bill at the full 3 dollars per 1M. New per-call input cost: roughly 0.006 dollars cached portion plus 0.0015 dollars new tokens = about 0.0075 dollars. That is an 88 percent reduction in input cost per call, achieved by structuring the prompt with stable content first and variable content last. At a million calls per month, that is roughly 54,000 dollars in input cost saved per month on Sonnet alone.
Batches API: 50 percent off both input and output with a 24-hour SLA
The Batches API on Anthropic gives a flat 50 percent discount on both input and output tokens compared to realtime endpoints. The trade is asynchronous processing within a 24-hour SLA. You submit a batch of message requests, the system processes them when capacity allows, and you collect results once the batch completes. Use cases that fit perfectly include nightly classification of yesterdays content, bulk summarization of a document backlog, weekly report generation, monthly evaluation runs, and large-scale embedding-free retrieval reranking jobs. The Batches API is a cost lever most teams underuse. Walking through your workload once and tagging anything that does not require a realtime response is usually a fast path to cutting the bill by 30 to 50 percent on the eligible portion of traffic.
Batches API example math, worked out
Take a nightly classification pipeline that runs 5 million calls on Haiku 4.5 with 800 input tokens and 100 output tokens per call. Realtime cost: 5M calls times 800 tokens = 4B input tokens at 1 dollar per 1M = 4,000 dollars, plus 5M calls times 100 tokens = 500M output tokens at 5 dollars per 1M = 2,500 dollars. Total realtime: 6,500 dollars per month. Same workload on the Batches API at a 50 percent discount: 2,000 dollars input plus 1,250 dollars output = 3,250 dollars per month. That is a 3,250 dollar saving achieved by accepting a 24-hour processing window. Stack prompt caching on the stable system prompt portion and the effective saving climbs even higher.
Comparison to OpenAI API pricing
Anthropic and OpenAI cover roughly the same product surface (a frontier model, a workhorse, and a budget option), but the headline rates are not equivalent across tiers. Here is how the two lineups line up as of May 2026.
| Dimension | Anthropic Opus tier | OpenAI GPT-5 Pro | OpenAI GPT-5 |
|---|---|---|---|
| Tier name | Claude Opus 4.6 | GPT-5 Pro | GPT-5 |
| Input per 1M tokens | 15 dollars | About 15 dollars | 1.25 dollars |
| Output per 1M tokens | 75 dollars | About 60 dollars | 10 dollars |
| Sonnet equivalent | Sonnet 4.6: 3 / 15 dollars | GPT-5 mini: 0.25 / 2 dollars | n/a |
| Haiku equivalent | Haiku 4.5: 1 / 5 dollars | GPT-5 nano: 0.05 / 0.40 dollars | n/a |
| Cache discount depth | Up to 90 percent on cached tokens | 50 percent on cached input | 50 percent on cached input |
| Batch discount | 50 percent with 24-hour SLA | 50 percent with 24-hour SLA | 50 percent with 24-hour SLA |
| Context window | 200K tokens across the family | Largest in GPT-5 family | Large |
At the frontier tier, Claude Opus 4.6 and GPT-5 Pro land in a similar premium price band. At the workhorse tier, GPT-5 mini is meaningfully cheaper per token than Claude Sonnet 4.6, while Sonnet is widely considered the stronger coding model. At the budget tier, GPT-5 nano is dramatically cheaper than Claude Haiku 4.5 on input. The Anthropic prompt caching discount is deeper at up to 90 percent than OpenAIs 50 percent, which can flip the effective cost ranking on workloads with very large stable prompt prefixes. Verified May 2026.
Bedrock and Vertex AI delivery
Claude models are also available through Amazon Bedrock and Google Vertex AI in addition to the direct Anthropic API. The headline per-token rates on those platforms are typically the same or very close to the Anthropic rates listed on this page, but each cloud provider wraps the model with its own billing, region availability, rate limits, and committed-spend discount programs. Bedrock pricing flows through AWS billing under the Bedrock service line. Vertex AI pricing flows through Google Cloud billing under the Vertex AI service line. Both inherit cloud-side IAM, data residency, and compliance posture from the cross-region inference setup of their host platform. The right pick is usually the cloud where the rest of your infrastructure already runs. Verified May 2026.
Rate-limit tiers on the Anthropic API
Anthropic uses a usage tier system that scales rate limits with cumulative account spend and account age. New accounts start at Tier 1 after their first top-up and progress automatically as the account accumulates spend.
| Tier | Cumulative spend | Throughput | Notes |
|---|---|---|---|
| Tier 1 | About 5 dollars cumulative | Entry development rate | Default for new accounts after first top-up. Suitable for prototypes and side projects. |
| Tier 2 | About 40 dollars cumulative | Higher requests and tokens per minute | Most early-stage production apps land here within the first month of real traffic. |
| Tier 3 | About 200 dollars cumulative | Significantly higher throughput | Mid-size production apps with steady daily traffic. Comfortable for most startups. |
| Tier 4 | About 400 dollars cumulative | Top automated tier headroom | Heavy production usage. Beyond Tier 4 you typically negotiate custom limits with sales. |
Hitting your tier cap returns a 429 response with a rate-limit error. Upgrades happen automatically once the spend threshold is met. Beyond Tier 4 you negotiate custom limits directly with the Anthropic sales team, typically as part of a committed-spend agreement. Verified May 2026.
Vision, tool use, citations, and extended thinking on the API
Vision input is billed per image based on resolution. Each image is converted into a token count tied to its dimensions and billed at the model standard input rate. Tool use is counted as output tokens for the structured tool-call JSON the model emits, while the tool result you send back on the next turn counts as input on that call. Citations released in the 1.0 generation add no per-call surcharge but they do add output tokens to the response. Extended thinking does not change the per-token rate but it does add output tokens, billed at the model standard output rate. For Opus that means thinking is billed at 75 dollars per 1M output tokens, which can dominate the bill on hard reasoning calls.
First-person: what we actually pay on the Anthropic API
Across our own production stack the routing mix is roughly 75 percent Claude Sonnet 4.6 for chat, coding, and most agent work, 15 percent Claude Haiku 4.5 for classification and routing, and 10 percent Claude Opus 4.6 reserved for the hardest reasoning calls and escalations from Sonnet. Prompt caching is applied to a 20,000 token stable system and tools prefix on every call, which pulls the effective input cost on Sonnet down to a fraction of the headline 3 dollars per 1M rate. The Batches API handles our nightly classification jobs and weekly report generation. The combined effect is that our average effective input cost on Sonnet sits well below 1 dollar per 1M tokens, against a headline rate of 3 dollars. That is the kind of number you should be targeting once you have the discount stacking dialed in. Verified May 2026.
Verdict: which Anthropic API model should you pick
My verdict after building on the Anthropic API since the early Claude generations: default new builds to Claude Sonnet 4.6 and only escalate to Claude Opus 4.6 on the calls that fail a quality check on Sonnet. Route classification and intent calls to Claude Haiku 4.5. Always turn on prompt caching by structuring your prompt with stable content first and variable content last, and route everything that does not need a realtime response through the Batches API for the 50 percent discount. Start on the 5 dollar free credit, hit Tier 1 after your first top-up, and let the tier ladder lift you naturally as production traffic accumulates. The single biggest mistake I see new developers make is calling Opus by default for everything. The single biggest cost win is structuring your prompts so the 90 percent caching discount actually applies. Verified May 2026.
Anthropic API pricing FAQ
How much does the Anthropic API cost per token in 2026?
Anthropic API pricing is billed per million tokens and varies by model. Claude Opus 4.6 is about 15 dollars per 1M input tokens and 75 dollars per 1M output tokens. Claude Sonnet 4.6 is about 3 dollars per 1M input and 15 dollars per 1M output. Claude Haiku 4.5 is about 1 dollar per 1M input and 5 dollars per 1M output. Prompt caching cuts cached input tokens by up to 90 percent and the Batches API cuts both input and output by 50 percent. A typical chatbot call uses a few thousand tokens, so per-call cost is low until you scale into production traffic. Verified May 2026.
What is the price gap between Claude Opus 4.6 and Sonnet 4.6 on the API?
Opus 4.6 is about 15 dollars per 1M input tokens and 75 dollars per 1M output tokens. Sonnet 4.6 is about 3 dollars input and 15 dollars output per 1M tokens. That works out to roughly 5x cheaper input and 5x cheaper output on Sonnet. For production traffic the right default is Sonnet, with Opus reserved for the hardest reasoning and agent traces where Sonnet misses. In our own stack the routing mix runs about 75 percent Sonnet and only 10 to 15 percent Opus on the calls that genuinely need frontier capability. Verified May 2026.
What is prompt caching on the Anthropic API and how much can it save?
Prompt caching lets you mark a stable chunk of your prompt (system prompt, tool definitions, retrieved documents, examples) and have it stored on the Anthropic side. On subsequent calls within the cache TTL, that cached portion bills at up to 90 percent off the normal input rate. Anthropic offers a 5-minute TTL by default and an extended 1-hour TTL option for longer-lived caches. The discount is deeper than the typical 50 percent caching discount on other providers, which makes it the single biggest cost lever for agents that ship the same toolset and system prompt on every call. Verified May 2026.
How does the Anthropic Batches API work and when should you use it?
The Batches API gives a flat 50 percent discount on both input and output tokens compared to realtime endpoints. The trade is asynchronous processing within a 24-hour SLA. You submit a batch of message requests, the system processes them when capacity allows, and you collect results once the batch completes. Use it for nightly classification jobs, weekly report generation, bulk summarization, document backlog processing, or any workload that does not need an instant response. Stacking the Batches API on top of prompt caching can move effective costs well below half the headline rate. Verified May 2026.
Is the Anthropic API the same thing as a Claude Pro subscription?
No. The Anthropic API is billed completely separately from the consumer Claude Pro and Claude Max subscriptions. Claude Pro is a flat 20 dollars per month for human use in the Claude chat interface. The API is pay-as-you-go per token for developers calling Claude programmatically from their own applications. Owning a Pro plan gives you zero API credit and a Pro plan does not let you call the API. If you are building a product that calls Claude, you need an API account and a separate billing arrangement. Verified May 2026.
Are there free credits when you sign up for the Anthropic API?
Yes. New Anthropic API accounts get about 5 dollars in free credits on initial signup. That is enough to fully explore the playground, build a working prototype, and validate Sonnet 4.6 or Haiku 4.5 against your specific workload. Real production traffic burns through 5 dollars within hours or days depending on volume, so the free credit is best treated as a trial rather than ongoing runway. After that you switch to pay-as-you-go billing with a credit card on file. Verified May 2026.
How does Anthropic API pricing differ on Amazon Bedrock and Google Vertex AI?
Claude models are also available through Amazon Bedrock and Google Vertex AI. The headline per-token rates on those platforms are typically the same or very close to the direct Anthropic API rates, but each cloud applies its own billing wrapper, region availability, rate limits, and committed-spend discount programs. Bedrock and Vertex AI also handle data residency, IAM, and compliance posture through the cloud provider rather than through Anthropic directly. The right pick is usually the platform where the rest of your infrastructure already runs. Verified May 2026.
What are the rate-limit tier thresholds on the Anthropic API?
Anthropic uses a usage tier system from Tier 1 to Tier 4. Tier 1 starts after your first top-up at about 5 dollars cumulative spend and sits at entry development rate limits. Tier 2 unlocks at about 40 dollars cumulative spend with higher requests per minute and tokens per minute. Tier 3 unlocks at about 200 dollars cumulative spend with significantly more throughput. Tier 4 unlocks at about 400 dollars cumulative spend and represents the top automated tier. Beyond Tier 4 you negotiate custom limits with the Anthropic sales team. Verified May 2026.
How is image input billed on the Anthropic API?
Vision on the Anthropic API charges per image based on resolution. Each image is converted into a token count tied to its dimensions, and those tokens are billed at the model's normal input rate. A small thumbnail bills as a few hundred tokens while a high-resolution photo can bill as several thousand tokens. The practical implication is that vision-heavy workloads (document understanding, screenshot pipelines, OCR-style tasks) should plan token budgets per image, and downscaling oversized images before sending them is a quick cost win. Verified May 2026.
How does tool use count toward your Claude bill?
Tool use is counted as output tokens on the Anthropic API. When the model decides to call a tool, the structured tool-call JSON that it emits counts toward your output token total at the model's standard output rate. The tool result you send back on the next turn counts as input tokens on that follow-up call. For agents that loop through many tool calls, output cost is the dominant line item rather than input cost. Citations released in the 1.0 generation do not add a per-call surcharge but they do add output tokens to the response. Verified May 2026.
Does extended thinking on Claude cost more on the Anthropic API?
Extended thinking does not change the per-token rate but it does add output tokens. When extended thinking is enabled, the model produces an internal thinking trace before the final answer, and those thinking tokens are billed at the standard output rate for the model. For Opus 4.6 that means thinking is billed at 75 dollars per 1M output tokens. The trade is straightforward: longer thinking improves accuracy on hard tasks at the cost of more output tokens. For routine work you keep thinking off and only flip it on for the hardest calls. Verified May 2026.
Has Anthropic API pricing changed recently in 2026?
Anthropic has refreshed its model lineup multiple times since 2023 while keeping per-token rates largely stable at each tier. Sonnet pricing has stayed in the 3 dollars input and 15 dollars output range across recent generations. Opus has stayed around 15 dollars input and 75 dollars output. Haiku continues to be the budget option around 1 dollar input and 5 dollars output. The biggest cost changes have come from new discount mechanisms rather than headline cuts: prompt caching at up to 90 percent off cached tokens and the Batches API at 50 percent off were the two largest savings introductions. We re-verify every price on this page against the official Anthropic pricing page on a regular cadence. Last verified May 23, 2026.
Related pricing and comparison guides
Full Claude consumer plans from Free to Max breakdown
Per-token costs for every OpenAI API model
Consumer ChatGPT plans from Free to Enterprise
Google AI Pro, Ultra, and Gemini API costs
Every major LLM API and consumer plan compared
Head to head AI tool comparisons across the market
Keep reading
Related guides you'll like
- AI Model Prompts
Claude Prompts
Expert guide to Claude prompts with XML tags, artifacts, and complex reasoning
Read guide β - AI Tools & Apps
Best AI Tools Under 20 Dollars
Budget buying guide for affordable AI tools for writing, research, meetings, productivity, and small business
Read guide β - Prompt Engineering
ChatGPT API Prompting
Prompting strategies for the OpenAI API
Read guide β - Prompt Engineering
Prompt Caching
Reduce costs and latency with prompt caching strategies
Read guide β - Prompt Engineering
ChatGPT JSON Prompting
Get structured JSON output from ChatGPT reliably
Read guide β - AI Model Prompts
Midjourney Prompts
Stunning image generation with Midjourney prompt mastery
Read guide β