When you design agentic workflows and production software engineering systems, selecting the right Claude model to build with requires evaluating model tiers based on the cost per completed task rather than isolated pricing.
Balancing raw model capability against effort parameter tuning, lifetimes, and context window management dictates your real-world operational spend.
For most agentic and production software engineering workloads, you should select Claude Opus 5.5 operating at its default medium effort setting as your initial baseline. It delivers high-tier task execution at a fraction of the cost per completed attempt compared to scaling to higher pricing tiers or relying on unoptimized fallback strategies.
Selecting lower per-token rates on lighter models often increases your net spend if lower pass rates trigger repeated agent loops and expensive error cascades.

The current Claude model lineup: From Haiku to Fable
When you map out the current Claude model lineup, your choices span from lightweight execution models to high-capability frontier reasoning engines.
Claude Haiku 5.5 serves high-volume, latency-sensitive tasks where you can check outputs algorithmically or programmatically.
Operating at its default medium effort setting, Haiku 5.5 scores 85% on GPQA Diamond and achieves
a $0.011 cost per passed attempt on Managed Agents workflows. On the Messages API, however, Haiku
5.5 applies a 5x token pricing penalty whenever your request context exceeds 100,000 tokens,
requiring you to implement proactive conversation compaction to keep operational costs low. Next in
line, Claude Sonnet 5.5 acts as your balanced workhorse, priced at $2.00 per million
tokens (MTok) input, $10.00 per MTok output, and $0.10 per MTok cache reads. On the SWE-bench Pro
benchmark, Sonnet 5.5 solves 80.3% of tasks at medium effort for $0.07 per solved task, and 87.6%
of tasks at its default high effort setting for $0.11 per solved task.
Claude Opus 5.5 serves as your primary baseline for complex agentic workloads, priced
at $4.00 per MTok input, $20.00 per MTok output, and $0.20 per MTok cache reads. When you analyze
SWE-bench Pro evaluation metrics across effort tiers, Opus 5.5 demonstrates clear scaling
performance: low effort solves 87.4% of tasks at $0.12 per solved task; default medium effort
solves 92.8% at $0.22 per solved task; high effort solves 95.3% at $0.31 per solved task; and
xhigh effort reaches 96.7% at $0.74 per solved task.
At the top tier, Claude Fable 5.2, Fable 5.1, and Mythos 5.2 define the frontier tier for long-horizon reasoning and complex problem-solving. Fable 5.2 solves 96.3% of SWE-bench Pro tasks at high effort (its Messages API default) for $1.39 per solved task, and scores 57.7% on DeepResearch Bench II at high effort for $4.82 per task. The Fable tier features a reduced cache read multiplier of 0.025x the input rate. This yields a cache read cost of $0.25 per MTok on Fable 5.1 (based on its $10.00 per MTok input price) and $0.40 per MTok on Fable 5.2 (based on its $16.00 per MTok input price).
Picking a model by task: Why Opus 5.5 is the default starting point
If you evaluate model performance solely on per-token rate cards, you will make suboptimal architectural decisions. A model with a higher per-token price often completes complex tasks in far fewer agent turns and tool calls, yielding a significantly lower net cost per completed task.
For example, when you run Claude Opus 5.5 at default medium effort, it matches the task completion
performance of Claude Fable 5.1 at default high effort on SWE-bench Pro (92.8% versus 92.3%) while
cutting your cost per solved task by roughly 80% ($0.22 versus $1.19). Similarly, running Opus 5.5
at low effort matches Sonnet 5.5's default high effort accuracy (87.4% versus 87.6%) while
adding only a ~7% cost premium per solved task ($0.12 versus $0.11).
Production spend in autonomous workloads concentrates heavily within a long tail of complex inputs. Data from the WideSearch benchmark demonstrates this distribution clearly: across a 20-problem evaluation run, just two tail problems (10% of the workload) generated 43% of total token spend, with a single problem accounting for 30% of the entire bill.
When an under-powered model fails on difficult edge cases, your system incurs full token charges for the failed initial attempts, followed by compounding spend on retries and downstream error recovery. By establishing Opus 5.5 as your starting baseline—and configuring high effort or fallbacks on failed tail tasks—you ensure your system possesses sufficient baseline reasoning depth to resolve tail problems cleanly before expensive retry cascades compound your bill.

The Effort dial: Tuning reasoning depth before jumping tiers
You can use the effort parameter to control reasoning depth, tool usage, and internal
thoroughness without changing your underlying model tier.
On the Messages API, high effort is the default setting for Sonnet 5.5 and Fable 5.2, whereas
medium effort is the default for Opus 5.5 and Haiku 5.5. Tuning effort down reduces output
generation latency and token volume, while raising effort allows models to run extended self-review
loops and execute additional tool iterations.
Re-running failures policy
For workloads with checkable output conditions, such as unit test suites or deterministic verifiers, you should implement a dynamic effort policy rather than a fixed static setting. By running all initial execution attempts at low effort and automatically re-running failing attempts at high effort, you optimize both cost and pass rates. On SWE-bench Pro using Opus 5.5, a low-then-high failure re-run policy achieves a ~97% task resolution rate at an average cost of $0.17 per task. This matches or exceeds the pass rate of running every task at fixed high effort ($0.29 per task) while achieving a ~40% reduction in overall system spend.
Latency vs. time awareness
In long-horizon agent execution, you can inject explicit temporal constraints to cut latency and compute spend without dropping model tiers. When you explicitly prompt the model that execution speed matters while supplying the exact elapsed time on every request, you cut Opus 5.5 single-agent execution time by 47% and reduce task cost by 60% on median DRACO research benchmarks. This optimization requires only a minor score trade-off of 4.1 points, giving you a direct mechanism to bound cost and execution time on complex research tasks.

Context cost vs latency trade-offs: Caching, Fast Mode, and prompt tiers
Prompt caching is your primary lever for reducing operational spend in multi-turn agent loops.
Because agent conversations re-send accumulated historical context on every turn, prompt caching charges a write premium (1.25x input price for 5-minute lifetimes, 2.0x for 1-hour lifetimes) on new tokens, but re-reads cached context at steep discounts (0.05x on Opus 5.5 and Sonnet 5.5; 0.025x on Fable 5.2).
On DeepResearch Bench II agent runs, prompt caching reduces net task costs by 4.8x to 7.2x.
As a practical rule of thumb, migrate from the default 5-minute cache to the 1-hour cache duration when more than 1 in 20 requests follows a pause between 5 and 60 minutes.
To prevent cache expiration without paying the 1-hour cache write multiplier on models like Opus 5.5 or Sonnet 5.5, you can issue keep-alive requests every 4 minutes. Sending a keep-alive request every 4 minutes with max_tokens: 0 refreshes the 5-minute cache lifetime without generating output tokens or incurring output charges. You must preserve original request headers (such as anthropic-beta) during keep-alive calls; otherwise, beta-gated fields in the replayed body will be rejected. Note that max_tokens: 0 keep-alive requests return an API error if your request has thinking.type: "enabled", , or forced tool choices active, so you must select the 1-hour cache duration for those specific workloads instead.
import anthropic
client = anthropic.Anthropic()
def send_keep_alive(last_request_params: dict, headers: dict = None):
keep_alive_params = last_request_params.copy()
keep_alive_params["max_tokens"] = 0
keep_alive_params.pop("stream", None)
extra_headers = headers if headers else {}
response = client.messages.create(
extra_headers=extra_headers,
**keep_alive_params
)
return response.usageWhen your system requires accelerated output delivery, Fast Mode increases generation throughput up to 2.5x higher output tokens per second (OTPS) on Opus 5.5, Fable 5.2, and Mythos 5.2. Fast Mode applies a 2x price multiplier ($8 input / $40 output per MTok on Opus 5.5; $16 input / $80 output on Fable 5.2). It does not improve time to first token (TTFT), and toggling Fast Mode mid-conversation triggers a prompt cache miss because requests operating at different speeds do not share cached prefixes.
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-opus-5-5",
max_tokens=4096,
speed="fast",
messages=[
{"role": "user", "content": "Refactor this module to use dependency injection"}
]
)Maintain strict context hygiene by setting max_tokens appropriately across your agent fleet. Setting max_tokens to 64,000 prevents truncated turns without increasing average cost per solved task. Furthermore, when you audit your system prompts to eliminate legacy instructions written for older model generations (such as "verify twice before submitting"), you can achieve up to a 14% net spend reduction during model upgrades by preventing redundant tool calls and excessive generation.
Mixing models: Multi-model architectures in production
Advisor strategy
In advanced production setups, you can deploy multi-model patterns to balance intelligence against execution cost. The Advisor architecture uses a lower-cost primary executor (such as Opus 5.5 or Sonnet 5.5) that consults a frontier advisor model (such as Fable 5.1) on-demand via the advisor tool for difficult reasoning steps. On internal agentic-coding benchmarks, pairing an Opus 5.5 executor at high effort with a Fable 5.1 advisor increased task accuracy to 90.1% ($2.92 per attempt) compared to 88.4% for Opus 5.5 high operating alone ($1.38 per attempt). However, if your executor rarely consults the advisor, the attached tool definition (roughly 1,000 tokens per request) introduces prompt token overhead across short requests that you must monitor.
Orchestrator strategy
The Orchestrator pattern allows you to delegate bulk parallel execution across files or context boundaries larger than a single request window. In a 22-million-token Python defect-search benchmark spanning 201 code repositories, an Orchestrator model (Opus 5.5 at high effort) assigned subtasks to lower-cost workers (Sonnet 5.5 at default effort). This delegated configuration achieved an F1 score of 0.831, matching the accuracy of Opus 5.5 running alone at medium effort (0.827) while cutting your total spend by 31% ($139 versus $200–$236 per full run).

The verdict: Start with Opus 5.5 and optimize against real benchmarks
Start your production development with Claude Opus 5.5 configured at its default medium effort
level.
This baseline balances task completion capability against token spend, providing optimal cost-per-completed-task performance across software engineering and agentic workloads.
Follow a strict sequential optimization order before modifying your model tiers: first, enable prompt caching across all multi-turn interactions; second, audit system prompts to remove legacy verbose instructions; third, sweep effort parameters and implement low-effort initial runs with high-effort retries on failure; finally, introduce Fast Mode or multi-model architectures (Advisor or Orchestrator) only when empirical benchmarks on your target workload validate the added architectural complexity.
References
- Which Claude model should you build with? Fable, Opus, Sonnet, or Haiku — claude.dev Blog
- What a task costs on Opus 5.5 — claude.dev Blog
- Safely scaling multi-agent teams with Claude Fable 5.2 — claude.dev Blog
- How the Claude Code team thinks about verification — claude.dev Blog
- Optimizing for cost and intelligence — Claude Platform Docs
- Fast mode — Claude Platform Docs