Engineering

Claude Fable 5: Coding Cost & Benchmarks

Fable vs Sonnet vs Opus for AI coding: SWE-bench scores, real API costs, and when founders should use each model. Includes security and automation guidance.

M

Manesh Pai

Co Founder & Senior Consultant

·0 min read·Engineering
Image showing Anthropic Claude Fable
Image from Pexels

Claude Fable 5 launched on June 9, 2026, as the first Mythos-class model available to the public. It costs twice as much as Opus 4.8, so the obvious question is whether the premium is worth it. The honest answer is that it depends on the task. This post lays out the real costs, the benchmarks, and a clear decision framework for founders and enterprise CTOs choosing between Fable, Sonnet, Opus, and the competition.

Quick take:

  • Fable 5 runs the same engine as the restricted Claude Mythos 5, but safety classifiers automatically route cyber and bio queries to Opus 4.8.
  • Sonnet 4.6 remains the workhorse for most coding at $3/$15 per million tokens (79.6% on SWE-bench Verified), roughly a third of Fable's price.
  • Reach for Fable only when Sonnet and Opus both fall short on hard, long-horizon work.
  • In one head-to-head test, Fable used 34% more session credits than Opus to build the same ping-pong game.
  • DeepSeek is around 10x cheaper, but National Institute of Standards and Technology, an US Government body, found it 12x more susceptible to agent hijacking than GPT-5 and Opus 4.

What Is Claude Fable 5?

Fable 5 is Anthropic's first generally available Mythos-class model. It shares the same underlying weights as Claude Mythos 5, with one key difference: it adds AI-powered classifiers that block misuse.

When those classifiers detect cybersecurity, biology, chemistry, or model-distillation requests, the response comes from Claude Opus 4.8 instead. Anthropic says these fallbacks happen in fewer than 5% of sessions. When a fallback triggers, you still get a capable answer from Opus 4.8 rather than a flat refusal.

Fable is built for long-horizon work:

  • Multi-day autonomous coding in Claude Code or Managed Agents
  • Large migrations and complex implementations
  • Knowledge work that needs self-verification across stages

Pricing: $10 per million input tokens, $50 per million output tokens, exactly 2x Opus 4.8.

For unrestricted Mythos-class security capability, Anthropic keeps Claude Mythos 5 behind Project Glasswing, a vetted partner program with AWS, Apple, Microsoft, Google, and others.

Benchmarks comparing Claude models, for AI Coding

Following table compares the coding capabilities of the Claude models

ModelSWE-bench VerifiedSWE-bench Pro (Anthropic eval)Terminal-Bench 2.1Input / Output ($/MTok)
Fable 580.0% (Anthropic)88% (Anthropic)$10 / $50
Opus 4.8~80.8%69.2% (Anthropic)$5 / $25
Sonnet 4.679.6% (Digital Applied)not evaluated59.1% (Digital Applied)$3 / $15

Cost per coding workload

For 1M input + 200K output tokens:

ModelToken costvs Sonnet
Sonnet 4.6$6baseline
Opus 4.8$10+67%
Fable 5$20+233%

For the same token volume, Fable costs roughly 3.3x Sonnet and 2x Opus.

Real session cost test (Fable vs Opus)

DigitBin ran an identical ping-pong game build on both Fable 5 and Opus 4.8:

  • Fable 5: 37,927 tokens, costing 109,035 session credits
  • Opus 4.8: 38,587 tokens, costing 81,225 session credits

The token counts were nearly identical, yet Fable's session cost ran 34% higher.

Which model should you choose for Coding?

Sonnet 4.6 is the right choice when:

  • You are doing daily development work such as bug fixes, scaffolding, PR review, tests, and docs.
  • You run high-volume API pipelines like CI bots or code generation at scale.
  • Budget matters and 79.6% on SWE-bench Verified is good enough.
  • You need predictable behavior without the cyber classifier fallbacks that Fable introduces.

Opus 4.8 is the right choice when:

  • Sonnet cannot finish a multi-file refactor in one pass.
  • An agent step needs stronger reasoning than the Sonnet tier provides.
  • You want a middle ground before paying the Fable premium.

Fable 5 is the right choice when:

  • You are running multi-day migrations, one-shot full apps, or long autonomous sessions.
  • Sonnet or Opus need two or more retries, in which case Fable's one-shot result may cost less end-to-end.
  • Future varients would bring in more ways to check vulnerabilities within code

Enterprise use case with early access testing

During early testing, Stripe reported that Fable 5 compressed months of engineering into days. In a 50-million-line Ruby codebase, the model performed a codebase-wide migration in a day that would otherwise have taken a whole team over two months by hand.

If you see ROI in getting software engineering done in days instead of a team running for months, Fable brings efficiency and faster results. This is Fable and Mythos-class territory, not the kind of work you would hand to Sonnet by default. At Stripe's scale, the frontier model cost is justified because delivery speed is the bottleneck.

Three-tier routing for enterprises

What we see as ideal use case for Enterprise teams on Claude models is as below:

ModelShare of tasksTypical work
Sonnet 4.680%Boilerplate, tests, docs, routine PRs
Opus 4.815%Complex refactors Sonnet fails
Fable 55%Migrations, multi-day autonomous sessions

Route work by task difficulty rather than by team size or a blanket "use the best model for everything" policy.

Can You Use Fable 5 for Security Vulnerability Scanning?

The short answer is NOT PRESENTLY, at least not for offensive security work, because the classifiers block it. But this will change in next few days, as higher varient will be released.

Fable 5's classifiers detect offensive cyber queries and route them to Opus 4.8. When Anthropic tested 30 public jailbreak techniques, not a single harmful single-turn cyber request got through on Fable 5.

Early tester feedback suggests the net is wider than Anthropic's "under 5% fallback" claim implies. As per article in cso online, routine defensive tasks such as incident response, detection, and basic forensics also got routed to Opus 4.8. If you run security workflows on Fable, expect occasional fallbacks you did not plan for.

For defensive security work

TaskBest model
Offensive vuln discovery, exploit devMythos 5 via Project Glasswing only
Defensive code review in CISonnet 4.6 — predictable, no Fable fallbacks
Security-sensitive refactorsOpus 4.8
General coding with light security checksSonnet or Opus — not Fable unless you accept Opus fallback

How Much Does Fable 5 Cost Compared to Sonnet and Opus?

API pricing across providers

ModelInput ($/MTok)Output ($/MTok)SWE-bench VerifiedBest for
Claude Fable 5$10$50Long-horizon coding, multi-day tasks
Claude Opus 4.8$5$25~80.8%Complex coding when Sonnet fails
Claude Sonnet 4.6$3$1579.6%Default for most AI coding
GPT-5.5$5$30not publishedCross-provider alternative
Gemini 3.1 Pro~$2.50~$1580.6% (MorphLLM)Google Cloud users
DeepSeek V3$0.27$1.10~73%Budget coding — security trade-offs

Sources: Anthropic, AI Magicx pricing comparison, MorphLLM benchmarks.

Cost-to-quality for coding

  • Sonnet 4.6 delivers 79.6% on SWE-bench Verified at roughly $6 per workload, making it the best value in the Claude family.
  • Opus 4.8 offers only marginal gains over Sonnet at 67% higher cost, so it earns its place only when Sonnet falls short.
  • Fable 5 is justified when the harder SWE-bench Pro and Terminal-Bench scores actually matter, not for routine pull requests.

Is Fable 5 Worth 3x the Cost of Sonnet?

Compared with Sonnet, Fable only makes sense when Sonnet fails on the task. Measure first, and do not skip straight to Fable.

Compared with Opus, when Opus needs two or more retry attempts, Fable's one-shot result may cost less end-to-end despite the 2x token price.

Compared with DeepSeek, the DeepSeek V3 API is around 10x cheaper, but NIST's CAISI evaluation found DeepSeek agents 12x more likely to follow malicious hijacking instructions than GPT-5 and Opus 4 (NIST). For enterprise compliance and security-critical code, that trade-off is usually disqualifying.

When Should You Use Fable 5 vs Sonnet vs Cheaper Alternatives?

Which AI Model Should Founders Choose for Coding?

Start with Sonnet 4.6. It is the sensible default for AI coding: pull requests, tests, scaffolding, docs, and review bots. It shines in high-volume pipelines where cost dominates, and its SWE-bench Verified gap to Opus 4.8 is only about 1.2 points, which rarely justifies a 67% cost jump for routine work. It is also the natural fit for the MVP phase. Pair it with our guide on how to migrate your MVP to production when you outgrow your prototype stack.

Move to Opus 4.8 when Sonnet starts failing on specific task types (track which ones), when multi-file refactors need more reasoning, or when an agent step stalls on work that is not quite multi-day autonomous.

Upgrade to Fable 5 only when both Sonnet and Opus hit a ceiling, when you are running multi-day migrations, one-shot full apps, or Terminal-Bench-class autonomy, and when your budget can absorb roughly a 3x premium over Sonnet in exchange for a higher hard-task completion rate.

Consider Gemini or DeepSeek for budget-constrained internal tools, non-security-critical and non-compliance workloads, and high-volume API usage where cost matters more than the last few points of quality. Cursor has an excellent and cheap model called Composer, which costs much less than Gemini or Claude models.

Avoid the cheapest models for enterprise compliance workloads, security-critical applications, and regulated industries. Review our notes on HIPAA considerations for AI tools before routing any PHI through a model.

Practical Recommendations for founders

  1. Start with Sonnet 4.6 for MVP coding, since it is the cheapest Claude tier with a strong SWE-bench Verified score.
  2. Move to Opus 4.8 when Sonnet fails, and log which task types it struggles with.
  3. Upgrade to Fable only when both Sonnet and Opus fall short. Our guide on MVP to production migration covers when architecture choices start to matter.
  4. Do not default to Fable just because it is the newest model. Measure your failed-task rate first.
  5. Watch session credits closely, because Fable runs about 34% higher than Opus on identical builds.

Conclusion

Sonnet 4.6 is the default for most AI coding and offers the best cost-to-quality ratio in the Claude family. Opus 4.8 is the middle tier you reach for when Sonnet stalls, and Fable 5 is the frontier tier reserved for long-horizon, genuinely hard work.

Fable costs roughly 3.3x Sonnet and 2x Opus, so the premium is only justified when the lower tiers cannot finish the task. For security work, use Mythos 5 for vulnerability discovery and Sonnet for defensive code review rather than Fable, whose classifiers will route around you when you least expect it.

The decision path is simple: Sonnet first, Opus second, Fable last, and measure before every upgrade.


Need help picking the right model mix for your team? Aidyne Solutions designs cost-optimized AI coding stacks with governance, audit trails, and compliance. to map Sonnet, Opus, and Fable to your actual workloads.

AnthropicClaude Fable 5AI CodingSonnetOpusAI SecurityCost ComparisonEnterprise AI

Work with us

Ready to scale beyond your MVP?

We partner with founders to build production-grade architectures. Let's talk about your project.