Cost report / Updated 2026-07-06
Claude Cost, Context, and Latency: The July 2026 Model Tradeoff Report
The cheapest model on a token card is not always the cheapest model for an agent. Context windows, prompt caching, effort settings, retries, and output verbosity can dominate the invoice.
"Tuning effort is often a better lever than switching models."Anthropic model-selection docs, primary source
The rate card is only the first line
Anthropic's current model table places Fable 5 at $10 input and $50 output per million tokens, Opus 4.8 at $5 and $25, Sonnet 5 at $3 and $15 after its introductory period, and Haiku 4.5 at $1 and $5. GPT-5.6 preview pricing is listed by OpenAI as Sol $5 and $30, Terra $2.50 and $15, and Luna $1 and $6 per million tokens.
Those numbers are useful, but agent workloads rarely map cleanly to "one prompt in, one answer out." Long-running coding agents read repositories, update context, call tools, retry, produce patches, and sometimes summarize their own traces. Output-heavy models can become expensive even when input price is moderate.
Context window is capacity, not free value
Anthropic lists Fable 5, Opus 4.8, and Sonnet 5 with 1M-token context windows and 128k max output. That makes them attractive for large repositories, document bundles, and multi-turn agents. It does not mean every task should carry a million tokens.
A better cost plan separates static context from dynamic task state. Prompt caching can help when many runs reuse the same instructions or repository summary. Shorter context can still win when the relevant files are retrieved precisely.
Latency and effort are now product settings
For recent Claude models, effort can trade intelligence for latency and cost. Anthropic says Opus 4.8 defaults to high effort and recommends xhigh for difficult coding or long-running asynchronous work. Sonnet 5 inherits the same broader direction: users can navigate a cost-performance range rather than picking one fixed behavior.
OpenAI's GPT-5.6 Sol preview similarly adds max and ultra modes. That means 2026 model comparison is less like choosing one engine and more like choosing an engine plus its operating point.
The procurement test
For each candidate model, measure total cost per accepted result. Include failed attempts, human-review time, extra tool calls, and retries after refusal or policy routing. A model with a higher token price can be cheaper if it finishes in fewer turns and needs less human repair.
This is why Sonnet 5 deserves a separate slot in Claude evaluations. Anthropic is explicitly selling it as a cost-performance model, not simply a smaller Opus. A rational test compares Sonnet 5 high or xhigh against Opus 4.8 high and GPT alternatives on the same budget cap.
FAQ
Which Claude model is cheapest for coding agents?
Haiku is cheapest on the rate card, but Sonnet 5 may be the better low-cost coding-agent candidate when frontier behavior is needed. Always measure cost per accepted task.
Does a 1M-token context window mean I should send 1M tokens?
No. Treat it as ceiling capacity. Retrieval, compaction, and caching often matter more than filling the window.
Cite this page
Claude Reports. "Claude Cost, Context, and Latency: The July 2026 Model Tradeoff Report." Updated 2026-07-06. https://claudereports.com/reports/cost-context-latency/