Guide

The $47,000 Claude Code Bill (and How Smart Model Routing Prevents It)

Bento Team

Bento Team

13 min read·
The $47,000 Claude Code Bill (and How Smart Model Routing Prevents It)

Updated November 2026: Prices and models now reflect Anthropic's current lineup: Claude Opus 5.5 ($4/$20 per million tokens), Sonnet 5.5 ($2/$10) and Haiku 5.5 (from $0.10/$0.50), with Claude Fable 5.1 ($10/$50) above them. Opus is now only twice the price of Sonnet, so routing saves less than it did in spring 2026, and the cost scenarios below are recalculated at today's rates. The advice still holds: match the model, and the effort level, to the task.

The bill shock is real

A developer ran 23 subagents on a code-quality project. Three days later, the bill hit $47,000. Not a typo. Forty-seven thousand dollars on AI-generated code reviews.

That's the extreme end. But the pattern is everywhere. A 49-subagent typescript-checks run clocked $8,000 to $15,000. Someone left Claude Code running overnight with a looping script and woke up to $6,000 gone. One developer burned through $15,000 in eight months on API billing. That same usage would have cost $800 on a Max subscription.

Then there's enterprise scale. Uber burned through its entire 2026 AI coding budget in four months. Per-engineer bills ranged from $150 to $2,000 a month. Their COO called it a "head-exploding moment." The same month, Microsoft started canceling most of its internal Claude Code licenses.

The common thread in every one of these stories? People running the most expensive model for every task. Opus for commit messages. Opus for formatting. Opus for boilerplate CRUD that Haiku could handle in its sleep.

You don't need to stop using Claude Code. You need to stop using the wrong model, or let Bento pick the model for each task.

Three models, three price points, three jobs

Claude comes in three everyday tiers, with Claude Fable 5.1 above them for the hardest work. Each one exists for a reason.

Haiku: the fast, cheap workhorse

Claude Haiku 5.5 costs $0.10 per million input tokens and $0.50 per million output tokens for prompts up to 100K tokens ($0.50/$2.50 above that). That's 40x cheaper than Opus.

Haiku is built for speed and volume. It handles simple, well-defined tasks where reasoning depth doesn't matter. Commit messages, boilerplate generation, formatting, string manipulation, quick Q&A about your codebase. The kind of work that makes up a surprising chunk of every coding session.

Most developers never even try Haiku for these tasks. They should.

Sonnet: the daily driver

Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens. Half the price of Opus, and the quality gap is smaller than most people think.

Sonnet handles 70 to 80 percent of typical development work at near-Opus quality. Landing pages, API routes, test writing, refactoring, content writing, standard code review. If the task has a clear goal and doesn't require multi-step architectural reasoning, Sonnet gets it done.

This is the model you should be using by default. Not Opus. Claude Code now starts on Opus 5.5 on every plan, so you have to switch it yourself.

Opus: the heavy hitter

Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens. The most capable of the three and the most expensive. Above it, Claude Fable 5.1 ($10/$50) is for demanding reasoning and long-horizon agentic work.

Opus earns its price on tasks where getting it wrong costs more than the tokens. Architecture design, debugging subtle multi-file issues, complex database migrations, security audits, framework upgrades. Tasks that require deep reasoning across long context windows.

The mistake isn't using Opus. The mistake is using Opus for everything.

The model-task matrix

Here's the cheat sheet. Every common task mapped to the right model.

For each task below, Best means it's the right model for the job. Good means it works but you're overpaying. Overkill means you're lighting money on fire.

Simple tasks (use Haiku)

TaskHaiku ($0.10/$0.50)Sonnet ($2/$10)Opus ($4/$20)
Commit messagesBest (under $0.01)Overkill (~$0.07)Way overkill (~$0.14)
Formatting/lintingBestOverkillWay overkill
Boilerplate/CRUDGoodBestOverkill
Simple Q&ABestOverkillWay overkill
Regex/string opsBestGoodOverkill

Standard tasks (use Sonnet)

TaskHaikuSonnet ($2/$10)Opus ($4/$20)
Landing pages/UIWeakBest (~$0.10-0.35)Good but 2x cost
Blog/content writingWeakBestGood for complex long-form
Test writingWeakBestGood for integration suites
Feature developmentWeakBest (most features)Best for multi-system features
Code review (standard PRs)WeakBestOverkill
Bug fixes (clear repro)WeakBestOverkill
RefactoringWeakBest (targeted)Best for large-scale refactors

Complex tasks (use Opus)

TaskHaikuSonnetOpus ($4/$20)
Architecture designNoRiskyBest
Multi-file debuggingNoStrugglesBest
Database migrationsNoOK for simpleBest
Security auditsNoMisses subtletiesBest
Complex reasoning (100K+ context)NoDegradesBest
Framework upgradesNoOK for minor bumpsBest

The pattern is clear. Most tasks fall in the simple or standard category. That means most of your token spend should be on Haiku and Sonnet, not Opus.

Don't want to think about model selection?

Bento analyzes every task and picks the right model automatically. Your work gets a frontier model like Claude Opus 5.5 when it needs one, and a fast, cheap model when it doesn't.

Start with $5 free

Nothing to set up

How to save money, from beginner to pro

Not everyone wants to build a model router. Here's every method, graded by technical skill required. Start at your level and work up.

Level 1: No code required

These work for anyone, even if you've never opened a terminal.

  • Switch to Claude Max ($100/month) instead of API billing. One developer spending $15,000 over 8 months on API billing would have paid $800 on Max. That's a 93% savings.
  • Use /compact and /clear to manage your context window. Tokens equal money. A bloated context window means every message costs more.
  • Start new sessions for new tasks. Don't cram everything into one massive conversation. Fresh sessions reset context and reduce per-message token counts.
  • Run /usage (/cost still works as an alias) to check your spend in real-time. You can't optimize what you don't measure.
  • Set spending limits in the Claude Console. Put a ceiling on monthly API spend so surprise bills literally can't happen.

These five steps alone will cut most developers' bills by 50% or more. If you do nothing else, do these.

Level 2: Some config, no scripting

You know your way around a config file. You've edited settings.json before.

  • Use the --model flag to manually select cheaper models. Run claude --model haiku for simple tasks, or /model sonnet to change your default.
  • Write a CLAUDE.md that sets Sonnet as default: "Use Sonnet for all tasks. Only escalate to Opus when the task involves architecture, complex debugging, or security analysis."
  • Limit subagent parallelism in CLAUDE.md. "Never spawn more than 3 subagents at once." This is how $47,000 bills happen. Each subagent carries its own context window.
  • Use project-scoped settings to enforce model defaults per repo. Different repos have different complexity profiles.
  • Cache frequently-used context via the Project space. Stop re-uploading the same files every session.
  • Set per-session token budgets. Know your ceiling before you start.

Level 3: Shell scripts and hooks

You're comfortable writing bash scripts and configuring development tools.

  • Build a shell wrapper that routes to different models based on task keywords or file types. "refactor" or "test" goes to Sonnet, "architecture" or "security" goes to Opus, everything else goes to Haiku.
  • Create a PostToolUse hook that tracks token usage per session and alerts when thresholds are hit. Same concept as an audit trail hook, but focused on cost.
  • Use Haiku as a complexity classifier. Feed it the task description, get back "simple/standard/complex", route to the corresponding model. Cost: fractions of a cent per classification.
  • Build a cost-tracking hook that logs every API call: model, tokens in, tokens out, estimated dollar cost. Store it in a daily log file.
  • Generate weekly cost reports from your logs. Know exactly where your money goes: by project, by task type, by model.

This is a lot of plumbing to build yourself.

Bento ships with model routing and usage reports out of the box. No hooks, no scripts, no maintenance.

Start with $5 free

Nothing to set up

Level 4: Full model router (or just use Bento)

You want automated, intelligent routing with zero manual intervention.

  • Build a complete model routing system: request classifier, complexity scorer, model selector, execution layer, cost tracker. The classifier uses Haiku (pennies per call) to analyze task complexity, then routes to the right model.
  • Add rule-based fallbacks for speed: file type detection, git diff size, keyword patterns. These bypass the classifier for obvious cases.
  • A/B test model selection. Run the same tasks on Sonnet vs Opus, measure quality. You'll find Sonnet wins more often than you'd expect.
  • Build a cost dashboard showing per-task, per-model, and per-project breakdowns.
  • Or skip all of this and use Bento. Bento routes tasks to the right model automatically, reports usage for the workspace, and handles the entire optimization pipeline. No config, no scripts, no maintenance.

Before and after: real cost scenarios

Let's make the savings tangible.

Scenario 1: Full-stack feature (landing page + API + tests)

All-Opus approach: 2 million tokens across planning, implementation, and testing. Cost: roughly $32 to $43.

Routed approach: Planning on Opus (300K tokens, ~$7). Implementation on Sonnet (1.2M tokens, ~$15). Boilerplate and test scaffolds on Haiku (500K tokens, ~$0.30). Total: roughly $22. Savings: 30-50%.

Scenario 2: Content production (10 blog posts)

All-Opus approach: 5 million tokens. Cost: roughly $93 to $120.

Routed approach: All writing on Sonnet (4.5M tokens, ~$48). Formatting and metadata on Haiku (500K tokens, ~$0.30). Total: roughly $48. Savings: 50-60%.

Scenario 3: Code review sprint (20 PRs)

All-Opus approach: 3 million tokens. Cost: roughly $53 to $67.

Routed approach: Standard PRs on Sonnet (2.4M tokens, ~$27). Complex architectural PRs on Opus (600K tokens, ~$13). Total: roughly $40. Savings: 25-40%.

In every scenario, quality stays the same on the tasks that matter. You're not cutting corners. You're cutting waste.

Want these savings without building the router?

Bento's model routing is built in. You get the cost savings from day one.

Start with $5 free

Nothing to set up

Why Bento handles this for you

Building a model router works. We just showed you how. But building it is one thing. Maintaining it across model updates, pricing changes, new model releases, and evolving team workflows is another.

Bento has model routing built in. Every task gets analyzed in real-time. Simple tasks go to faster, cheaper models. Complex tasks get escalated to a frontier model when the stakes justify it; today that includes Claude Fable 5.1, Claude Opus 5.5 and GPT-6 Astra, among others. You can also set a quality level (Max, Standard or Economy) or pin a model. No configuration required. No classifier to train. No cost-tracking scripts to maintain.

  • Automatic complexity scoring on every task
  • Real-time routing to the optimal model
  • Built-in usage reports so you can see where your credits go
  • Teams don't need to think about model selection. The system handles it.

If you'd rather ship than build infrastructure, Bento handles model routing out of the box.

Model routing, handled.

Bento picks the right model for every task. Your team ships faster, your bill stays predictable.

Start with $5 free

Nothing to set up

Frequently Asked Questions

No. For 70 to 80 percent of typical development tasks, Sonnet produces equivalent results. Opus shines on complex reasoning and multi-step tasks. For everything else, you're paying 2x more for the same output.

30 to 50 percent on typical development workflows at current prices. Content-heavy workflows can see 50-60% savings. The exact number depends on your task mix, but the pattern holds across every scenario we've tested.

Not if you route correctly. Each model gets full context for its task. The key is matching complexity to capability, not using the same model for everything out of habit.

Yes. Use the --model flag to specify per-session, or build a wrapper script that routes based on task type. Level 3 in our skill breakdown covers this in detail.

Current Claude models use adaptive thinking: the model decides how much to think, steered by an effort level (/effort in Claude Code). Thinking can't be turned off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable, and thinking tokens bill as output. The routing principle still applies: save high effort for complex tasks on Opus or Fable, and run simple tasks at low effort.

For simple tasks like formatting, boilerplate, commit messages, and quick completions, yes. For anything requiring reasoning about code logic or multi-step problem solving, use Sonnet or Opus.

Bento's router updates automatically with new models and pricing, across providers. Building your own works but requires ongoing maintenance, classifier tuning, and keeping up with Anthropic's model releases. Bento handles all of that automatically.

Make anything. One subscription.

Posts, reels, ads, apps and games, made with the best AI.

Free credits to try it all. Nothing to set up.

Related guides