Claude API Pricing: What Every Model Costs and How to Get an API Key

Claude API pricing for every model as of December 2026, with real cost examples, caching and batch discounts, and how to get a Claude API key step by step.

Claude API Pricing: What Every Model Costs and How to Get an API Key

Claude API pricing is pay-as-you-go: you pay per million tokens you send (input) and per million tokens Claude writes back (output). As of December 2026, Anthropic's newest models cost from $0.10 to $8 per million input tokens and $0.50 to $40 per million output tokens, from Claude Haiku 5.5 up to Claude Fable 5.2. Anthropic suggests starting with Claude Opus 5.5 at $4 in and $20 out; Sonnet 5.5 costs half that, and batching and prompt caching can cut any bill by half or more.

Claude API: price per million output tokens
US prices as of December 2026, from the providers' own pricing pages. Prices vary by country and change often.

Claude API pricing by model

Here is Anthropic's Claude API pricing for its current lineup. "MTok" means a million tokens.

ModelInput / MTokOutput / MTokCache read / MTokBest for
Claude Fable 5.2$8$40$0.20The hardest reasoning and long agent runs
Claude Opus 5.5$4$20$0.20Agentic coding and knowledge work
Claude Sonnet 5.5$2$10$0.10Speed and intelligence at a lower price
Claude Haiku 5.5$0.10$0.50$0.01High-volume classification, extraction, routing
Claude Mythos 5.2$8$40$0.20Verified organizations only

Haiku 5.5's rates apply to prompts up to 100,000 tokens; longer prompts pay $0.50 in and $2.50 out. The other current models charge the same rate across their full 1 million-token context window.

Older Claude models still on the API

ModelInput / MTokOutput / MTok
Claude Fable 5.1 and Fable 5$10$50
Claude Opus 5, 4.8, 4.7 and 4.6$5$25
Claude Sonnet 5$2$10
Claude Sonnet 4.6$3$15
Claude Haiku 4.5$1$5

Newer models are often cheaper: Opus 5.5 costs 20% less per token than Opus 5, and Fable 5.2 20% less than Fable 5.1. One catch: Anthropic says Claude 4.7 and later use a newer tokenizer that produces about 30% more tokens for the same text, so compare total bills, not just the Claude API price per token.

Claude Opus API price

The Claude Opus API price is $4 per million input tokens and $20 per million output tokens for Opus 5.5, the current Opus; Opus 5 and Opus 4.6 to 4.8 still cost $5 and $25. Opus 5.5's fast mode, which Anthropic says gives up to 2.5 times more output tokens per second, costs $8 in and $40 out.

Claude Haiku API pricing

Claude Haiku 5.5 is the cheapest model by far: $0.10 in and $0.50 out for prompts up to 100,000 tokens, or $0.05 and $0.25 through the Batch API. That is a tenth of Haiku 4.5's per-token price.

Prompt caching and batch discounts

Two built-in discounts can cut a bill sharply:

  • Prompt caching stores a repeated prefix, such as a long system prompt, so later requests read it cheaply. Writing to the 5-minute cache costs 1.25 times the input price, the 1-hour cache 2 times. Reading costs 10% of the input price on most models, 5% on Opus 5.5 and Sonnet 5.5, and 2.5% on Fable 5.2.
  • The Batch API processes requests asynchronously at 50% off both input and output. It suits jobs that don't need an instant answer, and it stacks with caching.

Two extras: web search costs $10 per 1,000 searches plus tokens, and US-only processing adds 10% to token prices on Claude 4.6 and later.

Claude API cost: three worked examples

Anthropic says 1 million tokens is roughly 555,000 English words on current models, so plan on about 1.8 tokens per word. At list prices:

  1. A support chatbot on Sonnet 5.5. 10,000 conversations a month at 3,000 input and 500 output tokens each: 30 million input tokens ($60) plus 5 million output tokens ($50), about $110 a month. If 2,000 of those input tokens are a cached system prompt, that part costs $2 instead of $40, so the total falls to about $72 plus cache-write charges.
  2. Summarizing 1,000 documents with Haiku 5.5. At 5,000 tokens in and 300 out each, that's $0.50 of input and $0.15 of output, about $0.65, or around $0.33 through the Batch API.
  3. A heavy day of agentic coding on Opus 5.5. 2 million input tokens and 200,000 output tokens cost $8 plus $4, or $12. Coding agents re-read the same context constantly, so with 80% of input served from the cache it drops to about $6 before cache writes. Fable 5.2 costs about twice as much.

Output costs five times as much as input on every current model, so long answers and heavy reasoning drive bills more than long prompts.

How to get a Claude API key

Here is how to get a Claude API key in the Claude Console, Anthropic's developer dashboard:

  1. Go to platform.claude.com and create a Console account, or sign in.
  2. Open the API keys page (platform.claude.com/settings/keys) and click Create key. If the dialog offers other ways to connect, choose Continue with an API key.
  3. Name the key and choose its expiry, who it's linked to (yourself, for a personal key) and the workspace it works in. You can't change the expiry later.
  4. Copy the key, which starts with sk-ant-. The Console shows it only once, so store it in a password or secrets manager.
  5. Buy credits on the Billing page, then set the key as the ANTHROPIC_API_KEY environment variable. Anthropic's SDKs and CLI read it automatically.

Treat Claude API keys like passwords: anyone holding one can spend your credit, and Anthropic's consumer terms forbid sharing your API key or account credentials. For local development, you can also sign in with Anthropic's ant command-line tool instead of creating a key.

Using a Claude Code API key

Claude Code works with a Claude subscription or with Console billing. If you set ANTHROPIC_API_KEY and approve it when Claude Code asks, the key takes priority over your Pro, Max or Ultra login, and usage is billed at API rates from your Console credits. Run /status to see which credential is active. For how Claude Code compares with other coding tools, see our Cursor Pro pricing guide.

Claude API credits, billing and usage tiers

Claude API billing is prepaid by default:

  • No free tier. New accounts get no free credits, and the minimum credit purchase is $5.
  • Credits expire one year after purchase and can't be refunded. Purchased credits also cover the Console playground and Claude Code.
  • Auto-reload tops up your balance when it falls below a threshold you set.
  • Invoicing, with monthly billing in arrears, is available by arrangement with Anthropic's sales team.

Every organization sits in a usage tier that sets its rate limits and monthly spend cap. New accounts may start in an Evaluation tier with lower limits. The Start tier caps spending at $500 a month, Build at $1,000 and Scale at $200,000. You move up automatically as your usage history grows, or can request an increase on the Console's Rate limits page. Set your own lower spend limit too, so a runaway script can't drain your balance.

Claude API vs Claude Pro and Max subscriptions

A Claude subscription and the API are billed separately, and Pro does not include API credits.

PlanUS priceAPI credits includedClaude Code
Free$0NoneNo
Pro$20/month, or $17/month billed yearlyNoneYes
Max$100/month$100 a monthYes
Ultra$200/month$200 a monthYes
API onlyPay per tokenYou buy themAt API rates

Max and Ultra subscribers claim these credits by linking a Console organization after seven days on the plan. They cover the API, Managed Agents, the Agent SDK and the playground, but not Claude Code, and expire at the end of each billing cycle.

If you mainly chat with Claude or work in Claude Code, a subscription is the more predictable cost. If you're building an app, you need the API. For how Claude Pro compares with ChatGPT Plus, see our guide on whether ChatGPT Plus is worth it, and for every Claude plan and its limits, our Claude pricing guide.

Cheaper ways to pay for the Claude API

Start with the savings Anthropic builds in:

  1. Use the smallest model that does the job. Haiku 5.5 costs a fortieth of Opus 5.5 on input.
  2. Cache everything that repeats, and batch anything that can wait.
  3. Cap output length, since output costs five times as much as input.
  4. Use the credits you already pay for if you're on Max, Ultra or a Team plan.
  5. Ask about discounts. Anthropic says volume discounts are negotiated case by case, and academic and research discounts might be available.

The Token Jar also sells Claude API access in fixed packs: options labelled with a dollar amount of usage and a 30-day period, and token packs of 50 million or 100 million tokens with a 2- or 3-day period.

No. 086 Instant
Accounts & Top-ups

Claude API credits

Claude API access by the token amount or dollar credit, from 10M tokens to $500.

From
$1.75

According to the listing, a code appears on your private order page right after payment, with the activation steps, and the facts table describes the format as account details. Know what you're buying:

  • It isn't an Anthropic product. The Token Jar is an independent store, not affiliated with or endorsed by Anthropic.
  • It may not be your own key. The listing doesn't say the usage is added to your own Console organization, so expect access the store provides rather than a key you created. If you need to know how it connects, ask the store before you buy.
  • Anthropic doesn't allow resale. Its commercial terms forbid reselling its services without its approval, and its consumer terms forbid sharing API keys or account credentials. Resold access can stop working at any time, and unless it runs on your own Console account you get no Anthropic support, invoices or usage reports.
  • Cover is short. Codes that don't activate are replaced or refunded, and the periods in the option names run from 2 to 30 days. Usage, limits and expiry follow the provider's terms.

That makes it a fit for experiments and short projects, not production apps or customer data; keep those on your own Console account. The store also lists a Codex API token pack for OpenAI's Codex, and OpenRouter credit codes, which are sold out at the time of writing.

FAQ

How much does the Claude API cost?

As of December 2026, Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens. Sonnet 5.5 costs $2 and $10, Haiku 5.5 starts at $0.10 and $0.50, and Fable 5.2 costs $8 and $40.

Is the Claude API free?

No. The Claude API has no free tier, and new accounts don't get free credits. You buy credits from $5, or claim the monthly API credits included with Max, Ultra and Team plans.

How do I get a Claude API key?

Sign in to the Claude Console at platform.claude.com, open the API keys page, click Create key and copy the key at once, since it's shown only once. Then buy credits on the Billing page.

Does Claude Pro include API access?

No. Claude Pro covers the Claude apps and Claude Code but includes no API credits. Max includes $100 a month and Ultra $200 a month in API credits.

Do Claude API credits expire?

Yes. Credits you buy in the Console expire one year after purchase and can't be refunded. API credits included with Max, Ultra and Team plans expire at the end of each billing cycle.

Prices and plans change often and vary by country; check the provider’s own page for the latest. The Token Jar is an independent seller, not affiliated with or endorsed by the brands mentioned.

+

Keep readingMore guides

All guides
Dec 3, 2026 · 7 min read

Claude vs ChatGPT: Prices, Features, Limits and Which to Choose

Claude vs ChatGPT for December 2026: both cost $20 a month, but differ on images, voice, coding, limits, long documents and privacy. Here's which to choose. Read the guide
Dec 3, 2026 · 9 min read

Claude Pricing: Free vs Pro vs Max vs Ultra, Claude Code and Discounts

Claude pricing for December 2026: Pro is $20, Max $100 and Ultra $200. What each plan includes, what Claude Code costs, usage limits and student discounts. Read the guide
Dec 3, 2026 · 9 min read

Gemini vs ChatGPT: Prices, Features, Limits and Which to Choose

Gemini vs ChatGPT for December 2026: Google AI Pro costs $19.99 and ChatGPT Plus $20, but they differ on storage, context, video, limits and privacy. Read the guide