llmrelay
// current generation

Opus 5 vs Sonnet 5 for coding

Both are current-generation Claude models with a 1M context window. Opus 5 costs 2.5× more per token. Here is what you actually get for it, and when you do not need it.

Claude Opus 5
Claude Sonnet 5
Input / M (llmrelay)
$2.50
$1.00
Output / M (llmrelay)
$12.50
$5.00
Context window
1M tokens
1M tokens
Max output
128k tokens
128k tokens
Anthropic latency rating
Moderate
Fast
Reliable knowledge cutoff
May 2026
Jan 2026
Adaptive thinking
Yes
Yes

Input / M (llmrelay): Anthropic list is $5 and $2 respectively. Sonnet 5’s $2/$10 list is now Anthropic’s standard price (the 1 September 2026 increase to $3/$15 was cancelled), so our half-list price stays $1.00/$5.00.

Anthropic latency rating: Anthropic's own comparative rating, not our measurement. The scale runs Slower / Moderate / Fast / Fastest.

Reliable knowledge cutoff: Four months of library and framework churn. This is the one spec difference that bites silently — Sonnet 5 will confidently use an API that changed after January.

Prices are llmrelay's, at 50% of official list. Specs are the vendor's own published figures (Anthropic model docs), not our benchmarks. We do not publish scores we cannot source.

Use Opus 5 when

  • +The task depends on recent library behaviour. The May 2026 cutoff versus January is the difference between knowing a breaking change and inventing an API that no longer exists.
  • +You are running long agent trajectories where one wrong turn costs twenty tool calls. Paying 2.5× on a task that would otherwise be retried twice is cheaper than the retries.
  • +You are reviewing or debugging code you did not write, where reading intent matters more than emitting volume.

Use Sonnet 5 when

  • +You are doing volume: batch refactors, test generation, docstrings, migrations across many files. Anthropic rates it Fast against Opus 5's Moderate, and it costs 40% of the price.
  • +The work is well specified. When you already know the answer shape, deeper reasoning buys nothing.
  • +You are inside an interactive editor loop where waiting is the real cost.

The honest answer

Default to Sonnet 5 and escalate. Most people who "need Opus" need it for maybe one task in five, and the honest way to find out is to run the same prompt through both — one llmrelay key covers all of them, so switching is a one-line model-id change.

What this costs you per month

At 50M input and 5M output tokens a month — a realistic heavy agent workload.

Claude Opus 5
$375.00
$187.50/mo
Claude Sonnet 5
$150.00
$75.00/mo

Struck-through column is the vendor's list price for the same traffic. Adjust the numbers on the calculator.