← Ledger

Claude Sonnet vs Opus at every effort level, on three long jobs

I gave the same three long jobs to ten Claude Code sessions, Sonnet 5.5 and Opus 5.5 at every effort level. What each one cost, which did better, and what turning up the effort changes.

The full making-of Sonnet vs Opus at every effort level: the making-of notes →
Contents
  1. Why half price doesn’t halve the bill
  2. Test 1: a made-up weaving language
  3. Test 2: scheduling 40 boats through a canal
  4. Test 3: a music video with no rules
  5. What the effort setting changes

Claude Sonnet 5.5 costs half what Opus 5.5, the bigger model, costs on almost every line of Anthropic’s price list. So I tested whether it saves money on long jobs. Over three long tasks, Sonnet cost $249 and Opus $255, about 2% less, and Opus did at least as well.

The tasks were an interpreter for a made-up language, a scheduler for boats on a canal, and a 30-second music video with no rules. Each went to ten fresh sessions of Claude Code, Anthropic’s agent that works on your computer by itself: both models at all five effort settings, Low to Max. Effort is how much the model puts into a job. With one run per setting, each result is one data point.

  • Same bill at half the price. Sonnet cost 31% more on the language task, 13% less on the canal and a bit less on the videos.
  • Opus won four of five head-to-heads on the canal, and all ten runs passed every language test.
  • Effort mostly sets how many steps the model takes. On the canal its thinking per step barely changed.
  • Max was rarely worth it. On the language task it cost 16 to 18 times Low for the same score. It only clearly paid off on the music videos.
  • Left alone, they reach for the same few things. Ten tartans in the weaving task, four yellow raincoats in the videos.

Why half price doesn’t halve the bill

Claude Code sends the whole conversation back to the model on every turn. That’s billed as “cache reads”, the one price that was the same on both, $0.20 per million tokens. Tokens are the chunks of text a model reads and writes. Cache reads are 97% of all my tokens, going by Playback Lens, my tool for reading my sessions. So my history at Sonnet’s rates comes out 24 to 27% cheaper, not 50%. And every extra turn Sonnet needs re-reads the whole conversation at that same price.

Sonnet’s cache reads dropped to $0.10 on 8 October. Repriced, these runs make Sonnet 33% cheaper than Opus, as my later post on costs works out.

My usage by token type

The price list when I ran this, per million tokens:

Price per 1M tokensSonnet 5.5Opus 5.5
Cache reads$0.20$0.20
Cache writes$2.50$5
Input tokens$2$4
Output tokens$10$20

Cache writes that last an hour instead of five minutes cost double the input price, $4 and $8. About 15% of my writes are those.

Every token I’d spent in Claude Code up to then, 31.6 billion of them across 128,000 requests, split by type:

TypeShare of tokensShare of cost at Opus 5.5 pricesShare at Sonnet 5.5 prices
Cache reads97.0%45%62%
Cache writes (5-min + 1-hour)2.5%34%24%
Output0.43%20%14%
Uncached input0.01%~0%~0%

An average Opus 5.5 request of mine reads about 334,000 cached tokens and writes about 1,000 tokens of output. Uncached input is about 2 tokens per request, so the “$2 vs $4 input” line on the price page doesn’t touch me at all.

Holding my token counts fixed and swapping the price list:

UsageOpus 5.5Sonnet 5.5Sonnet saves
All my history$13,479$9,80227%
Only my Opus 5.5 sessions$4,771$3,60724%

These are API-equivalent dollars, what the same tokens would cost at the pay-as-you-go price. I’m on a Max plan, so what really limits me is the usage limit, but the ratios are the same either way.

How I ran the sessions

Each session ran alone in its own folder with one prompt and nobody watching, and was told not to look at its neighbors. None of them was told how long the task should take. Afterwards I read its exact tokens and cost out of its transcript, the saved record of everything it did. Medium is what I normally run Opus at. A lot of people run Opus at Max.

For comparison, in summer 2025 I was still pasting code into a chat window by hand for my monster game (everything Sonnet 4 got wrong back then). Here the sessions ran themselves for up to nine hours, kept notes in files and tested their own work.

Test 1: a made-up weaving language

I invented a small programming language, LOOM, whose programs describe woven cloth. Each session had to build an interpreter for it (the program that runs LOOM code), a one-page studio with an editor and an animated loom, and a gallery of at least eight pieces. Then I tested it on 15 example programs and 10 hidden ones.

All ten got all 25 right, so Loom became a pure price test. Opus Low did it in 8 minutes for $2.00, Sonnet Max in 110 minutes for $43.86. Over the five levels Opus cost $60.92 and Sonnet $79.97, because Sonnet used about twice the tokens to do the same job. Max only bought more gallery pieces and bigger test suites.

Every piece of cloth from all ten galleries, one row per session, Opus Low at the top:

Every gallery piece from all ten sessions, one row per session

All ten have a tartan, nine a herringbone and eight a houndstooth. The studios split by model. Four of the five Sonnet ones went dark and all five Opus ones stayed light. Click one to open the page its session wrote.

The hidden tests are public now too, with their answers.

The Loom task in full

LOOM programs describe cloth the way a real loom makes it: which lengthwise threads get lifted on each row, which color the shuttle carries across, threads that cross and drift, and a “float” rule that fails the program if a thread runs loose for too long. The spec is four pages and deliberately precise, down to the exact text of every error message and which of two errors wins when both apply.

Each session had to build:

  • An interpreter with a command-line runner whose output is compared to mine character for character.
  • LOOM Studio, one self-contained web page with an editor, a loom view that animates the weaving row by row, a step-by-step debugger you can scrub back and forth, errors that point at the right line, and a panel that runs the examples live.
  • A gallery of at least eight original pieces.
  • Its own test suite and notes.

The 10 hidden tests are edge cases the spec defines but the examples never show. For example, whether a float counter remembers rows woven before float checking was turned on (it does), whether a structural error on line 4 beats a runtime error on line 3 (it does), and whether (a b) *2 with a space is legal (it isn’t).

Here are the prompt and the spec exactly as the sessions got them.

Loom results, session by session
SessionHiddenGalleryWall timeRequestsCache readsCost
Opus 5.5 Low10/1098 min231.8M$2.00
Opus 5.5 Medium10/10921 min638.7M$5.68
Opus 5.5 High10/10926 min507.7M$6.52
Opus 5.5 XHigh10/101051 min10523.0M$14.32
Opus 5.5 Max10/101262 min15541.3M$32.40
Sonnet 5.5 Low10/101010 min556.0M$2.45
Sonnet 5.5 Medium10/101022 min7611.3M$4.45
Sonnet 5.5 High10/101040 min11126.5M$8.91
Sonnet 5.5 XHigh10/101367 min21357.0M$20.30
Sonnet 5.5 Max10/1014110 min*244102.6M$43.86
  • Requests, tokens and dollars come straight out of the session transcripts through Playback Lens, including subagents (helper agents a session starts). The XHigh and Max runs started one or two each.
  • *Sonnet Max hit my plan’s usage limit 73 minutes in and was resumed in the same session after the limit reset. Its wall time includes the wait, and its tokens are exact.
  • Sonnet came out cheaper at one level, Medium, by 22%. Opus finished first at every level.
  • At the same effort, Sonnet made 1.2 to 2.4 times as many requests and re-read 1.3 to 3.4 times as much cached conversation. Cache reads were 18 to 32% of the Opus bills and 47 to 60% of the Sonnet ones.
  • If Opus’s own token counts had been billed at Sonnet’s prices, its runs would have cost $38.72. Sonnet actually spent $79.97.
  • Max also bought longer notes. Opus Low finished everything, including a 119-test suite and screenshot checks of its own page, in under eight minutes for two dollars.
  • The galleries also had nine sunset gradients and seven log cabins. Sonnet went further into color and whimsy, with rainbow lozenges, tiny hearts, a kaleidoscope and a barber pole. Opus stayed closer to a weaving textbook, with goose-eye, monk’s belt, rosepath and an oat waffle. Higher effort mostly bought more pieces, not stranger ones.
  • The dark Sonnet studios look a lot like my brand’s night mode, and the Opus ones land near its day mode. Every session could see my brand guide, and none of them opened it.

Test 2: scheduling 40 boats through a canal

The second task, the Lockkeeper’s Ledger, is a made-up canal with nine locks up a hill and 40 boats to get through in two days. Every lock that fills drains water from the pool above, and three lockkeepers walk between locks to work them. Each session wrote a solver (a program that finds the schedule) and a page that animates the canal. I also ran every solver on three canals it had never seen. Scores are minutes late, weighted by priority. A simple scheduler I wrote scores 26,387.

Every schedule followed the rules, and this time the scores spread out.

  • Opus won four of the five levels head to head. The best schedule was Opus High’s, 73% better than my simple scheduler. The best solver on unseen canals was Opus Max’s.
  • Sonnet was 13% cheaper here, and the two tied on the unseen canals.
  • Effort mattered, but not in a straight line. Medium, High and Max beat Low on both models, and both XHigh runs dipped.

Sonnet Max ran 8 hours 42 minutes alone before I stopped it. Its conversation hit 968,364 tokens, just under the million tokens the model can hold, so Claude Code summarized it and carried on. Why a session can run that long now is in the full making-of notes.

All ten pages work. Click one to open it.

The hidden canals are public now.

The Lockkeeper task in full

I rewrote this task after the first Loom results came in. The two Low runs had both aced Loom in 8 and 10 minutes, so Lockkeeper got three more rules, hidden test canals and a live re-planning requirement before it ran.

Each boat, narrowboat or barge, going up or down, has a release time, a deadline and a priority. The locks close at night. A pool can’t drop below its minimum, and the only new water is a feeder stream into the top pool, one unit a minute, spilling down over weirs. So a careless schedule drains the canal and then everyone waits for the hill to refill. On top of that:

  • Three keepers for nine locks. Ada, Bert and Cass work every operation in person and have to walk the towpath between locks. Getting the crew in the right place is its own scheduling problem.
  • A maintenance closure shuts Lock 5 for two hours in the middle of day one.
  • Priorities. A priority-3 boat’s late minutes count triple.
  • Shared chambers and wrong-side chambers. Two narrowboats going the same way can share a chamber. A chamber on the wrong side has to be worked once with no boat in it first, which costs time and, going up, water.

Each session had to deliver:

  • A solver (node solve.js canal.json) that I also ran on three canals it had never seen, with different sizes, crews, closures and feeder rates, under a two-minute limit.
  • Its best schedule for the public canal, checked by my simulator. One broken rule makes it invalid, and an invalid schedule scores nothing.
  • Its own validator, a program that checks a schedule against the rules.
  • The Lockkeeper’s Ledger, a page that animates the canal (water levels, chambers filling, boats moving, keepers walking, night falling) next to a timeline chart, and explains every delay in plain language, like “Kingfisher waited 14 minutes at Lock 6 because no keeper was free: Ada was working Lock 2”.
  • A disruption mode. Close a lock or delay a boat in the page, press re-plan, and it re-solves in the browser and shows who got later and why.

I wrote two simple baseline schedulers to prove every canal can be solved at all. One sends the most urgent waiting boat through with the nearest free keeper. It’s valid on the public canal but comes to 26,387 weighted minutes late, with 32 of 40 boats late. Neither plans ahead, and both are bad at moving keepers.

Here are the prompt, the rules and the public canal.

Lockkeeper results, session by session
SessionPublic canalHidden canals (total)Wall timeRequestsPeak contextCost
Opus 5.5 Low10,93337,13214 min32130K$2.85
Opus 5.5 Medium8,53631,0651.9 h181540K$24.08
Opus 5.5 High7,18130,2616.0 h248554K$29.55
Opus 5.5 XHigh10,94847,3034.4 h241746K$41.87
Opus 5.5 Max7,24528,6504.5 h294862K$53.62
Sonnet 5.5 Low11,01138,05045 min48204K$3.41
Sonnet 5.5 Medium10,19334,6661.5 h163429K$13.73
Sonnet 5.5 High8,64033,5271.6 h186530K$20.38
Sonnet 5.5 XHigh10,38839,1463.4 h228763K$32.51
Sonnet 5.5 Max8,20028,8338.7 h*494962K$61.96
  • Scores are weighted minutes late, lower is better. My baseline scores 26,387 on the public canal. Peak context is the most conversation a session held at once.
  • *I stopped Sonnet Max by hand after 8 hours 42 minutes. It was still tuning its solver, so its score and cost are where it was cut off.
  • Opus won on both the public canal and the hidden ones at every level except XHigh.
  • Sonnet’s five runs cost $132.00 to Opus’s $151.97, and that’s with Sonnet Max still running up its bill when I stopped it.
  • Hidden totals: Opus 174,411, Sonnet 174,222, within a tenth of a percent. Opus was 7% better on the public canal. From Medium to XHigh, Sonnet made fewer requests than Opus did.
  • Opus XHigh’s solver was the worst of all ten on the hidden canals, behind both Low runs, after four and a half hours and $42. Both XHigh runs came last among the Medium-and-up runs.
  • Speed flipped from Loom. Here and on the music videos, Sonnet usually finished sooner.
  • Re-reading the conversation was 64% of the Opus Max bill and 72% of the Sonnet Max one.
  • Every page converged on the same design: a hillside of stepped pools, a timeline chart of the boats underneath and a score strip on top. All five Opus pages are cream again, but only two of the Sonnet pages went dark this time.
  • Sonnet Max’s conversation was summarized from 968,364 tokens down to 19,886. It was the only time that happened in all twenty Loom and Lockkeeper sessions.

Test 3: a music video with no rules

Each session got four sentences: make a 30-second music video, any idea, any tool on this machine. They ran one at a time on my laptop with ComfyUI (the app I run image, video and song models in), Blender and my notes.

  • Effort decided the ambition. Both Low runs made a synthwave sunset and a tune, all in code, in under ten minutes. From High up, every session wrote lyrics, made a sung song and animated every shot.
  • Max is where the ideas changed. In Opus Max’s video a knight from a medieval manuscript rides out to slay a beast with “two terrible horns”. It’s a smiling snail, and the last shot is the snail wearing his helmet. Sonnet Max made a lonely firefly flashing out of time with the others. They were the most original videos, and at $20 and $24 the most expensive.
  • Opus High’s craft surprised me. It chose a cut-paper look because paper should move stiffly, so the AI video’s jerkiness reads as stop-motion.
  • Below Max they converged. Four leads wear a yellow raincoat or rain cape. Only the snail is in daylight.
The music videos, session by session
SessionVideoHow it was madeWall timeCost
Opus 5.5 LowLantern TideSynthwave drawn in code, music synthesized in code9 min$0.50
Sonnet 5.5 LowNight DriveSynthwave drawn in code, music synthesized in code6 min$0.27
Opus 5.5 MediumLast Tram to the MoonSung song, 6 painted shots, all animated56 min$3.33
Sonnet 5.5 MediumMoth SongMusic in code, 10 painted stills with camera moves10 min$0.60
Opus 5.5 HighPaper LanternSung song, cut-paper diorama, all animated62 min$3.59
Sonnet 5.5 HighNight ShiftSung song, 7 painted shots, all animated58 min$2.22
Opus 5.5 XHighNeon KoiSung city-pop, 11 animated shots, karaoke lyrics1 h 41 min$14.72
Sonnet 5.5 XHighLight LoadSung synth-pop, 9 animated Hopper-style shots, captions1 h 34 min$9.73
Opus 5.5 MaxThe Terrible SnailMedieval tavern ballad, 20 manuscript frames, 12 animated clips1 h 34 min$20.11
Sonnet 5.5 MaxAll at OnceSung song, gouache fireflies, 12 animated clips, lights synced to the kick1 h 45 min$24.38
  • Both Low runs never touched the graphics card. Opus Medium went all the way like the High runs. Sonnet Medium stopped halfway, at painted stills with camera moves, because animating would take about five minutes a clip.
  • In Opus Max’s video the horse throws the knight and his sword sparks off the snail’s face. Knight-versus-snail fights are a real thing in the margins of medieval manuscripts, which is where it got the idea.
  • Sonnet Max tested six painting styles and three motion styles before committing, rendered twenty takes of the song, and measured a median of 0 ms between the flashes and the beat. Every light in the frame goes dark on each sung “once” of the chorus and then pulses with every kick.
  • Opus High only shows its character from behind, to avoid face problems. Sonnet High’s song model kept mangling “brass robot”, so it rewrote the lyric to “tin robot”.
  • Opus XHigh has its girl press PLAY on her Walkman exactly as the word “play” is sung. When my ComfyUI server crashed mid-render, it read my own troubleshooting notes, restarted it and re-rendered the clip that failed. Nobody asked it to.
  • A fifth lead wears a mustard-yellow hoodie. Nine of the ten videos are set at night or dusk, several in the rain.
  • None of them heard their own songs. Every session that made a sung song said so, and judged it by transcripts and spectrograms, which are pictures of the sound.
  • Two Opus runs started a render in the background, said they’d pick things back up when it finished, and ended their turn. With nobody watching, that ends the session. My launcher now resumes any session that leaves no video in its folder.

What the effort setting changes

Mostly how many steps the model takes. On the canal it barely changed how long the model thinks per step. Low to Max, Opus took 9 times as many actions but thought only 1.7 times as long per action. On the other two tests a later recount found the thinking did go up. Sonnet at Low thought more per step than at Medium. It just took a third as many steps and stopped.

The Low music videos show it. They could have tried three ideas without thinking any harder, and they didn’t. I’d like two dials, one for how hard to think and one for how much to try. Until then the fixes are outside the model: a prompt with a checklist, a stop hook that won’t let the session end until the list is done, or a high-effort agent handing a low-effort one the next thing to try.

My predictions, scored

I wrote these down before any results came in.

Loom:

  • Everybody passes the 15 public examples. Right.
  • The hidden ten separate the field, with the Low runs losing three or four. Wrong. Nobody missed a single one.
  • Sonnet uses more turns and the price gap closes. Worse than that. It didn’t just close, it flipped.
  • Max costs the most without a matching jump in score. Right, and more so than I expected. Max cost 16 to 18 times Low for the same score.
  • The galleries say more than the scores. Half right. Mostly they showed how alike the sessions were.

Lockkeeper:

  • At least two of the ten schedules are invalid somewhere. Wrong. All of them were valid on all four canals.
  • The gap between runs is much bigger than in Loom, and the best solver beats my baseline by more than 80%. Half right. The scores spread out, but the best schedule was 73% better.
  • Higher effort pays off more here than anywhere else. Partly. Medium, High and Max beat Low on both models, but both XHigh runs dipped.