Artificial Intelligence

Which Claude model per task: cost per task, effort and pricing traps

Team Nippysoft
• • 13 min read
Which Claude model per task: cost per task, effort and pricing traps

An invented week of work, at the official prices of November 10, 2026, costs $90.27 if everything goes to Claude Fable 5.2, $45.39 if everything goes to Opus 5.5, and $12.78 if reading goes to Haiku 5.5, code to Sonnet 5.5 and only the hard decisions to Fable. It's a hypothetical scenario: the task sizes are assumptions; the prices aren't. The big saving comes from not paying for the most expensive model to read, not from picking the best one.

The Fable 5.2 figures, against the source

Six figures have been making the rounds since the launch. All of them come from Anthropic's announcement, but five need a caveat:

Figure going aroundWhat the source saysCaveat
FrontierCode 2.0, from 32.4% to 49.1%"Agentic coding FrontierCode 2.0 49.1% Xhigh effort", and 32.4% for Fable 5.1Both figures are at Xhigh effort
Opus 5.5, 45.5%The same table gives 45.5% for Opus 5.5That's its highest effort, against Fable at Xhigh
$8/$40 per million, down from $10/$50"$8 per million input tokens and $40 per million output tokens"; Fable 5.1 costs $10/$50None
Up to 30% faster"They generate outputs up to 30% faster than Claude Fable 5.1 and Claude Mythos 5.1"Against Fable 5.1, not against Opus
Fast mode 2.5× at double the price$16/$80 per million, double $8/$40Details in the fast mode section below
About 55% fewer"we observed about 55% fewer blocks with Fable 5.2 compared with Fable 5.1"These are blocks compared with Fable 5.1, from early testing in claude.ai, Claude Code and Cowork

The benchmark figures are Anthropic's, not an independent evaluation, and the announcement says: "All scores show each model’s highest-available effort unless otherwise noted". The same table compares against other vendors' models. We didn't open their pages, so this post doesn't compare them.

The prices that change the math

This is the table from the pricing page, in US dollars per million tokens. A cache hit is what it costs to reread a prefix that's already stored, and batch is the rate on the batch processing API:

ModelInputCache hitOutputBatch (input / output)
Claude Fable 5.2$8$0.20$40$4 / $20
Claude Opus 5.5$4$0.20$20$2 / $10
Claude Sonnet 5.5$2$0.10$10$1 / $5
Claude Haiku 5.5, prompt up to 100,000 tokens$0.10$0.01$0.50$0.05 / $0.25
Claude Haiku 5.5, prompt over 100,000 tokens$0.50$0.05$2.50$0.25 / $1.25

The same text doesn't necessarily produce the same tokens on every model. The page says "Claude 4.7 and later models […] use a newer tokenizer", which "produces approximately 30% more tokens for the same text" than the one in Sonnet 4.6 and older, but it doesn't list which models use it. For your own prompt, the page itself says how to find out with token counting: "To see how many tokens a request uses on a specific model, count it with Token counting and that model’s ID."

Cost per task, not per token

Price per token misleads because it doesn't say how many tokens each model spends to finish a task. The announcement measures cost per task, and by that yardstick the expensive model can come out cheaper: "Fable 5.2 at High effort scored about level with Opus 5.5 at Max effort, for roughly half the cost per task". That comparison comes from early testing on FrontierCode, the announcement's coding benchmark.

Effort is the lever to pull first. The model selection guide says: "Tuning effort is often a better lever than switching models." Effort tells the model how much to reason. Its levels go from low to max, but which ones exist and which one applies by default depend on the model and the platform. On the API, "Claude Opus 5.5 and Claude Haiku 5.5 default to medium", while on Sonnet 5.5 "high is the default on the Claude API", as on Fable 5.2. In Claude Code all four start at the same level: "Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to medium". Effort isn't a token budget either: "Effort is a behavioral signal, not a strict token budget." And raising it doesn't guarantee a better result: on Fable 5.2, above high, "gains are uneven and depend on the task". Before you switch models because a task doesn't come out right, try a different effort on the one you already use and measure whether it improves.

Measure cost per finished task, not per request. A task that needs three retries on the cheap model can cost more than a single pass on the expensive one. That's our inference, not a measurement: it rests on the announcement's cost-per-task figures.

Two pricing traps

Haiku 5.5 changes price with prompt length. It costs $0.10 input and $0.50 output per million up to 100,000 prompt tokens, and $0.50 and $2.50 above that. The higher rate applies to the whole request, and the length counts everything: "A request’s prompt length counts all of its input tokens, including cache reads and cache writes." With 1,500 output tokens, one extra token makes the request five times as expensive:

Haiku 5.5 price step at 100,000 prompt tokens (one request, 1,500 output tokens):
  100000 input tokens: $0.01  exact 0.01075
  100001 input tokens: $0.05  exact 0.0537505

Even above the step, Haiku costs a quarter of what Sonnet 5.5 does: $0.50 versus $2 for input and $2.50 versus $10 for output. If the prompt goes over 100,000 tokens, splitting the document puts each part back on the low rate, but it doesn't always work. Each part loses the global context, its relations to the other parts and the cross-references. And if every part repeats the instructions, the context or shared information, the total cost can go up. Sonnet 5.5 has no step: the other models from 4.6 on "include the full 1M token context window at standard pricing". If the task needs the whole document, don't split it: send it whole to Haiku, which still costs a quarter at the high rate. Switch to Sonnet 5.5 only if Haiku doesn't give you the quality you need. If you're not sure what counts as prompt, the post on the context window goes through what fills it.

A cache hit costs the same on both big models. It's $0.20 per million on Fable 5.2 and also on Opus 5.5, because the pricing page charges cache hits at "0.025x on Claude Fable 5.2" and "0.05x on Claude Opus 5.5 and Claude Sonnet 5.5" of the input price. The same 40,000 cached tokens, read once:

Same 40,000 cached tokens read once, per model:
  haiku-5.5: 0.0004
  sonnet-5.5: 0.004
  opus-5.5: 0.008
  fable-5.2: 0.008

With context that repeats a lot, the gap between Fable and Opus is in the fresh input, the output and the cache writes, not in the hits. Writing the cache costs twice as much on Fable: $10 versus $5 per million for the 5-minute cache.

Before sending a long document to Haiku 5.5, count the tokens of the whole prompt, cache included.

A split rule, with the numbers

This is our rule. It starts from the official guide and the price table, and for everyday code it departs from the guide on cost:

  1. Reading, searching, summarizing and subagents: Haiku 5.5, which the guide lists for "The lowest latency and price", with prompts under 100,000 tokens. If it can wait, in batches.
  2. Everyday code: Anthropic's recommendation is Opus 5.5: "For most coding and knowledge tasks, we recommend that users start with Claude Opus 5.5, our strongest daily driver". Ours is Sonnet 5.5, the row for "Speed and capability for everyday coding, agent, and enterprise workloads". That's an editorial call on cost, not the guide's: Sonnet costs half as much. Use its default effort, which is high on the API and medium in Claude Code, and move to Opus 5.5 when tests or review show Sonnet isn't enough. When you move on the API, set the effort: Opus starts at medium, one level below Sonnet's high.
  3. Hard decisions, like architecture or a long debugging session: Opus 5.5 at high, then xhigh if it falls short. If it still falls short there, try Fable 5.2 at high before Opus at max: that's the announcement's comparison above, from early testing. The guide also sends you to Fable when Opus at xhigh or max falls short: "If your evals at xhigh or max effort still fall short on demanding reasoning or long-horizon agentic work, move to Claude Fable 5.2".
  4. Measure per finished task, and try a different effort before a different model.

The calculation below puts hard decisions on Fable, the expensive case of the rule: on Opus they would cost $2.91 a week instead of $5.79. It's arithmetic with Decimal on the official prices, with no API calls:

from decimal import Decimal as D

PRICES = {  # model: (input, cache hit, output), USD per 1M tokens
    "haiku-5.5": (D("0.10"), D("0.01"), D("0.50")),            # prompts up to 100,000 tokens
    "haiku-5.5 >100k": (D("0.50"), D("0.05"), D("2.50")),      # prompts over 100,000 tokens
    "sonnet-5.5": (D("2"), D("0.10"), D("10")),
    "opus-5.5": (D("4"), D("0.20"), D("20")),
    "fable-5.2": (D("8"), D("0.20"), D("40")),
}
MILLION = D(1_000_000)
# Names a caller may pass. "haiku-5.5 >100k" is an internal price row, chosen only by price_key.
PUBLIC_MODELS = ("haiku-5.5", "sonnet-5.5", "opus-5.5", "fable-5.2")


def price_key(model: str, prompt_tokens: int) -> str:
    if model == "haiku-5.5" and prompt_tokens > 100_000:
        return "haiku-5.5 >100k"
    return model


def task_cost(model: str, fresh_in: int, cached_in: int, out: int) -> D:
    """One request: fresh input, cached input (cache hits) and output tokens."""
    if model not in PUBLIC_MODELS:
        raise ValueError(f"unknown model {model!r}; use one of {', '.join(PUBLIC_MODELS)}")
    for count in (fresh_in, cached_in, out):
        if type(count) is not int:  # rejects float, str, Decimal and bool (bool is a subclass of int)
            raise TypeError(f"token counts must be int, got {type(count).__name__}")
    if min(fresh_in, cached_in, out) < 0:
        raise ValueError("token counts must not be negative")
    price_in, price_hit, price_out = PRICES[price_key(model, fresh_in + cached_in)]
    return (fresh_in * price_in + cached_in * price_hit + out * price_out) / MILLION

task_cost only accepts the four names in PUBLIC_MODELS. The internal key haiku-5.5 >100k is picked by price_key from the prompt length, never by the caller. Amounts must be integers, and a bool doesn't count as one even though Python treats it as such. This is how it answers wrong or edge-case inputs:

C1 zero tokens: 0.00
C2 negative output: ValueError: token counts must not be negative
C3 unknown model: ValueError: unknown model 'gpt-x'; use one of haiku-5.5, sonnet-5.5, opus-5.5, fable-5.2
C4 haiku exactly 100,000 prompt tokens: 0.01
C5 haiku 100,001 prompt tokens: 0.0500005
C6 haiku 60,000 fresh + 40,001 cached crosses the line: 0.03200005
C7 one million output tokens on fable-5.2: 40.00
C8 float token count: TypeError: token counts must be int, got float
C9 opus 900,000 input (no long-context step): 3.60
C10 internal price row passed as a model: ValueError: unknown model 'haiku-5.5 >100k'; use one of haiku-5.5, sonnet-5.5, opus-5.5, fable-5.2
C11 bool as a token count: TypeError: token counts must be int, got bool
C12 model name in another case: ValueError: unknown model 'Opus-5.5'; use one of haiku-5.5, sonnet-5.5, opus-5.5, fable-5.2

The sizes are made up: 200 reads a week with 30,000 input tokens and 1,500 output; 60 coding tasks with 20,000 fresh tokens, 40,000 cached and 6,000 output; and 4 hard decisions with 80,000 fresh, 40,000 cached and 20,000 output. Every model gets the same tokens; in practice output changes with model and effort, and input can change with the tokenizer. Under those assumptions:

everything on fable-5.2: $90.27/week (read/search $60.00, daily code $24.48, hard decision $5.79)
everything on opus-5.5: $45.39/week (read/search $30.00, daily code $12.48, hard decision $2.91)
split: haiku / sonnet / fable: $12.78/week (read/search $0.75, daily code $6.24, hard decision $5.79)
split: haiku / opus / fable: $19.02/week (read/search $0.75, daily code $12.48, hard decision $5.79)

Batch API halves input and output (pricing page); split haiku/sonnet/fable with read/search in batch:
  $12.41/week instead of $12.78

Of the $90.27 for everything on Fable, $60 is reading: two thirds of the spend. Moving only the reading to Haiku saves more than any other decision. The 4 hard decisions on Fable ($5.79) weigh less than daily code on Opus ($12.48), even though each costs about seven times as much: there are few of them. And batches, which the pricing page describes as "a 50 percent discount on both input and output tokens", barely move this split: from $12.78 to $12.41, because reading is already cheap on Haiku.

Build your own table with your own tasks before you settle on a split. Swap the example's sizes for yours and the order can change: what weighs on the bill is how often each task repeats, times its tokens and the price of the model that does it.

Faster isn't cheaper

Fable 5.2's fast mode, the announcement says, "speeds up token generation by up to 2.5 times" and costs $16 input and $80 output per million, exactly double. It speeds up output, not the wait for the first token: "Speed benefits are focused on output tokens per second (OTPS), not time to first token (TTFT)", per the fast mode page. It doesn't share the cache with normal mode either: "Requests at different speeds do not share cached prefixes". At the other end are batches: half price, "most batches completing within 1 hour", but "Batches might take up to 24 hours for processing". Use them for what can wait a day.

What this calculation doesn't cover

  • Your real savings. The calculation is a hypothetical scenario, not a prediction of what you'll save in Claude Code. There, spend moves with tool calls, iterations, subagents, reasoning and token use that varies from one run to the next.
  • Cache writes. They cost "1.25x base input price" for the 5-minute one and "2x base input price" for the 1-hour one; the example only counts hits.
  • Thinking tokens. They're billed as output, per the thinking page, and the example treats them as part of the assumed output.
  • Other rates. Fast mode, the 1.1× surcharge for inference_geo: "us", and Bedrock and Vertex pricing, which are separate.

Frequently asked questions

Does switching models lose the cache?

We couldn't confirm it: the caching page we read only covers isolation by organization and workspace. Measure cache hits before and after the switch.

What was calculated and what wasn't

Prices read on 2026-11-10 from the official page. The calculation is arithmetic with Decimal; no model or API was called, and we didn't measure the real tokens of any task.

Conclusion

Picking a model per task saves most on the task that costs most; in the example, reading.

This week, write down how many requests of each kind your team makes and with which model. Move to Haiku 5.5 the reads that stay under 100,000 tokens, leave the rest where it is and compare the bill.

References

Subscribe

Get the latest posts delivered right to your inbox.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments

No comments yet. Be the first to share your thoughts!

Subscribed!

Registered! A confirmation link has been sent to your email address. If you don't see it, please check your spam folder.

Error

An error occurred. Please try again.

Full code