Claude API PricingClaude Opus 5.5Prompt CachingClaude CodeLLM Pricing

Claude API Price in 2026: $4 vs $1.92 per 1M Tokens for Opus 5.5, but a Claude Code Session Saves 36%, Not 52%

Claude Opus 5.5 costs $4 per 1M input tokens on Anthropic’s API and $1.92 on MegaBrain, 52% less. Price Anthropic’s own sample Claude Code session on both lists, though, and the gap is 36%: 94% of its tokens are cache reads, billed at $0.20 and $0.19 per million.

2026-12-04·8 min read

This is a price check of the four current Claude models as of December 4, 2026: the official per-token price from Anthropic’s pricing page, the price MegaBrain’s model pages list for the same model, and what real jobs cost on each. Real jobs are where list prices mislead, because coding agents re-send their context on every turn, and that traffic is billed at a different rate.

The short answer. For Opus 5.5 and Sonnet 5.5, MegaBrain’s input and output prices are 52% under Anthropic’s, and a cache-heavy Claude Code session comes out about 34–36% cheaper. Output-heavy jobs with no caching get the full 52%. For Fable 5.2, MegaBrain costs more than Anthropic, so call Fable directly.

Claude API prices in December 2026

Prompt caching lets the API store a long prompt prefix (your system prompt, the files an agent has read) and bill later requests that reuse it at a fraction of the input price. Writing to the cache costs more than plain input; reading from it costs much less. All prices are per 1M tokens.

ModelInputOutputCache readCache write
Fable 5.2, Anthropic$8.00$40.00$0.20$10 (5 min) / $16 (1 h)
Fable 5.2, MegaBrain$9.60$48.00$0.24$12.00
Opus 5.5, Anthropic$4.00$20.00$0.20$5 (5 min) / $8 (1 h)
Opus 5.5, MegaBrain$1.92$9.60$0.19$2.40
Sonnet 5.5, Anthropic$2.00$10.00$0.10$2.50 (5 min) / $4 (1 h)
Sonnet 5.5, MegaBrain$0.96$4.80$0.10$1.20
Haiku 5.5, Anthropic (prompts ≤100K)$0.10$0.50$0.01$0.125 / $0.20
Haiku 5.5, MegaBrain$0.07$0.36$0.01$0.09

Anthropic prices are from its pricing page; MegaBrain prices are as the Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 model pages showed them on December 4, 2026. Three details matter. Anthropic bills the full 1M-token context at standard rates on every model here except Haiku 5.5, which charges $0.50 / $2.50 for prompts over 100,000 tokens. Its Batch API halves input and output prices for jobs that can wait: $2 / $10 on Opus 5.5. And the newer tokenizer on Claude 4.7 and later produces, in Anthropic’s words, “approximately 30% more tokens for the same text,” so an older Claude’s per-token price is not directly comparable.

The session that changes the math

Anthropic’s Claude Code docs show a real /usage readout for one session: 1.2K input tokens, 5.3K output tokens, 940K cache-read tokens and 50K cache-write tokens, $0.55 on Claude Sonnet 4.6. That is 996.5K tokens, and 94% of them are cache reads: the agent re-reading its own context on every turn. Here is the same token mix on today’s models, with Anthropic’s 5-minute cache-write rate (the rate that reproduces the docs’ $0.55).

Stacked bar chart of one Claude Code session (1.2K input, 5.3K output, 940K cache-read, 50K cache-write tokens). Fable 5.2: $0.91 on Anthropic’s API, $1.09 on MegaBrain. Opus 5.5: $0.55 on Anthropic, $0.35 on MegaBrain. Sonnet 5.5: $0.27 on Anthropic, $0.18 on MegaBrain. Cache reads are a large share of every bar.
Token counts from Anthropic’s Claude Code “Manage costs” page; prices from Anthropic’s pricing page and MegaBrain’s model pages, read December 4, 2026.
ModelAnthropic APIMegaBrainDifference
Fable 5.2$0.910$1.092+20% on MegaBrain
Opus 5.5$0.549$0.352−36%
Sonnet 5.5$0.274$0.181−34%
Haiku 5.5 (if each prompt stays under 100K)$0.018$0.016−14%

Break the Opus 5.5 line apart and the reason is plain. Input and output cost $0.111 on Anthropic’s API and $0.053 on MegaBrain. Cache writes cost $0.25 and $0.12. But the 940K cache reads cost $0.188 and $0.179: a 5% difference on the biggest line of the bill. If Claude Code writes with Anthropic’s 1-hour cache instead ($8 per 1M on Opus 5.5), the official session rises to $0.70 and the gap widens to 50%.

What typical jobs cost

The same listed prices, applied to four workloads. The first two use Anthropic’s published token counts; the support-reply job is an example size, stated so you can rescale it.

JobModelAnthropic APIMegaBrain
Anthropic’s worked example: 50K input + 15K output, no cachingOpus 5.5$0.50$0.24
Same, with 40K of the input as cache readsOpus 5.5$0.35$0.17
50 sessions like the /usage exampleOpus 5.5$27.44$17.59
50 sessions like the /usage exampleSonnet 5.5$13.72$9.03
1,000 support replies: 2K-token prompt, 300-token replySonnet 5.5$7.00$3.36
1,000 support replies: 2K-token prompt, 300-token replyHaiku 5.5$0.35$0.25

Anthropic’s worked example also adds $0.08 of session runtime for its Managed Agents product; the table counts tokens only. For a sense of scale, Anthropic’s docs put Claude Code at around $13 per developer per active day across enterprise deployments, $150–250 per developer per month, and under $30 per active day for 90% of users.

When the official API is the better deal

Be fair to Anthropic’s own price list. It wins in three cases:

  • Fable 5.2. Every Fable 5.2 price on MegaBrain is 20% above Anthropic’s. If you need Fable, call it directly.
  • Batch jobs. Anthropic’s Batch API charges $2 / $10 on Opus 5.5 and $1 / $5 on Sonnet 5.5, within a few cents of MegaBrain’s per-token prices, if your job can wait for an asynchronous result.
  • Cache-read-heavy traffic. On Opus, Sonnet and Haiku cache reads the two price lists are the same or 5% apart, so a workload that is almost all cache hits saves little either way.

Where MegaBrain does save is interactive, output-heavy work on Opus 5.5 and Sonnet 5.5, and any session with a lot of cache writes: new files, new tools, a context that keeps changing. The one-key part matters too: the same key and balance reach GPT, Gemini, Grok, Kimi and the image and video models.

Run Claude Code on MegaBrain

Claude Code talks the Anthropic Messages API, so it needs MegaBrain’s Anthropic endpoint, not the OpenAI-compatible one. From the MegaBrain University Claude Code guide, check the key first:

curl -sS -X POST "https://getmegabrain.com/api/anthropic/v1/messages" \
  -H "Authorization: Bearer $MEGABRAIN_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "anthropic/claude-haiku-5.5", "max_tokens": 20, "messages": [{"role": "user", "content": "Say OK"}]}'

Then add an env block to ~/.claude/settings.json. The base URL has no /v1; Claude Code adds /v1/messages itself. Keep the key out of a project’s .claude/settings.json, which gets committed.

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://getmegabrain.com/api/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "your-megabrain-key",
    "ANTHROPIC_MODEL": "anthropic/claude-sonnet-5.5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "anthropic/claude-opus-5.5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "anthropic/claude-sonnet-5.5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "anthropic/claude-haiku-5.5"
  }
}

Run claude, then /status: the base URL line should show https://getmegabrain.com/api/anthropic. Sonnet 5.5 is the everyday default; switch to Opus 5.5 with /model opus for hard refactors. For scripts and apps, the same key works on the OpenAI-compatible endpoint (an API that accepts the same requests as OpenAI’s, so the official OpenAI SDKs work by changing the base URL):

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'anthropic/claude-opus-5.5',
  messages: [{ role: 'user', content: 'Hello!' }],
})

What this means for your bill

Run /usage at the end of a normal Claude Code session and read the “Usage by model” line. If cache reads dominate, as in Anthropic’s example, expect a saving near 36% on Opus 5.5, not 52%. If your sessions write a lot of new context or produce long output, you will land closer to 52%. Either way, the per-token headline is the upper bound, and the cache-read price is the number that decides the rest.

Try it in 2 minutes

Create a MegaBrain account, add a card for $1 of trial credit, top up from $10, and paste the settings.json block above. Run the same task you ran yesterday, then compare /usage with your last Anthropic invoice line. Every Claude price is on the Claude API page and the price list.

FAQ

How much does the Claude API cost in December 2026?

On Anthropic’s pricing page, read December 4, 2026: Claude Fable 5.2 costs $8 per 1M input tokens and $40 per 1M output tokens, Claude Opus 5.5 $4 and $20, Claude Sonnet 5.5 $2 and $10, and Claude Haiku 5.5 $0.10 and $0.50 for prompts up to 100,000 tokens ($0.50 and $2.50 above that). Cache reads cost $0.20, $0.20, $0.10 and $0.01 per 1M tokens, and the Batch API halves input and output prices.

What is the cheapest way to use Claude Opus 5.5 through an API?

For interactive work, MegaBrain lists Opus 5.5 at $1.92 per 1M input tokens and $9.60 per 1M output tokens (read December 4, 2026), against $4 and $20 on Anthropic’s API. For jobs that can wait, Anthropic’s Batch API charges $2 and $10. On a cache-heavy coding session the difference is smaller than the per-token gap: $0.35 against $0.55 on Anthropic’s sample Claude Code session.

Why does prompt caching shrink the saving?

In an agent session most tokens are the same context sent again on every turn. Anthropic bills those cache reads at 5% of the input price on Opus 5.5 ($0.20 per 1M), and MegaBrain lists them at $0.19. In Anthropic’s sample session 94% of tokens are cache reads, so the 52% discount on input and output applies to a small part of the bill.

Is Claude Fable 5.2 cheaper on MegaBrain?

No. MegaBrain lists Fable 5.2 at $9.60 input, $48 output, $0.24 cache read and $12 cache write per 1M tokens; Anthropic charges $8, $40, $0.20 and $10. The sample Claude Code session costs $0.91 on Anthropic’s API and $1.09 on MegaBrain. For Fable 5.2, Anthropic’s own API is the cheaper option.

Can I use Claude Code with an API key instead of a subscription?

Yes. Claude Code bills by API token when it runs on an API key, and Anthropic’s docs put the enterprise average at about $13 per developer per active day. To run it on MegaBrain, set ANTHROPIC_BASE_URL to https://getmegabrain.com/api/anthropic and put your MegaBrain key in ANTHROPIC_AUTH_TOKEN, as the MegaBrain University Claude Code guide shows.

Does a 1M-token context cost more on Claude?

Not on the current models. Anthropic says Claude 4.6 and later models, except Haiku 5.5, bill the full 1M-token window at standard rates: a 900K-token request costs the same per token as a 9K-token one. Haiku 5.5 has a higher price for prompts over 100,000 tokens.

Sources

All pages opened December 4, 2026.

Full disclosure: MegaBrain sells API access to models from labs including Anthropic. MegaBrain is not affiliated with Anthropic.

MegaBrain · one API for every model

Claude, GPT, Gemini, FLUX and Kling with one key and one balance.

Pay as you go, no subscription required. Try the models in the chat or the playground, then call them through an OpenAI-compatible API.

Newsletter

Stay in the loop

Get our latest AI research and guides. No spam, unsubscribe anytime.