Models

Best Claude Model for Coding: Fable 5 vs Opus vs Sonnet vs Haiku

Most ranking pages for this query still mix model generations that no longer exist. This one covers the four current Claude models, every price and score verified July 18, 2026.

By Kylian Migot · Updated July 2026 · 8 min read

Quick answer

Default to Opus 4.8 for serious work, it is Anthropic's own recommended starting point for complex agentic coding. Use Sonnet 5 for routine tasks and cost (Intro pricing $2/$10 through Aug 31, 2026), Fable 5 when the task is genuinely hard or long-running, and Haiku 4.5 for subagents. All data on this page verified July 18, 2026.
Data verified
July 18, 2026
Serious default
Opus 4.8, $5 in / $25 out per MTok
Routine + cost
Sonnet 5, Intro pricing $2/$10 through Aug 31, 2026
Hardest work / subagents
Fable 5 / Haiku 4.5
01

The current Claude lineup

As of July 18, 2026, Anthropic's coding lineup is four models across four tiers. If a ranking page you are reading mentions any other Claude model as current, it is stale, Sonnet 4.6, for example, was replaced by Sonnet 5 on June 30, 2026.

ModelTierPriceContextReleasedHeadline benchmark
Claude Fable 5frontier$10 in / $50 out per MTok1M tokens (128k output)June 9, 2026SWE-bench Verified: 95.0%
Claude Opus 4.8flagship$5 in / $25 out per MTok (Fast mode $10/$50)1M tokensMay 28, 2026SWE-bench Verified: 88.6%
Claude Sonnet 5workhorse$3 in / $15 out per MTok (Intro pricing $2/$10 through Aug 31, 2026)1M tokens (default)June 30, 2026
Claude Haiku 4.5fast$1 in / $5 out per MTok200k tokensOctober 2025

Benchmark scores above come from the sources named in each cell's benchmark, primarily the swebench.com leaderboard, re-checked on the verification date. Anthropic has not yet published comparable benchmark suites for Sonnet 5 and Haiku 4.5, so we show none rather than inventing them.

02

Model by model: strengths, trade-offs, best for

Claude Fable 5

frontier

Anthropic's most capable generally available model, the first of the new Mythos-class tier above Opus.

$10 in / $50 out per MTok
1M tokens (128k output) · June 9, 2026
Strengths
  • · Best published SWE-bench Verified and SWE-bench Pro scores of any generally available model
  • · Adaptive thinking always on, plans long multi-step work without babysitting
  • · 1M-token context holds a large repo plus specs in a single session
Trade-offs
  • · 2x Opus 4.8's price per token, overkill for routine edits
  • · Not Claude Code's default, you must select it explicitly
  • · Unavailable under zero-data-retention agreements
Best for
  • · Hard, cross-cutting refactors and architecture work
  • · Long autonomous runs where re-prompting is expensive
  • · Spec drafting and review on large codebases

Benchmarks: SWE-bench Verified 95.0% (swebench.com leaderboard) · SWE-bench Pro 80.3% (Anthropic / Scale leaderboard), verified July 18, 2026.

Claude Opus 4.8

flagship

The flagship workhorse for complex agentic coding, Anthropic's own recommended starting point.

$5 in / $25 out per MTok
Fast mode $10/$50 · 1M tokens · May 28, 2026
Strengths
  • · Strongest price-to-capability ratio for hard coding tasks
  • · Effort defaults to high, thorough on multi-file changes
  • · Half Fable 5's price with most of the capability
Trade-offs
  • · Fable 5 measurably ahead on the hardest benchmarks
  • · Slower than Sonnet on quick iterations
Best for
  • · Day-to-day feature implementation on real codebases
  • · Complex agentic coding sessions
  • · Code review passes on big diffs

Benchmarks: SWE-bench Verified 88.6% (swebench.com leaderboard) · SWE-bench Pro 69.2% (Scale leaderboard), verified July 18, 2026.

Claude Sonnet 5

workhorse

The new mid-tier default: 1M context standard, new tokenizer, replaces Sonnet 4.6.

$3 in / $15 out per MTok
Intro pricing $2/$10 through Aug 31, 2026 · 1M tokens (default) · June 30, 2026
Strengths
  • · 1M context at mid-tier pricing
  • · Fast enough for tight edit-test loops
  • · Intro pricing makes it the cheapest serious coding model right now
Trade-offs
  • · Noticeably behind Opus/Fable on hard multi-step reasoning
  • · New tokenizer changes token-count budgeting vs Sonnet 4.6
Best for
  • · Routine feature work, tests, and refactors
  • · High-volume parallel agent fleets where cost dominates
  • · Fast iteration loops with human review

Claude Haiku 4.5

fast

The fast/cheap tier: sub-agents, classification, quick mechanical edits.

$1 in / $5 out per MTok
200k tokens · October 2025
Strengths
  • · Cheapest Claude tier by far
  • · Low latency, good for sub-agent fan-outs
Trade-offs
  • · Oldest model in the current lineup (Oct 2025)
  • · 200k context, smallest window in the family
  • · Not built for complex autonomous coding
Best for
  • · Cheap sub-agents inside larger workflows
  • · Lint-fix style mechanical changes
  • · Summarization and triage

The frontier gap is real but narrow: per the swebench.com leaderboard, Fable 5 scores 95.0% on SWE-bench Verified against 88.6% for Opus 4.8, verified July 18, 2026. Whether those points are worth double the price depends entirely on the task, our full breakdown is on the Claude Fable 5 page.

Ship your first agent today

Download AIDEN free and point it at your existing Claude Code or Codex setup. No credit card, running in minutes.

Download AIDEN free

Free to start · macOS 12+ · No credit card required

03

Decision guide: task shape → model

Genuinely hard or long-running → Fable 5

Cross-cutting refactors, architecture work, autonomous runs measured in hours. The 1M-token context holds a large repo plus specs, and adaptive thinking keeps long plans on track without babysitting.

Serious everyday work → Opus 4.8

Feature implementation on real codebases, complex agentic sessions, review passes on big diffs. Anthropic's recommended starting point, and the best price-to-capability ratio in the lineup.

Routine tasks and volume → Sonnet 5

Features, tests, and refactors with human review in the loop, or parallel fleets where cost dominates. 1M context at mid-tier pricing, currently discounted (Intro pricing $2/$10 through Aug 31, 2026).

Subagents and mechanical edits → Haiku 4.5

Fan-out subagents, triage, summarization, lint-fix-grade changes. The cheapest tier by far, with the latency to match.

The cost math makes the tiers concrete. Take a 2M-token agentic session, 1.6M tokens in, 0.4M out, typical for a meaty story with a few test iterations, at list prices from Anthropic's published per-MTok rates:

ModelList price2M-token session (1.6M in / 0.4M out)
Claude Fable 5$10 in / $50 out per MTok$36.00
Claude Opus 4.8$5 in / $25 out per MTok$18.00 (Fast mode $10/$50)
Claude Sonnet 5$3 in / $15 out per MTok$10.80 (Intro pricing $2/$10 through Aug 31, 2026)
Claude Haiku 4.5$1 in / $5 out per MTok$3.60
04

Using them in Claude Code

Inside Claude Code, you switch models with the /model command, mid-session if you like, the new model inherits the conversation context:

/model opus      # Opus 4.8, recommended default for complex agentic coding
/model sonnet    # Sonnet 5, routine work and cost control
/model haiku     # Haiku 4.5, subagents and quick edits
/model fable     # Fable 5, requires Claude Code v2.1.170+
/model opusplan  # Opus for plan mode, Sonnet for execution
/model best      # highest tier your org has access to (Fable 5 if available)

Three things about Fable 5 access worth knowing before you rely on it: it requires Claude Code v2.1.170 or later, it is not the default, you must select it explicitly, and it is unavailable under zero-data-retention agreements, so enterprise teams on ZDR contracts are capped at Opus 4.8 for now. The opusplan alias is the pragmatic middle path: flagship reasoning while you plan, workhorse pricing while the agent executes.

05

Mixing models across parallel agents

The per-task choice gets more interesting when you run agents in parallel: there is no reason every story in flight should burn tokens at the same tier. Assign Fable 5 to the hard architecture story, Sonnet 5 to the three routine ones, and let Haiku handle the subagent fan-outs inside each.

That is the workflow AIDEN, our macOS desktop app, is built around: it orchestrates your existing Claude Code CLI (and Codex, if you run both) on a kanban board, each story with an approved spec, its own git worktree, and its own model assignment, local-first, on the keys you already pay for, free for one project. The manual version of this workflow, and where it breaks down, is covered in Claude Code orchestration; the cross-vendor picture lives in the AI models for coding hub.

FAQ

Which Claude model is best for coding?
Claude Opus 4.8 is the best default for serious coding work, it is Anthropic's own recommended starting point for complex agentic coding at $5 in / $25 out per MTok. Use Sonnet 5 for routine tasks and cost control (Intro pricing $2/$10 through Aug 31, 2026), Fable 5 ($10 in / $50 out per MTok) when the task is genuinely hard or long-running, and Haiku 4.5 ($1 in / $5 out per MTok) for subagents. Verified July 18, 2026.
Is Opus worth it over Sonnet?
For complex, multi-file agentic work, yes: Opus 4.8 ($5 in / $25 out per MTok) is markedly more thorough on hard multi-step reasoning than Sonnet 5 (list $3 in / $15 out per MTok). For routine features, tests, and refactors with human review in the loop, Sonnet 5 delivers most of what you need, and its intro pricing (Intro pricing $2/$10 through Aug 31, 2026) makes it the cheapest serious coding model right now.
How do I switch models in Claude Code?
Use the /model command inside a session, or start with the model flag. The aliases are: fable, opus, sonnet, haiku, plus opusplan (Opus for planning, Sonnet for execution) and best (the highest tier your org has access to, Fable 5 if available). You can switch mid-session; the new model picks up the existing conversation context.
What is opusplan in Claude Code?
opusplan is a hybrid alias: Claude Code uses Opus 4.8 while you are in plan mode, then drops to Sonnet 5 for execution. You pay flagship prices for the thinking-heavy planning phase and workhorse prices for the mechanical implementation phase, a sensible default for teams watching spend.
Is Claude Fable 5 available in Claude Code?
Yes, via /model fable, but with caveats: it requires Claude Code v2.1.170 or later, it is not the default (you must select it explicitly), and it is unavailable under zero-data-retention agreements. At $10 in / $50 out per MTok it is twice Opus 4.8's price, so most teams keep Opus as the daily driver and switch to Fable 5 for the hard stories.
What happened to Claude Sonnet 4.6?
It was replaced by Sonnet 5 on June 30, 2026. Sonnet 5 makes the 1M-token context window standard and ships a new tokenizer, which changes token-count budgeting compared to Sonnet 4.6, worth rechecking any cost estimates you had tuned. It launched with intro pricing: Intro pricing $2/$10 through Aug 31, 2026.

Keep reading

Right model, right story, one board.

AIDEN runs your Claude Code CLI as parallel agents, Fable 5 on the hard story, Sonnet 5 on the routine ones. Free for one project.

macOS 12+ · Bring your own Claude Code or Codex · Your code stays local