Claude Opus 4.8 vs Sonnet 4.6 vs Haiku 4.5: A 5x Price Gap That Buys 15.3 SWE-bench Points

Anthropic’s pricing page lists Claude Opus 4.8 at $5/$25, Sonnet 4.6 at $3/$15 and Haiku 4.5 at $1/$5 per million input/output tokens, exactly 5:3:1 on both sides, so the 5x between Opus and Haiku is fixed. On the benchgap SWE-bench Verified leaderboard Opus 4.8 scores 88.6% and Sonnet 4.6 scores 79.6%; llmbenchmark.ai lists Haiku 4.5 at 73.3%. The 5x therefore buys 15.3 points. Make Sonnet 4.6 the default and pay for Opus 4.8 only when a failed task is expensive; Opus 4.8 and Sonnet 4.6 now both cost more than their successors.

Opus 4.8’s API ID is claude-opus-4-8. The similar claude-opus-4-6 is Opus 4.6, the model in our Opus 4.6 price comparison against GPT-5.6 Sol and Qwen3.8 Max.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Opus 4.8, Sonnet 4.6 and Haiku 4.5 on one rate card

ModelAPI IDInput/output per 1M tokensPrice vs HaikuSWE-bench Verified
Opus 4.8claude-opus-4-8$5/$255.0x88.6%
Sonnet 4.6claude-sonnet-4-6$3/$153.0x79.6%
Haiku 4.5claude-haiku-4-5-20251001$1/$51.0x73.3%

Opus is 1.67x Sonnet and Sonnet is 3.0x Haiku. The 80.8% that some pages still show for Opus 4.8 is the Opus 4.6 score, which the old version of this page attached to the wrong model; the headline of our Claude Code vs GitHub Copilot comparison also cites 80.8%, there for a tool rather than for these three models.

A month at 10M, 100M and 1B input tokens: caching and Batch leave the ratio alone

Monthly volumeOpus 4.8Sonnet 4.6Haiku 4.5
10M in / 1M out$75$45$15
100M in / 10M out$750$450$150
1B in / 100M out$7,500$4,500$1,500
1B in / 100M out, 90% cache reads, 10% writes$3,575$2,145$715

Sonnet costs 40% less than Opus and Haiku 80% less at every volume. Per the prompt caching docs, cache reads bill at 0.1x the input price and 5-minute writes at 1.25x, so 90% reads and 10% writes cost 0.9 × 0.1 + 0.1 × 1.25 = 0.215 of the input price. The old page’s $2,250 for Opus cut the whole bill by 70%, output included. Every model gets the same multipliers, so the cached bills are still 5:3:1, and the Batch API’s 50% discount, per the pricing page, shifts the dollars without moving the ratio.

Price divided by pass rate: 1.36, 3.77 and 5.64 per resolved task

Dividing price by SWE-bench pass rate, in units of one Haiku 4.5 attempt, gives Haiku 1 ÷ 0.733 = 1.36, Sonnet 3 ÷ 0.796 = 3.77 and Opus 5 ÷ 0.886 = 5.64. Because Opus passes more often, its 5x list price is 4.14x per resolved task. These are our calculations from the list prices and scores above, assuming equal tokens per attempt.

Opus matches Sonnet’s cost per resolved task only if it uses 66.8% of Sonnet’s tokens, and matches Haiku’s only at 24.2%. The extra solved tasks are priced unevenly: Opus costs 2 more units than Sonnet for 0.090 more solved tasks, or 22.2 units each; Sonnet costs 2 more than Haiku for 0.063 more, or 31.7 each. Where an automatic pass/fail check exists, run Haiku first and send its 26.7% failures to Opus: 1 + 0.267 × 5 = 2.335 units per attempt, 2.64 per resolved task against 5.64 for Opus alone, 53% less. That assumes failures are nested and the check is free.

Without such a check, Sonnet 4.6 is the default, since 3.77 beats 5.64 unless Opus uses under 66.8% of the tokens. Opus 4.8 pays where an extra solved task is worth more than 22.2 Haiku attempts, which is 4.4 Opus attempts.

Prompt caching treats the three models differently

The prompt caching page says that on Opus 4.8, among other models, you can add a system instruction partway through a conversation without invalidating the system or message caches. Sonnet 4.6 and Haiku 4.5 are not in that list. It also says thinking blocks are preserved by default, keeping the cache valid, on Opus 4.5 and later and Sonnet 4.6 and later; it names Haiku 5.5, not Haiku 4.5. A cache read costs $0.50 per million input tokens on Opus 4.8 and $0.10 on Haiku 4.5, while rewriting the prefix at the 5-minute price costs $6.25 and $1.25, so an agent that edits its system prompt gives the discount back.

Opus 4.8 and Sonnet 4.6 now cost more than Opus 5.5 and Sonnet 5.5

Per Anthropic’s pricing page, Opus 5.5 (September 22, 2026) costs $4/$20, 20% under Opus 4.8, and Sonnet 5.5 (September 28, 2026) costs $2/$10, 33% under Sonnet 4.6. On the 10M-input, 1M-output month that is $60 against $75 and $30 against $45. Staying put makes sense for a pinned pipeline whose evals were tuned to the 4.x models; any move needs a re-run of your own evals. Our Claude Fable 5 vs Opus 4.8 comparison covers how Opus 4.8 stands against Fable 5.

Checking the IDs, then routing by the rule

The Models API returns each model’s max_input_tokens, which replaces the old page’s context and output-limit rows. This script confirms the three IDs exist and prints that field.

import anthropic

IDS = {
    "opus": "claude-opus-4-8",
    "sonnet": "claude-sonnet-4-6",
    "haiku": "claude-haiku-4-5-20251001",
}

client = anthropic.Anthropic()
try:
    listed = {m.id: m for m in client.models.list()}
except anthropic.APIError as err:
    raise SystemExit(f"Models API call failed: {err}")

for tier, model_id in IDS.items():
    m = listed.get(model_id)
    print(tier, model_id, "missing" if m is None else getattr(m, "max_input_tokens", None))
MAX_ATTEMPTS = 2  # retry cap per call

def ask(model_id, prompt):
    for _ in range(MAX_ATTEMPTS):
        try:
            response = client.messages.create(
                model=model_id,
                max_tokens=1024,
                messages=[{"role": "user", "content": prompt}],
            )
            return response.content[0].text
        except (anthropic.RateLimitError, anthropic.APIConnectionError):
            continue
        except anthropic.APIStatusError as err:
            raise RuntimeError(f"{model_id} failed: {err}") from err
    raise RuntimeError(f"{model_id} still failing after {MAX_ATTEMPTS} attempts")

def solve(prompt, check=None, costly_failure=False):
    if costly_failure:
        return ask(IDS["opus"], prompt)
    if check is None:
        return ask(IDS["sonnet"], prompt)
    answer = ask(IDS["haiku"], prompt)
    return answer if check(answer) else ask(IDS["opus"], prompt)

def select_model(task_type: str, complexity: str) -> str:
    # task_type is only a label for logging; the tier follows complexity
    if complexity == "high":
        return "claude-opus-4-8"
    elif complexity == "medium":
        return "claude-sonnet-4-6"
    return "claude-haiku-4-5-20251001"

The router applies one rule: Haiku 4.5 with an Opus 4.8 fallback where an automatic check exists, Sonnet 4.6 where none does, and Opus 4.8 directly when a failure is costly. select_model is a complexity-based selector, kept as a quick lookup with the Opus 4.8 ID claude-opus-4-8; give its Haiku branch the same automatic check that solve uses.

Nadia Dubois

Nadia Dubois

AI, software and the business of tech

Nadia Dubois covers AI, software and the business of tech for Tech Insider: AI models and the products built on them, developer and productivity software, pricing, and the company decisions and regulation that shape the industry.

View all articles