Anthropic shipped Claude Sonnet 4 and Claude Opus 4 on May 22, 2025, and with them a design decision that has outlasted the launch benchmarks: reasoning depth became a request parameter rather than a product tier. Both models run the same weights in an instant mode and in an extended-thinking mode, selected per call. Eighteen months of production use have turned that flexibility into a budgeting problem, particularly for teams running multi-file software agents where a single task can span dozens of tool calls, hours of wall-clock time, and a token bill that scales with how carefully the model is asked to think.
Hybrid Thinking as a Per-Request Routing Decision
Extended thinking is enabled with a thinking object carrying {"type": "enabled", "budget_tokens": N}, where N starts at 1,024 tokens and max_tokens must be set above the budget. In instant mode the same endpoint answers without a reasoning pass, at latencies close to conventional chat completions. Anthropic does not expose raw chain of thought for Claude 4; the API returns summarized thinking blocks, while billing counts the full reasoning pass as output tokens at the model’s output rate. That asymmetry, summarized visibility against full-price billing, is the source of most cost surprises in production.
The more consequential change for coding agents is interleaved thinking, gated behind the interleaved-thinking-2025-05-14 beta header. Claude 3.7 could reason only before its first tool call. Claude 4 can think after each tool result, which matters when an agent reads a file, runs a test, and then has to revise a plan built on stale assumptions. Combined with parallel tool use, where the model issues several independent calls in one turn, interleaved reasoning shortens the read-edit-test loop that dominates multi-file work. The operational catch is strict: thinking blocks must be returned unmodified in the assistant turn during tool-use loops, and stripping them produces an API error rather than a silent fallback.
Model Line and Vendor-Reported Figures
Sonnet 4 and Opus 4 launched at nearly identical SWE-bench Verified scores, 72.7 percent and 72.5 percent respectively, which initially pushed buyers toward Sonnet 4’s one-fifth output price. Opus 4’s argument was endurance rather than peak score: Anthropic cited a customer test in which the model sustained a complex open-source refactor for roughly seven hours, and Opus 4 posted 43.2 percent on Terminal-bench against Sonnet 4’s 35.5 percent. Later 2025 refreshes moved the numbers without changing the architecture.
| Model (release) | Price per MTok, input / output | Context / max output | SWE-bench Verified | Thinking posture |
|---|---|---|---|---|
| Claude Sonnet 4 (May 2025) | $3 / $15 | 200K / 64K | 72.7% | Hybrid, opt-in per request |
| Claude Opus 4 (May 2025) | $15 / $75 | 200K / 32K | 72.5%; 79.4% with parallel compute | Hybrid, opt-in |
| Claude Opus 4.1 (Aug 2025) | $15 / $75 | 200K / 32K | 74.5% | Hybrid |
| Claude Sonnet 4.5 (Sep 2025) | $3 / $15 | 200K standard, 1M beta / 64K | 77.2% | Hybrid, 1M beta |
| Claude Haiku 4.5 (Oct 2025) | $1 / $5 | 200K / 64K | 73.3% | Hybrid |
All benchmark figures are vendor-reported. Sonnet 4.5 matters most to procurement: it matched or beat Opus 4.1 on the same evaluation at one-fifth the output price, and Haiku 4.5 compressed the ladder from below, landing within 4 points of Opus 4.1 at $1/$5.
Operational Analysis: Cache Economics and Long-Horizon Stability
Prompt caching decides whether an agent loop is affordable. Cache reads bill at 0.1x base input price; writes bill at 1.25x with the default five-minute TTL and 2x with the extended one-hour TTL. The arithmetic is unforgiving in both directions. A five-minute write repays its premium after roughly one cached read, since a 0.25x write premium is offset by 0.9x saved per read; a one-hour write needs slightly more than one. In practice, well-structured coding agents hold a stable prefix of system prompt, tool schemas, repository map, and lint configuration, and push volatile content such as diffs and test output to the tail. Teams that do this report cache read ratios above 80 percent on long sessions. Teams that reorder tool definitions between calls pay full input price on every turn. Hit rates vary widely by harness, and Anthropic publishes no aggregate figure.
Long-horizon stability has improved through scaffolding more than through weights. The Claude Agent SDK, context editing, a memory tool, subagent delegation, and compaction in Claude Code all address the same failure mode: a monorepo refactor outgrows the 200K-token window, and summarization quietly discards the constraint that mattered. Independent long-context evaluations show accuracy degrading well before the nominal context limit, often once the working set passes roughly 100K tokens. Opus 4’s advantage on multi-hour tasks is real but narrow, and it is purchased at $75 per million output tokens with thinking included.
Limitations and Trade-Offs
Cost concentration on Opus tiers is the first constraint. A single Opus 4 call with a 20,000-token thinking pass and a 2,000-token answer bills about $1.65 in output alone before cached input is counted. An agent making forty such calls on one refactor costs more than a developer hour in most markets, which is why production routers reserve Opus for planning and escalation and default to Sonnet or Haiku for edits.
Thinking-budget variance is the second. The model is not obliged to consume the budget, and identical prompts can vary by multiples in reasoning tokens; setting the budget too low truncates the reasoning pass and can return a partial patch mid-edit. Teams need headroom plus validation on the output, not just a budget cap.
Context degradation on sprawling monorepos is the third. Positional bias, compaction loss, and cache invalidation interact: any edit to a file inside the cached prefix forces a rewrite, and a large enough diff can invalidate the whole prefix in one turn. Chunking by package or service beats one heroic context window.
Throughput ceilings are the fourth. Tier 1-3 rate limits remain a hard gate, with a 50 requests-per-minute baseline at Tier 1 and input-token-per-minute caps in the tens of thousands; Opus ceilings are materially tighter than Sonnet’s. Batch API discounts of 50 percent help offline sweeps but not interactive agents. Finally, commercial terms bar using model outputs to train competing systems, a clause that procurement teams must reconcile with internal data policies and zero-data-retention arrangements.
What to Watch Next
- Whether interleaved thinking exits beta, and whether summarized thinking blocks ever bill at a discounted rate.
- Whether open-weight coding models in the 70-75 percent SWE-bench range force Opus-tier pricing down.
- Whether context editing and compaction acquire fidelity benchmarks, rather than being tuned by anecdote.