What does the Claude API cost per million tokens?
Anthropic's pricing page lists four current models with these per-million-token rates, read on 2026-11-23 1:
| Model | Input | Output | Cache read | 5-minute cache write |
|---|---|---|---|---|
| Fable 5.2 | $8 | $40 | $0.20 | $10 |
| Opus 5.5 | $4 | $20 | $0.20 | $5 |
| Sonnet 5.5 | $2 | $10 | $0.10 | $2.50 |
| Haiku 5.5, prompt up to 100K | $0.10 | $0.50 | $0.01 | $0.125 |
| Haiku 5.5, prompt over 100K | $0.50 | $2.50 | $0.05 | $0.625 |
Haiku 5.5 is the only model on that page with a prompt-length tier: once a prompt passes 100K tokens, input, output and cache rates all move to the higher row 1. Batch processing is listed at half the standard rates 1. These are list rates; if your contract carries different ones, the contract wins, and any estimate should use it.
The older Fable models are not on the latest-models strip of that page. INFRO's summary of Anthropic's rate card, dated 9 November, lists Fable 5.1 and Fable 5 at $10 input and $50 output, with cache reads of $0.25 on 5.1 and $1.00 on 5, and Anthropic classes Fable 5 as a legacy model that is still available 2. Check Anthropic's page on the day you budget, because legacy rows move.
What is Claude Fable 5 pricing, and did Fable 5.2 change it?
Fable 5.2 was released on 9 November 2026 at $8 per million input tokens and $40 per million output tokens, below the $10 and $50 listed for Fable 5.1 34. Its cache read is $0.20 against $0.25 on 5.1, and its 5-minute write is $10 against $12.50 12. Fable 5 itself kept the $10 and $50 headline; its one visible difference from 5.1 is the $1.00 cache read 2.
Anthropic describes Fable 5.2 and Mythos 5.2 as the same underlying model. Mythos 5.2 is available only to vetted organizations through Anthropic's verification programs, and is listed from the same $8 and $40, with fast mode at $16 and $80 5.
Fast mode is optional on Fable 5.2: Anthropic lists it at $16 input and $80 output, which is twice the standard rate, with up to 2.5x faster token generation 31. Anthropic also says Fable 5.2 can finish hard tasks with fewer tokens than 5.1 at Medium effort, and that at High effort it scored about level with Opus 5.5 at Max effort on one coding benchmark for roughly half the cost per task 3. That is a vendor claim on a vendor benchmark. INFRO's re-test plan notes the API default effort is high, not medium, so the claim may not describe your traffic 4.
How a Claude request is priced
A request costs each token category times its rate: uncached input at the input rate, cache writes at the write rate, cache reads at the read rate, and output at the output rate. Then three modifiers apply, per Anthropic's page 1:
- Batch processing at half the standard token rates.
- US-only inference at 1.1x on input and output tokens, for workloads that must run in the US.
- Fast mode at 2x standard pricing, for Opus 5.5 and Fable 5.2.
Prompt caching is the other lever. A 5-minute write on Opus 5.5 is $5 against a $4 input rate, and a read is $0.20 1, so a stable prefix that is read often costs a small fraction of resending it uncached. INFRO's earlier analysis puts the break-even at one read for a 5-minute write and two for a 1-hour write 4.
The tokenizer matters when you migrate. Anthropic's pricing page says Claude 4.7 and later models use a newer tokenizer that produces approximately 30% more tokens for the same text than Sonnet 4.6 and earlier 4. Moving from a pre-4.7 model to any current one therefore raises token counts before any rate comparison.
Estimating Claude cost in code
If you hold the rates in one table, you can price any request from its usage counts. This sketch is illustrative; rates are the list rates above and must be replaced by your contract's rates where they differ.
# USD per 1M tokens: input, output, cache_read, cache_write_5m
RATES = {
"fable-5-2": (8.00, 40.00, 0.20, 10.00),
"opus-5-5": (4.00, 20.00, 0.20, 5.00),
"sonnet-5-5": (2.00, 10.00, 0.10, 2.50),
}
def cost(model, uncached_in, cache_read, cache_write, out,
batch=False, us_only=False, fast=False):
i, o, r, w = RATES[model]
total = (uncached_in * i + cache_read * r
+ cache_write * w + out * o) / 1_000_000
if batch:
total *= 0.5
if us_only:
total *= 1.1
if fast:
total *= 2 # Opus 5.5 and Fable 5.2 only
return totalAnthropic says the cache multipliers stack with the modifiers, but the page I read does not say whether fast mode can be combined with Batch; INFRO's earlier summary says it cannot 2. Treat that combination as invalid in your own code until you confirm it.
What should you look for in a budget-friendly or best-value routing service?
The question "best value" mixes three costs. Anthropic's rates are fixed by Anthropic and are the same whichever gateway carries the call. What differs is the fee on top, what the product does when your own key fails, and whether its limits count your own-key spend at all.
INFRO's summary of each product's own pages as of 20 October 2026 gives concrete differences 67:
| Service | Fee model on your own keys | Budgets and fallback |
|---|---|---|
| OpenRouter | 5% of what the usage would cost on OpenRouter, after a monthly allowance | Falls back to shared endpoints by default; BYOK spend counts in budgets only if switched on |
| Requesty | "5% markup" on pay-as-you-go; the page does not say whether it applies to BYOK | Ordered fallback chains |
| Vercel AI Gateway | BYOK on the paid tier, with a purchased balance required | Failed requests retried on Vercel's credentials and billed to your balance; BYOK spend not counted in budgets |
| Cloudflare AI Gateway | Core features free; guardrails billed as Workers AI inference | Dollar budgets apply to BYOK for priced models; estimates are best-effort and a burst can pass a limit |
| INFRO | Software subscription, 0% markup on model spend | Budgets checked before the call on every request, because every request is on your own keys |
Routing itself can lower spend only if it sends work to a model that is good enough. A route that downgrades to Haiku 5.5 changes the input rate by a factor of 80 compared with Fable 5.2 ($0.10 against $8), but also changes quality, and INFRO's own routing guide says to decide how you will measure quality on the downgraded path first 71.
Vercel AI Gateway and Cloudflare AI Gateway alternatives
If you are looking for a Vercel AI Gateway alternative, the deciding question is usually BYOK behavior. Per INFRO's reading of Vercel's documentation, BYOK needs a purchased gateway balance, a failed request on your credentials is retried on Vercel's and billed to you, and your own-credential spend is not counted in budgets 6. If a budget must see every dollar, look at options that count BYOK spend: Cloudflare for priced models, LiteLLM, Bifrost or Kong if you self-host, or a BYOK control plane 6.
If you are looking for a Cloudflare AI Gateway alternative, the reasons differ. Cloudflare's core features are free and its budgets apply to BYOK requests for models with known pricing, but Cloudflare says cost tracking is a best-effort estimate and a concurrent burst can briefly pass a limit 6. Teams that need a hard per-key, per-project or per-member cap, or that are not on Cloudflare, will compare self-hosted gateways, which you operate and secure yourself, against a hosted control plane 6.
Neither list is a verdict. INFRO publishes these summaries and has a commercial interest; use the comparison questions rather than the ranking.
AI gateway vs AI governance platform
They are different layers. INFRO's comparison of governance tools separates program governance, which inventories AI systems, assesses risk and maps controls to frameworks such as the EU AI Act, from runtime governance, which decides per request which models a team may call, with which key, inside which budget and under which guardrails 8. Credo AI, IBM watsonx.governance, OneTrust and Holistic AI sit in the first group on their own pages; Kong AI Gateway, Cloudflare AI Gateway, LiteLLM and INFRO sit in the second 8.
For Claude spend, the gateway is the layer that acts: it can refuse a request before the provider is called, record the model and estimated cost, and route on failure. A governance platform records that you decided Claude was approved. Most enterprises need both, and a gateway's request records are evidence a program tool can use, not proof of compliance 8.
Where INFRO fits for Claude spend
INFRO runs on your own provider accounts: you connect Anthropic, Bedrock or Vertex, your provider bills you directly, and INFRO charges a subscription with 0% markup on model spend 9. The model catalog at infro.io/providers (opens in a new tab) lists models with each vendor's reference rate for comparison. Budgets set a hard cap per organization, project, member or key, with alerts at thresholds you choose. Routes send traffic by priority or weight over your own connections, with health checks, retries and failover; routing rules can send matching requests, for example by prompt size or tools, to their own targets. Negotiated rates can be entered so estimates use your contract rather than list rates.
It is not the right choice if you want to self-host without an enterprise agreement, or want to start at zero cost on a platform you already run, such as Cloudflare 6.
A checklist before you budget Claude
- Record the current list rate for each model you call, with the date, and replace it with your contract rate where one exists.
- Count tokens on a sample of real prompts on both the old and the new model id, not just rates.
- Measure output tokens per task at the effort level you actually send.
- Price caching from your measured hit rate, not the best case.
- Decide whether fast mode and US-only inference are needed, since they multiply the rate by 2 and 1.1.
- Set a hard cap per project and key before sending production traffic.
- Check that fallbacks to a different model are priced in the forecast.
