Aug 23, 2026

Claude Sonnet 5: API pricing, specs, and agent evaluation

Claude Sonnet 5 targets coding and long-running agents. Review its API changes, temporary pricing, 1M-token context, and production evaluation plan.

MODEL EVALUATION8 min readThe Currai team / Research

Claude Sonnet 5 is Anthropic's June 2026 Sonnet model for coding, tool use, and long-running agent work. It exposes a one-million-token context window, adaptive thinking, and the API model ID claude-sonnet-5.

Anthropic positions it close to Opus-class performance on some agentic tasks at a lower price. That claim makes Sonnet 5 worth testing, but it does not remove the need to evaluate the complete application around it.

Claude Sonnet 5 specs at a glance

SpecificationClaude Sonnet 5
Release dateJune 30, 2026
API model IDclaude-sonnet-5
Context window1,000,000 tokens
Maximum synchronous output128,000 tokens
InputsText and images
ThinkingAdaptive by default
Effort levelsLow, medium, high, xhigh, max
Main workloadsCoding, agents, professional knowledge work

Introductory API pricing is $2 per million input tokens and $10 per million output tokens through August 31, 2026. Anthropic says standard pricing becomes $3 input and $15 output after that date. Budget forecasts should also account for prompt caching, batch discounts, tools, and the number of steps in an agent trajectory.

The tokenizer change affects real cost

Anthropic reports that the updated tokenizer can map the same input to roughly 1.0 to 1.35 times as many tokens, depending on the content. A lower headline price can therefore produce a different bill than expected.

Replay representative prompts and record actual input, cached-input, thinking, and output usage. Compare cost per completed task, not a spreadsheet built from one synthetic prompt.

Adaptive thinking changes the tuning surface

Sonnet 5 chooses how much reasoning to use within the configured effort level. Higher effort can improve difficult tasks, but may add latency and token cost. The best setting often varies by route:

RouteReasonable starting point
Classification or extractionLow
Grounded support answerMedium
Multi-tool workflowHigh
Hard repository-wide coding taskxhigh, then compare with Opus

Routing should be evidence-driven. A single global effort setting usually overpays for easy work or underpowers difficult work.

What to test before migrating

Freeze the prompt, tools, retrieval corpus, runtime, and evaluators. Then replay the same production-derived dataset on the old and new model.

Measure:

  1. End-to-end task completion
  2. Tool choice, arguments, and ordering
  3. Groundedness and citation accuracy
  4. Policy compliance and escalation
  5. Latency to first useful output and total duration
  6. Token usage and cost per successful outcome
  7. Recovery from failed tools or incomplete context

Coding evaluations should include tests, hidden assumptions, brownfield code, and the ability to verify a fix. Customer-facing evaluations should include ambiguous requests, angry users, stale knowledge, and actions that require approval.

Long context is a capability, not a retrieval strategy

A million-token window can hold a large repository or document set, but it can also hide the relevant evidence and increase cost. Compare three modes:

  • Full context for tasks that genuinely require global understanding
  • Retrieved context for focused questions
  • Cached stable context plus newly retrieved evidence

Track which evidence the answer actually used. A correct-looking response that ignored the authoritative source is a future regression waiting to happen.

Monitor Sonnet 5 in production

Capture every model call, tool result, retry, error, and final user outcome. Slice quality by route and effort level. A model can improve coding while regressing on support tone, or improve average quality while increasing tail latency enough to hurt users.

Currai connects production traces to evaluations and alerts so teams can test Sonnet 5 against Sonnet 4.6, Opus, or other providers without losing the exact evidence behind a score. Start with the Currai integration skill.

Sources and further reading

03

Keep going with nearby topics from the Currai blog.