Claude Code Pricing: What Haiku, Sonnet, Opus, and Fable Cost
A real-world cost breakdown of running Claude Code with Haiku 5.5, Sonnet 5.5, Opus 5.5, and Fable 5.2 on the same autonomous build task.

What does Claude Code actually cost to run?
Cost scales with model tier, not just task size. A single controlled experiment running Claude Code in headless mode (no human at the keyboard, just autonomous build-test-fix loops) with four budgets ($1, $10, $100, $1,000) mapped to four model tiers (Haiku 5.5, Sonnet 5.5, Opus 5.5, Fable 5.2) showed spend-per-round ranging from about 3 cents to over $300, with total output scaling from a playable prototype to a 51,000-line simulation.
TL;DR
- Haiku 5.5 burned through a $1 budget in 29 rounds over about 2 hours, averaging roughly 3 cents per round, and still produced a playable game with missions, traffic, and procedurally generated music.
- Sonnet 5.5 at a $10 budget ran 43 rounds in under 2 hours but is prone to deciding a task is “done” early, in one run spending nearly half the budget doing nothing after round 30.
- Opus 5.5 running three agents in parallel at $100 only needed 12 rounds across about 4 hours, but each round produced dramatically more code, jumping from roughly 2,000 to over 19,000 lines.
- Fable 5.2 at a $1,000 budget with eight agents spent its first ~$70 purely on planning and architecture before writing meaningful gameplay code, then burned $312 in a single 3-hour round.
- Cost per minute at the top tier worked out to about $1.40, and the full $1,000 run took 11 hours and 40 minutes to exhaust the budget.
- Checkpointing matters: one run lost its main game file when the budget cut off mid-edit, and only a saved checkpoint from the prior round prevented total loss of progress.
- Jumping between tiers doesn’t buy the same thing each time: $1 to $10 mostly added volume, $10 to $100 bought structure and polish, and $100 to $1,000 bought an entire interconnected world.
How much does each Claude model cost per task in Claude Code?
In this test, the per-round cost varied by roughly two orders of magnitude between the cheapest and most expensive tier.
Haiku 5.5, the cheapest model tested, spent 98 cents of its $1 budget across 29 rounds, averaging about 3 cents per round. Sonnet 5.5 ran 43 rounds on a $10 budget, putting it in a similar cents-to-low-dollars range per round, though a failed first attempt saw it spend $4.72 (nearly half the budget) without making any changes, because it decided the game was already good enough.
Opus 5.5, running as a team of three agents on a $100 budget, only completed 12 rounds, but each round was far more expensive and far more productive, pushing the codebase from about 2,000 lines to over 19,000 lines across roughly 4 hours of work.
Fable 5.2, the top tier, ran eight agents in parallel against a $1,000 budget for 11 hours and 40 minutes. One single round in that run lasted over 3 hours and cost $312, writing about 22,000 lines of code, more than the entire Opus run produced in total. Averaged out, the Fable run cost approximately $1.40 per minute of wall-clock time.
What do you actually get at each price tier?
The brief was identical across all four tiers: build an original 3D open-world driving game set in Miami, playable in a browser, with a car, traffic, missions, day/night cycles, beaches, and a radio.
$1 (Haiku 5.5): A game called Neon Tide Miami Drive, with seven missions (package runs, drift challenges), traffic that obeys lights, pedestrians, a lighthouse bridge, and three procedurally generated radio stations with no audio files at all. Visually it’s boxy: buildings and cars look like placeholders. But the underlying logic and physics function as a real, playable game.
$10 (Sonnet 5.5): A game called Palmetto Drift, expanded to 21 missions, police with a wanted-level chase system, rival racers, three selectable cars, a pier with a ferris wheel, and weather that makes roads slippery when it rains. The radio grew to five stations with fake news bulletins and ads mixed in. The jump from $1 to $10 mostly added quantity and variety rather than a step change in quality.
$100 (Opus 5.5, 3 agents): Despite only 12 rounds, this tier produced a game with a flying-camera title screen, a garage for buying cars and upgrading engines, nitro, brakes, and paint jobs, a five-star police escalation system, 336 destructible objects, nine stunt jumps, 40 collectibles, AI rival races, and a radio DJ that talks between songs. This is the point where the project started to feel like an organized product rather than a demo, with code structured the way a real team might structure it. Notably, Opus independently named its game “Neon Tide” too, the same name Haiku landed on in a separate run, a reminder that language models tend to converge on similar, unoriginal outputs rather than generating genuinely novel ideas.

What you'll learn · Dec 2
- 01How enterprises really build with AI
- 02What full-stack means and why it's critical for business software
- 03Prompting that holds up in production
- 04Build and deploy your own app, live
$1,000 (Fable 5.2, 8 agents): The most expensive tier spent its opening rounds (roughly $70 worth) purely on planning: splitting the game into 13 separate systems (world, traffic, pedestrians, missions, audio, etc.) and building fallback versions of each so a crash in one system wouldn’t take down the whole game. The result, called Neon Causeway, is a roughly 6 km city with over 5,000 buildings, a drivable speedboat, ambulance-shift missions, a six-chapter story with phone calls from characters, ten purchasable businesses that generate passive income, dolphins, a blimp, a helicopter, fireworks, café scenes, and up to 240 NPCs on the street at once. Final code size reached about 51,000 lines, roughly two and a half times what the $100 tier produced.
Is the most expensive Claude tier worth it?
It depends on what the output needs to do. The $1,000 Fable run produced the only version of the game that felt alive even when the player wasn’t doing anything, thanks to ambient systems like NPCs, wildlife, and background events running continuously. That’s a meaningfully different outcome than the $1 Haiku version, which proved the concept works but looks and feels like a sketch.
For validating an idea cheaply, the lowest tier is the rational starting point: a dollar of Haiku produced something genuinely playable, which is enough to test whether a concept has legs before spending more. For something meant to go in front of real users, the $100 Opus tier is where the project starts looking like an actual product, with menus, progression systems, and code organized well enough to build on. The $1,000 tier makes sense only when the goal is to see the ceiling of what’s possible and there’s tolerance for letting the process run unattended for most of a day.
What should you watch for when running Claude Code autonomously?
A few practical failure modes showed up during the test. Sonnet, left without a strict mandate, decided partway through that the game was finished and then spent dozens of rounds doing nothing but opening the game, confirming it looked fine, and stopping, burning real budget in the process. The fix was to require that every round ship one concrete, player-noticeable change, like a new mission or a visual improvement, rather than leaving “done” up to the model’s judgment.
Budget cutoffs can also strike mid-edit. In the Sonnet run, the money ran out while a file was being rewritten, deleting the main game file entirely. The project only survived because each round saved a checkpoint, allowing a rollback to the last working state. Anyone running long autonomous loops with a hard dollar cap should treat checkpointing as mandatory, not optional.
Frequently Asked Questions
Which Claude model is cheapest to run in Claude Code?
Haiku 5.5 was the cheapest in this comparison, averaging about 3 cents per round and completing a 29-round build for under a dollar.
Which Claude model produces the most code per dollar?
Opus 5.5 showed the steepest jump in code output per round, going from roughly 2,000 to over 19,000 lines across just 12 rounds. Fable 5.2 produced the most total code (about 51,000 lines) but needed a much larger budget to get there.
Does a bigger budget always mean a better result?
Not proportionally. Going from $1 to $10 mainly added more content without changing the core quality. The bigger jumps in capability showed up going from $10 to $100 (structure and polish) and from $100 to $1,000 (a fully simulated world).
Why did Sonnet stop working before its budget ran out?
Build an onboarding app for 4,000 new hires.
Build ↵Without an explicit requirement to ship a visible change every round, Sonnet decided the game was already acceptable and stopped making edits, burning budget on rounds that just reopened and reviewed the game without altering it.
What’s the risk of running Claude Code until a budget cap hits?
A hard budget cutoff can interrupt a file write mid-edit, as happened when Sonnet’s budget ran out while the main game file was being rewritten. Saving a checkpoint after every round is what allowed recovery instead of total data loss.



