Dev.to AI 🤖 Ai 👁 2 📖 6 min read

Claude Fable 5.2 vs Opus 5.5 for Coding: When to Use Each

Short answer: use Claude Opus 5.5 at medium effort as your everyday coding model, use Claude Fable 5.2 as a reviewer and for long, hard jobs, and set the effort level yourself on every run. In my tests that one setting e

Short answer: use Claude Opus 5.5 at medium effort as your everyday coding model, use Claude Fable 5.2 as a reviewer and for long, hard jobs, and set the effort level yourself on every run. In my tests that one setting explained most of the price gap between the two models.

This guide covers the settings to change, the commands I actually ran, what each run cost, and a when-to-use / when-not-to list for both models.

The one setting that matters: effort

Effort controls how much a model thinks before it answers. More effort means more thinking tokens, a longer wait and a higher price. The two models ship with different defaults in the API:

Fable 5.2 Opus 5.5
API model id claude-fable-5-2 claude-opus-5-5
Price per 1M tokens (input / output) $8 / $40 $4 / $20
Default effort in the API high medium
Context window 1M tokens 1M tokens
Max output 128K tokens 128K tokens

Per token, Fable costs exactly twice as much. Per task, it can cost far more, because at its default it thinks at high effort while Opus thinks at medium. If you compare the two without pinning effort, you are comparing two different amounts of thinking.

Setting 1: pass --effort explicitly in Claude Code

These are the exact launch commands from my coding test (a planted bug in a small Python cart repo, explained below):

# Fable 5.2 at its API default
claude --model claude-fable-5-2 --effort high --safe-mode

# Opus 5.5 at its API default
claude --model claude-opus-5-5 --effort medium --safe-mode

--safe-mode turns off CLAUDE.md, skills, plugins, hooks and MCP, so neither model got help from my own setup. For your daily work you would drop it.

For the one-shot game tests I used headless mode, one prompt and no tools:

claude -p "<game prompt>" \
  --model claude-fable-5-2 \
  --system-prompt "<bench system prompt>" \
  --tools "" --safe-mode --no-session-persistence \
  --output-format json \
  --effort medium

--output-format json returns token usage and an API-equivalent cost for every run, which is where all the cost numbers below come from. I ran everything on my Claude plan, so those figures are what the same tokens would cost on the API.

Setting 2: strip inherited effort from benchmark scripts

My first batch of numbers was wrong. I launched the benchmark from inside another agent session, and every child claude -p process inherited CLAUDE_EFFORT=medium from it. So "Fable at default" was really Fable at medium, and it looked cheap. I threw those runs out and re-ran with effort passed explicitly.

The fix in my Python bench script is one line before the subprocess call:

env = {k: v for k, v in os.environ.items() if k != "CLAUDE_EFFORT"}  # a parent session's effort must not leak in
d = json.loads(subprocess.run(cmd, cwd=tmp, env=env, capture_output=True,
                              text=True, timeout=1800, check=True).stdout)

If you benchmark models from a script, check what your child processes inherit before you trust a single number.

What the defaults cost: three one-shot games

Same prompt for both models, word for word, one shot, no follow-ups. All six builds rendered and ran with zero console errors.

Game Fable 5.2 (high) Opus 5.5 (medium)
Orbit Dodge $1.21, 30,045 output tokens $0.20, 10,232 output tokens
Stack Tower $1.29, 31,987 output tokens $0.17, 7,970 output tokens
Gravity Garden $2.32, 57,739 output tokens $0.26, 12,487 output tokens
Total $4.83 $0.63

At defaults Fable cost 7.7x more for 3.9x the output tokens. On Gravity Garden alone it spent 39,084 tokens thinking. Its garden was visibly richer, with more plant types and glowing blooms. The other two games were working results on both sides.

What happens when you swap effort

I re-ran Orbit Dodge with the efforts swapped:

Run Result Cost
Fable 5.2 at high (default) pass $1.21
Fable 5.2 at medium pass $0.46
Opus 5.5 at medium (default) pass $0.20
Opus 5.5 at high pass $0.23

Dropping Fable to medium cut its cost 2.6x and the game still worked. At matched medium effort, Fable cost 2.3x Opus, close to the 2x token price. Raising Opus to high barely moved its cost.

Artificial Analysis found the same pattern on its Intelligence Index. At each model's default, Fable scored 62 at $9.08 per task and Opus 48 at $2.45. At max effort it was 65 against 59, at $26.54 against $10.04. So Fable is the smarter model, and you pay for it.

The real coding test: a planted bug plus a cross-review

I wrote a small Python repo where three shirts at $19.99 added up to $59.94 instead of $59.97. The symptom shows up in cart.py; the cause sits one file over in money.py:

def to_cents(amount):
    """Convert a dollar amount like 19.99 to integer cents."""
    return int(amount * 100)

19.99 * 100 is 1998.9999999999998 in Python, and int() truncates it to 1998. I planted the bug myself so neither model could have seen it in training. I also kept a held-out test that neither model ever saw:

def test_to_cents_rounds():
    assert to_cents(19.99) == 1999
    assert to_cents(0.29) == 29
    assert to_cents(4.35) == 435

def test_coupon_exact():
    c = Cart(); c.add("cap", 10.00, 1)
    assert c.total(coupon=0.29) == 971

Both models found the root cause and wrote the same fix, going through Decimal with half-up rounding:

from decimal import Decimal, ROUND_HALF_UP

def to_cents(amount):
    return int((Decimal(str(amount)) * 100).quantize(Decimal(1), rounding=ROUND_HALF_UP))
Step Fable 5.2 (high) Opus 5.5 (medium)
Fix: tests passing (python3 -m pytest -q) 19 13
Fix: held-out test pass pass
Fix: wall time / cost 42 s / about $0.28 28 s / about $0.12
Review of the other's fix: verdict "I would not approve it as complete" "correct and I'd approve it" with follow-ups
Review: wall time / cost 96 s / about $0.59 33 s / about $0.14

On the fix itself I could not tell them apart, and Opus did it for less than half the price.

The review is where they split. Both reviewers spotted the same leftover float bug in discounts.py:

def percent_off(subtotal_cents, pct):
    """Apply a percentage discount, rounding the discount down."""
    return subtotal_cents - (subtotal_cents * pct) // 100

A fractional pct turns integer cents into a float. I re-ran it: percent_off(1000, 32.3) returns 678.0, and receipt(pct=7.5) crashes with ValueError: Unknown format code 'd'. Fable treated that as a reason to block. Opus listed it as a follow-up and approved anyway. If an approve-or-block verdict gates your merge, that difference is the thing you are paying Fable for.

paddo.dev saw a sharper split on a 3,700-file TypeScript monorepo, where Fable flagged a hole in Opus's fix in 4 of 4 reviews and Opus in 1 of 4. I did not reproduce that split, since both of my reviewers noticed the bug. In that same test Opus passed 44 of 52 runs and Fable 40, with Fable costing 1.6x more.

When to use Opus 5.5, and when not to

Use it:

  • as your daily coding model at medium effort. Anthropic's own docs say to start with Opus 5.5 for most workloads.
  • for well-scoped bug fixes and features. It fixed my bug as well as Fable did for about 2.3x less.
  • when you are running many tasks and the per-task cost adds up.

Do not rely on it:

  • as the final reviewer before a merge on code that handles money or other edge-case math. It saw the bug and still approved.
  • as proof that a task is impossible. Anthropic says to try Fable when your evals on Opus 5.5 at higher effort still fall short.

When to use Fable 5.2, and when not to

Use it:

  • as a reviewer that gates merges, with effort set by hand.
  • for long, hard agentic work where Opus at higher effort still falls short.
  • when output has to look rich, like my garden game.

Do not use it:

  • at default high effort for routine fixes. That was where the 7.7x cost came from.
  • on Pro or standard Team seats without checking your usage. The "up to 50% of weekly usage" Fable allowance was a launch offer that ran November 9 to 16, 2026 and has ended; Fable on those plans now runs on usage credits.

The test on video

Prefer the quick version? The games, the effort swap and the review round are side by side here:

Links and sources

Drafted with AI assistance from my own tests and notes.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.