Claude API Pricing: Opus 5.5 & Haiku 5.5 Per Token
Claude API pricing for Opus 5.5 and Haiku 5.5 per 1M tokens: input, output and cache rates, plus worked cost examples for Claude Code and a chatbot.
GoiAPI · · 13 min read
Ask AI and more

Claude API pricing is per token, with separate rates for input, output, cache reads and cache writes. Anthropic lists Claude Opus 5.5 at $4 per million input tokens and $20 per million output tokens, and Claude Haiku 5.5 at $0.10 and $0.50 for prompts up to 100,000 tokens. On GoiAPI, Opus 5.5 costs $0.442 input and $2.21 output per million tokens, and Haiku 5.5 costs $0.0221 and $0.1105 (GoiAPI prices checked on December 5, 2026; Anthropic prices checked the same day).
Below you will find both price tables with all four token types, the formula for working out the cost of a request, and three worked examples: one measured Claude Code request, an hour-long coding session and a support chatbot, each with and without prompt caching.
Disclosure: GoiAPI sells API access to the Claude models covered in this article.
Claude API pricing at a glance (December 2026)
Anthropic list prices
Anthropic publishes its rates in USD per million tokens (MTok) on its Claude API pricing page, checked on December 5, 2026:
| Model | Input | 5-minute cache write | 1-hour cache write | Cache read | Output |
|---|---|---|---|---|---|
| Claude Opus 5.5 | $4 | $5 | $8 | $0.20 | $20 |
| Claude Haiku 5.5 (prompt up to 100,000 tokens) | $0.10 | $0.125 | $0.20 | $0.01 | $0.50 |
| Claude Haiku 5.5 (prompt over 100,000 tokens) | $0.50 | $0.625 | $1 | $0.05 | $2.50 |
A few details from the same page that change the bill:
- Haiku 5.5 is priced by prompt length. A request whose prompt is over 100,000 tokens, counting cache reads and cache writes, pays the higher rates for the whole request.
- Opus 5.5 cache reads cost 0.05x the input price ($0.20), while most other Claude models use 0.1x. Haiku 5.5 cache reads are 0.1x.
- Fast mode for Opus 5.5 costs $8 input and $40 output per million tokens. That is twice the standard rate.
- Batch API requests get 50% off input and output: $2 and $10 for Opus 5.5, $0.05 and $0.25 for Haiku 5.5 with prompts up to 100,000 tokens.
- US-only inference (
inference_geo: "us") applies a 1.1x multiplier to every token type.
Anthropic bills in USD through a credit card, with a minimum credit purchase of $5, and new accounts start with no credits. Prices change, so check the page before you budget.
GoiAPI prices for Claude Opus 5.5 and Haiku 5.5
GoiAPI charges in USD per million tokens. These rates come from GoiAPI pricing, checked on December 5, 2026:
| Token type | Claude Opus 5.5 | Claude Haiku 5.5 |
|---|---|---|
| Input | $0.442 | $0.0221 |
| Output | $2.21 | $0.1105 |
| Cache read | $0.0221 | $0.00221 |
| Cache write | $0.8775 | $0.043875 |
How this table differs from Anthropic's:
- One rate for Haiku 5.5. GoiAPI lists a single Haiku 5.5 price with no 100,000-token tier.
- One cache-write column. Anthropic has separate 5-minute and 1-hour cache writes; GoiAPI lists one cache-write rate.
- Two models only. GoiAPI offers Claude Opus 5.5 and Claude Haiku 5.5. Sonnet and Fable models are not available. The same key also calls GPT, DeepSeek and GLM models, listed on the models page.
Billing rules worth knowing: each request is charged for the tokens it actually uses, and each request that returns content has a small minimum charge that only matters for very short requests. A request that fails without returning any content is not charged, unless you cancel it yourself. There is no monthly fee. Each model also has its own page with model names and rates: Claude Opus 5.5 and Claude Haiku 5.5.
How Claude API pricing works: the cost formula
Every API price list quotes rates per million tokens because a single request usually uses somewhere between a few hundred and a few tens of thousands of tokens. If you are not sure what a token is, our guide to AI API tokens and what 1M tokens costs covers the basics.
The cost of one Claude request is:
cost = ( input tokens × input price
+ output tokens × output price
+ cache read tokens × cache read price
+ cache write tokens × cache write price ) ÷ 1,000,000A quick sanity check with GoiAPI rates: 1,000 input tokens on Opus 5.5 cost 1,000 × $0.442 ÷ 1,000,000 = $0.000442, and 1,000 output tokens cost $0.00221. On Haiku 5.5 the same 1,000 input tokens cost $0.0000221 and 1,000 output tokens cost $0.0001105.
You do not need to guess the token counts. Every Claude response includes a usage object with input_tokens, output_tokens, cache_creation_input_tokens and cache_read_input_tokens. Plug those four numbers into the formula and you have the exact cost of that request before any minimum charge.
Why the real bill differs from a quick estimate
- Output costs five times as much as input on both Opus 5.5 and Haiku 5.5. A long answer costs more than a long question.
- Claude's tokenizer produces more tokens. Anthropic says Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text than earlier models, with the exact increase depending on the content. Comparing per-million rates across model families without looking at token counts can mislead you.
- Tools and agents add fixed input on every request. Anthropic's pricing page lists 286 extra system-prompt tokens on Opus 5.5 and Haiku 5.5 whenever you pass tools (with
tool_choiceset to auto). Agent tools add far more: in our Claude Code test below, a one-line question cost over 26,000 input-side tokens because Claude Code sends its own instructions and tool definitions with every request.
Estimate before you send: count_tokens
GoiAPI supports POST https://api.goiapi.com/v1/messages/count_tokens, which takes the same body as /v1/messages (without max_tokens) and returns {"input_tokens": N}. These calls are not charged. According to GoiAPI's Anthropic Messages API docs, the number is an estimate for some models, so use it to check whether a prompt is too long, then confirm real costs from the usage field of a few actual requests or from the Request history page in the dashboard, which shows token counts and cost for each call.
curl https://api.goiapi.com/v1/messages/count_tokens \
-H "x-api-key: sk-..." \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-5-5",
"messages": [{"role": "user", "content": "Briefly explain prompt caching"}]
}'Input, output, cache read and cache write tokens
- Input: everything you send: the system prompt, conversation history, file contents, tool definitions and your new message.
- Output: the text the model writes back, including any tool calls it makes.
- Cache write: the first time a marked prompt prefix is stored in the prompt cache, those tokens are billed at the cache-write rate.
- Cache read: later requests that start with exactly the same prefix read it from the cache at the cache-read rate.
Claude prompt caching cost: when it pays off
On GoiAPI, a cache read costs one-twentieth of the input price on Opus 5.5 ($0.0221 vs $0.442) and one-tenth on Haiku 5.5 ($0.00221 vs $0.0221). A cache write costs just under twice the input price on both models. That means the same prefix needs to be sent at least three times (one write, two reads) before caching comes out ahead:
| 1M-token prefix on Opus 5.5 (GoiAPI) | Sent twice | Sent three times |
|---|---|---|
| Without caching | $0.884 | $1.326 |
| With caching (1 write + reads) | $0.8996 | $0.9217 |
Anthropic's own break-even is lower: one cache read for 5-minute writes (1.25x input) and two cache reads for 1-hour writes (2x input).
Claude Code turns on prompt caching by itself; in our test it wrote 15,574 tokens to the cache on the very first request. If you call the API from your own code, mark the stable part of the prompt with cache_control:
{
"model": "claude-haiku-5-5",
"max_tokens": 512,
"system": [
{
"type": "text",
"text": "<your long, unchanging instructions>",
"cache_control": {"type": "ephemeral"}
}
],
"messages": [{"role": "user", "content": "What does rule 7 say?"}]
}When we sent an identical cached request twice through GoiAPI on December 3, 2026, the second response reported the whole prefix under cache_read_input_tokens and nothing under cache_creation_input_tokens, so caching works the same way as on Anthropic's API.
Claude API cost examples
All three examples use the formulas above. GoiAPI figures exclude the per-request minimum charge. The Anthropic column uses the list prices above and assumes 5-minute cache writes. Example 1 is a measurement; examples 2 and 3 are assumptions you can replace with your own numbers.
Example 1: one short Claude Code request (measured)
On December 3, 2026 we ran Claude Code non-interactively from an empty folder with ANTHROPIC_BASE_URL=https://api.goiapi.com and ANTHROPIC_MODEL=claude-haiku-5-5, asking a one-line arithmetic question. Claude Code reported 10,679 input tokens, 15,574 cache-write tokens, 0 cache-read tokens and 3 output tokens. Almost all of that is Claude Code's own instructions and tool definitions, not the question.
| Same token counts priced on | Cost |
|---|---|
| Haiku 5.5, GoiAPI | about $0.00092 |
| Opus 5.5, GoiAPI | about $0.0184 |
| Haiku 5.5, Anthropic list price | about $0.0030 |
| Opus 5.5, Anthropic list price | about $0.1206 |
The Opus rows assume Opus counts the same tokens as Haiku. The point: in an agent like Claude Code, the fixed overhead of each request matters far more than the length of what you type. For monthly totals at different usage levels, see Claude Code Max vs API: which costs less per month.
Example 2: a one-hour Claude Code session (assumed)
Assume a working session of about 40 requests that adds up to 1,200,000 cache-read tokens (the conversation so far, re-read each turn), 150,000 cache-write tokens, 60,000 new input tokens and 40,000 output tokens. Each request stays well under 100,000 tokens, so Haiku's lower Anthropic tier applies.
| Token type | Tokens | Opus 5.5, GoiAPI | Haiku 5.5, GoiAPI | Opus 5.5, Anthropic list | Haiku 5.5, Anthropic list |
|---|---|---|---|---|---|
| Cache read | 1,200,000 | $0.0265 | $0.0027 | $0.24 | $0.012 |
| Cache write | 150,000 | $0.1316 | $0.0066 | $0.75 | $0.0188 |
| Input | 60,000 | $0.0265 | $0.0013 | $0.24 | $0.006 |
| Output | 40,000 | $0.0884 | $0.0044 | $0.80 | $0.02 |
| Total | ≈ $0.27 | ≈ $0.015 | ≈ $2.03 | ≈ $0.057 |
Without caching, all 1,410,000 input-side tokens would be billed at the normal input rate: the Opus 5.5 session on GoiAPI would cost about $0.71 instead of $0.27, and the Haiku 5.5 session about $0.036 instead of $0.015. Your own sessions may be much larger or smaller, depending on the project size and how many files Claude Code reads.
Example 3: a customer-support chatbot (assumed)
Assume each message re-reads 3,000 tokens of instructions and FAQ from the cache, adds 300 new input tokens (the question and a few recent turns) and returns 250 output tokens. The few cache writes per day are left out (one 3,000-token write on Haiku 5.5 costs about $0.00013 on GoiAPI).
Haiku 5.5 on GoiAPI, per message: (3,000 × 0.00221 + 300 × 0.0221 + 250 × 0.1105) ÷ 1,000,000 ≈ $0.000041
Opus 5.5 on GoiAPI, per message: (3,000 × 0.0221 + 300 × 0.442 + 250 × 2.21) ÷ 1,000,000 ≈ $0.00075| Volume | Haiku 5.5, GoiAPI | Opus 5.5, GoiAPI | Haiku 5.5, Anthropic list | Opus 5.5, Anthropic list |
|---|---|---|---|---|
| 1,000 messages/day | ≈ $0.041/day | ≈ $0.75/day | ≈ $0.19/day | ≈ $6.80/day |
| 1,000 messages/day × 30 days | ≈ $1.23/month | ≈ $22.54/month | ≈ $5.55/month | ≈ $204/month |
Without caching, each Haiku 5.5 message on GoiAPI would cost about $0.00010, or about $3.02 a month at the same volume. To try your own token counts, use the API cost calculator.
Opus 5.5 vs Haiku 5.5: which model to use
Anthropic recommends Haiku for simple tasks and Opus for the most complex reasoning. On GoiAPI, Haiku 5.5 costs one-twentieth of Opus 5.5 for input, output and cache writes, so picking the wrong model for a high-volume job changes the bill by an order of magnitude.
| Task | Try first | Why |
|---|---|---|
| FAQ chatbot, message classification, extracting fields from text | Haiku 5.5 | Repetitive, short answers, high volume |
| Summaries, translation, short drafts | Haiku 5.5, move to Opus 5.5 if quality falls short | Test on your real data before deciding |
| Multi-file coding, refactors, long documents that need step-by-step reasoning | Opus 5.5 | Wrong answers you have to rerun also cost tokens |
Claude Code's haiku alias | Haiku 5.5 | Set ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5; see the Claude Code API key setup guide |
A practical way to decide: run the same 20 to 30 real prompts through both models, compare the answers, and read the cost of each request on the Request history page.
Claude API vs Pro, Max and Ultra plans
Claude's subscription plans charge a flat monthly fee instead of per token. On claude.com/pricing, checked on December 5, 2026: Pro is $20 a month ($17 a month billed annually), Max is $100 and Ultra is $200. All three include Claude Code, and Max and Ultra include $100 and $200 of API credits a month.
A plan suits steady daily use that stays inside its usage limits. Pay-per-token API access suits irregular use, calls from your own code, or teams that want a hard spending cap per key. The full monthly comparison is in Claude Code Max vs API.
When to use Anthropic's API directly
- You need a model GoiAPI does not offer, such as Claude Sonnet 5.5 ($2 input, $10 output per million tokens on Anthropic's list) or Claude Fable.
- You run large jobs that do not need an immediate answer: the Batch API halves input and output prices.
- You need fast mode, US-only inference or a data-processing agreement signed directly with Anthropic.
- You prefer to pay by credit card and receive invoices from Anthropic.
If a credit card is the blocker, Claude API without a credit card walks through paying with USDT instead.
FAQ
How much does the Claude API cost per million tokens?
On Anthropic's list (checked December 5, 2026): Opus 5.5 is $4 input and $20 output; Haiku 5.5 is $0.10 and $0.50 for prompts up to 100,000 tokens, and $0.50 and $2.50 above that. On GoiAPI (checked the same day): Opus 5.5 is $0.442 input and $2.21 output; Haiku 5.5 is $0.0221 and $0.1105.
How is Claude API usage billed?
Per request, by token count, with four token types: input, output, cache read and cache write. Multiply each count by its rate and divide by 1,000,000. On GoiAPI each request that returns content also has a small minimum charge, and a request that fails without returning content is not charged unless you cancel it yourself.
How much does prompt caching save?
Cached tokens are billed at the cache-read rate: on GoiAPI that is one-twentieth of the input price for Opus 5.5 and one-tenth for Haiku 5.5. The first write costs just under twice the input price, so a prefix has to be sent at least three times to save money. In the one-hour session example above, caching brings the Opus 5.5 cost on GoiAPI from about $0.71 down to about $0.27.
Can I try the Claude API without a large upfront payment?
Anthropic's pricing page says the Claude API has no self-serve trial and new accounts do not include credits; the minimum credit purchase is $5. On GoiAPI you top up only what you plan to use, from 5 USDT. If you have no card, here is how to pay for the Claude API with USDT, no credit card.
Does the API cost less than a Claude Pro or Max plan?
It depends on how much you use. Light or irregular use, mostly on Haiku 5.5, usually stays well below a plan's monthly price in the examples above. Heavy daily Opus use can favor a plan if you stay inside its limits. The reliable way to know is to use the API for a few days, check your total spend in the dashboard, and compare it with the plan price.
Does Claude Haiku 5.5 cost more for long prompts?
On Anthropic's API, yes: requests with prompts over 100,000 tokens (including cache reads and writes) pay five times the base rates. GoiAPI lists one Haiku 5.5 rate regardless of prompt length.
Get started with Claude on GoiAPI
- Create a GoiAPI account and open Top up in the dashboard.
- Top up with USDT (TRC20 or BEP20) or Binance Pay, from 5 to 4,000 USDT at a time; 1 USDT adds 1 USD to your balance. No credit card and no monthly fee. Top-ups are final and cannot be refunded, so add only what you plan to use.
- Create an API key and, if you like, set a daily or monthly spending limit on it so costs never run past your budget.
- Point your client at GoiAPI:
https://api.goiapi.comfor Anthropic-format tools such as Claude Code and the Anthropic SDKs, orhttps://api.goiapi.com/v1for OpenAI-compatible clients. Useclaude-opus-5-5orclaude-haiku-5-5as the model name.
The quickstart guide walks through your first request, and limits and balance explains how balance holds and per-minute request limits work.


