Skip to content
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 current Claude coding lineup, led by the just-released Opus 5, every price and score verified August 29, 2026.

Quick answer

Default to Opus 5 for serious work, released July 24, 2026 at $5 in / $25 out per MTok with, per Anthropic, near-Fable-5 intelligence. 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 August 29, 2026.
Data verified
August 29, 2026
Serious default
Opus 5, $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 August 29, 2026, Anthropic's current coding lineup runs from the Mythos-class Fable 5 down through the new Opus 5, Sonnet 5, and Haiku 4.5. Opus 5 shipped July 24, 2026 and supersedes Opus 4.8 at the same price, we list 4.8 below for teams that pin it, but new work should default to Opus 5. If a ranking page mentions Sonnet 4.6 as current, it is stale, it 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 5flagship$5 in / $25 out per MTok (Fast mode ~2.5x speed at twice the base price)Not publishedJuly 24, 2026Frontier-Bench v0.1: Surpasses all models
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 August 29, 2026.

Claude Opus 5

flagship

Anthropic's new value flagship: near-Fable-5 intelligence at the same $5/$25 price as Opus 4.8, with adjustable effort.

$5 in / $25 out per MTok
Fast mode ~2.5x speed at twice the base price · Context not published · July 24, 2026
Strengths
  • · Approaches Fable 5's intelligence at a fraction of the cost per task (Anthropic)
  • · Same $5/$25 pricing as Opus 4.8 with greatly improved performance
  • · Adjustable effort: dial up intelligence or conserve tokens for cheaper, faster runs
Trade-offs
  • · Anthropic has not published a context-window figure
  • · Still behind Mythos 5 on cybersecurity-exploitation tasks
  • · Fable 5 stays marginally ahead at the very top on some benchmarks
Best for
  • · Everyday complex agentic coding, now the default Opus
  • · Cost-sensitive work that still wants near-frontier quality
  • · Long autonomous runs with effort tuned to the task

Benchmarks: Frontier-Bench v0.1 Surpasses all models (Anthropic launch materials) · CursorBench 3.2 Within 0.5% of Fable 5 (Anthropic launch materials) · ARC-AGI 3 3x the next-best model (Anthropic launch materials) · OSWorld 2.0 Beats Fable 5's best (Anthropic launch materials), verified August 29, 2026.

Claude Opus 4.8

flagship

The previous flagship workhorse for complex agentic coding, superseded by Opus 5 at the same $5/$25 price.

$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
  • · Superseded by Opus 5, which Anthropic reports beats it at the same price
  • · 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 August 29, 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 August 29, 2026. Whether those points are worth double the price depends entirely on the task, our full breakdown is on the Claude Fable 5 page.

Your AI workspace for shipping software.

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 5

Feature implementation on real codebases, complex agentic sessions, review passes on big diffs. The new default: near-Fable-5 intelligence at half Fable's price, with adjustable effort to trade intelligence against token spend.

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 feature 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 5$5 in / $25 out per MTok$18.00 (Fast mode ~2.5x speed at twice the base price)
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 5, 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 feature in flight should burn tokens at the same tier. Assign Fable 5 to the hard architecture feature, 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 feature 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.

QUESTIONS

FAQ

Which Claude model is best for coding?
As of July 24, 2026, Claude Opus 5 is the best default for serious coding work: Anthropic reports near-Fable-5 intelligence at $5 in / $25 out per MTok, the same price the older Opus 4.8 charged. 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 August 29, 2026.
Is Opus worth it over Sonnet?
For complex, multi-file agentic work, yes: Opus 5 ($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.
Should I still use Opus 4.8?
For new work, no, Opus 5 replaces it at the same $5 in / $25 out per MTok price with, per Anthropic, more than double the Frontier-Bench v0.1 score. Opus 4.8 remains available if you pin claude-opus-4-8 for byte-for-byte reproducibility, but you would be paying the same price for the older model.
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 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 features.
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.
CONTINUE

Keep reading

START BUILDING

Right model, right feature, one board.

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

MACOS 12+ · BRING YOUR OWN CLAUDE CODE OR CODEX · YOUR CODE STAYS LOCAL