r/ChatGPTCoding • u/Jumpy_Invite_7473 • 2d ago
Resources And Tips I measured cost per finished coding task instead of per token. Cheap models still won, but not the way I expected
I ran 4 real tasks on a small Node app (a bug fix, input validation, duration parsing, a dark mode toggle). Each one is checked by hidden tests, so "done" means the tests pass, not "the model said it's done."
Two setups:
- Claude Sonnet on every step
- A cheap coding model on every step, handing off to a strong model only after 3 failed attempts
Results:
- Bug fix: $0.104 vs $0.003
- Input validation: $0.094 vs $0.013
- Duration parsing: $0.114 vs $0.009
- Dark mode: $0.158 vs $0.006
- Total: $0.469 vs $0.031. Every task passed in both setups.
What surprised me:
- The cheap model took more steps: up to 13, where Sonnet took 5β8. It also needed a few recoveries.
- It still won on price because each step costs a tiny fraction of a Sonnet call.
- The handoff rule matters most. Without a cap, cheap models can spin forever and eat the savings.
Most agent steps are reading files and small edits. Paying frontier prices for those is where the usage limits go.
Happy to share the tasks and raw numbers if anyone wants to check them.
12
Upvotes
2
u/SilencedObserver 1d ago
Can you be more descriptive about what you mean when you say cheap models?
Are these local models on local hardware or models via hugging face or what?
1
u/Best_Researcher491 2d ago
I added the four rows in your post. The cheap path is $0.031 against $0.469, which is 6.6% of the Sonnet total.
The gap is not even across tasks. Input validation is $0.094 vs $0.013 (7.2x). Duration parsing is $0.114 vs $0.009 (12.7x). Dark mode is $0.158 vs $0.006 (26.3x). The bug fix is $0.104 vs $0.003 (34.7x). Extra steps ate most of the savings on validation, and almost none on the bug fix.
2
u/VridhiMehta 1d ago
the 'done means tests pass' framing is what makes this measurement mean anything. most cost comparisons stop at tokens, which quietly rewards models that give up early. the 13 steps vs 5-8 is the real tradeoff though - cheap wins on price, you pay in wall time and babysitting recoveries
2
u/kaijurules 1d ago
Looks like the handoff never fired in these four runs. Sonnet took 5 steps and $0.094 on validation, so about $0.019 a step, and your most expensive cheap run was $0.013 in total. One Sonnet step would have cost more than that.
So the numbers show the cheap model alone can do these tasks. They don't say anything yet about the 3-attempt rule, you'd need a task it fails to see what the escalation costs.
3
u/timelinextreme 1d ago
I'm a bit confused. This is a chatgpt forum that you came to post about a Claude model vs an undesclosed cheap model?
1
u/Kooky-Treat-4416 2d ago
yeah measuring done-when-tests-pass is more honest than token price. cheap models still win for me, but only if i cap the retries and hand off after a few fails, otherwise they just burn the savings on longer loops.
1
u/hieuphung97 1d ago
The 3-attempt handoff rule is the key insight here. Without hard ceilings on mechanical exploration, small models burn their entire cost advantage thrashing on bad AST diffs before ever asking a frontier model for help.
1
u/uselesslogin 1d ago
How does the handoff work?
1
u/magicdoorai 1d ago
Checking against hidden tests is the right yardstick. Before I'd trust the 15x gap, two things:
If both setups already include all of that, the result is a lot more convincing. I'd also try handing off on a signal other than a failure count, for example tests still failing after N steps with no change in the diff, since 13 steps of thrashing is where your savings go.
1
u/notarshzzz 1d ago
i do basically the same split, cheap model for the boring reading and tiny edits, strong one only when it gets stuck. the amount of money i used to burn letting the expensive one do file reads was silly lol
1
u/adlx 1d ago
Have you tried Opus with all the tasks at once? Instead of one task for each model (eating up context for each task instead of one single session with opus).
1
u/ThisGermanEngineer 1d ago
Good idea! Did you run the same tasks several times or just once each? Would be interesting to see for the same run how much it might differ.
1
u/Difficult_Duty2198 1d ago
did the 6.6% figure count the time you spent reviewing the cheap model's output? curious if the gap holds once you include that.
1
u/tanyadev4827 1d ago
The step count vs. per-step cost distinction is the right frame. A cheap model running 13 steps at 1/18th the per-step cost of Sonnet still wins, but only if the step count is bounded. Without the handoff cap, a model that gets confused and keeps reading the same files repeatedly will burn through the savings quickly on longer tasks. The other thing worth tracking is what kind of steps inflate the count: file reads and routine confirmation calls are almost always cheaper to tolerate than extra planning steps, so a model that adds 5 redundant verification steps is a very different problem from one adding 5 extra reasoning steps. If you share the raw step logs, the breakdown by step type would probably show you which task types the cheap model stays cheap on and which ones it does not.
1
u/nur_plano 1d ago
Love that "done" = hidden tests pass, not "model said done". That's the only metric that matters.
One variant worth measuring: cheap model writes, a different strong model only reviews (with the test/lint commands it ran as proof) instead of taking over after 3 failures. In my experience the reviewer catches the "passes tests but wrong approach" cases earlier and costs far fewer tokens than a full handoff. Would be curious if your numbers agree.
1
u/Ctznsvn7 1d ago
The handoff cap is the real finding here innit? Without it the cheap model's step count blows up and the savings vanish fast. Would love to see the same test on a messier task, like a refactor across 10+ files where reading context dominates. That's where cheap models usually lose the plot and the escalations start piling up. Please do share the raw numbers, especially how many tasks hit the 3 attempt handoff, curious