# Claude Sonnet 5 vs DeepSeek-V4 (2026): side-by-side comparison Source: [GLAD-AI-TOR](https://glad-ia-tor.com) · Full page: https://glad-ia-tor.com/vs/claude-sonnet-5-vs-deepseek-v4 Arena: llm-models · Crowd scores are live visitor verdicts (one per person per tool, never paid, Bayesian-smoothed). ## At a glance | | Claude Sonnet 5 | DeepSeek-V4 | |---|---|---| | Price | $15/1M out ($10 intro until 2026-08-31) | $0.87/1M out | | Crowd score | 57% (3 votes) | 57% (3 votes) | | provider | Anthropic | DeepSeek | | contextWindow | 1M tokens (128K max output) | 1M tokens (384K max output) | | priceIn | $3/1M in ($2 intro until 2026-08-31) | $0.435/1M in (cache hit $0.003625) | | priceOut | $15/1M out ($10 intro until 2026-08-31) | $0.87/1M out | | modalities | text, vision (image input, text output) | text only | | openWeights | no | yes | | reasoning (1-5) | 4.5 | 4.5 | | coding (1-5) | 4.5 | 4.5 | | writing (1-5) | 4.5 | 3.5 | | speed (1-5) | 4 | 3 | | valueForMoney (1-5) | 4.5 | 5 | ### Claude Sonnet 5 > Anthropic's most agentic Sonnet: near Opus 4.8 quality on coding and agents at $3/$15 with 1M context Strengths: - Large agentic gains over Sonnet 4.6: Terminal-Bench 2.1 80.4% vs 67.0%, OSWorld-Verified 81.2% vs 78.5%, SWE-bench Pro 63.2% vs 58.1% - Matches Opus 4.8 on knowledge work (GDPval-AA v2: 1,618 vs 1,615) and nearly ties it on Humanity's Last Exam with tools (57.4% vs 57.9%) at 60% of Opus 4.8 pricing (40% during the intro window) - 1M token context window and 128K max output; introductory pricing of $2/$10 per 1M tokens through Aug 31, 2026 - Persistent self-verifying agent behavior: hands-on reviews note it tests its own code and iterates on hard problems until solved, unlike Sonnet 4.6 Weaknesses: - New tokenizer inflates token counts roughly 30% for the same text (1.0-1.35x per Anthropic; ~1.4x English, ~1.28x Python measured by Simon Willison), raising effective cost despite the unchanged sticker price - Verbose and token-hungry: ~$2.29 per task vs ~$1.20 for Sonnet 4.6 in independent tests (ranked 101st of 161 for cost efficiency); at high effort cost-per-task can exceed Opus 4.8 - Measurably slower than Sonnet 4.6 on small routine edits and prone to over-engineering simple tasks (CodeRabbit hands-on review) Verdict: Choose Sonnet 5 if you run coding, terminal or computer-use agents and want near Opus 4.8 quality at Sonnet prices, especially during the $2/$10 intro window; it is a strict upgrade over Sonnet 4.6 at low and medium effort. Budget for the new tokenizer and its verbosity: real per-task costs run well above Sonnet 4.6, and at the highest effort levels Opus 4.8 can be the better deal per solved task. Avoid it for latency-sensitive small edits or pipelines that rely on temperature and top_p, which now error. Sonnet 4.6 remains the pragmatic pick for high-volume tiny-diff workloads. Full review: https://glad-ia-tor.com/tool/claude-sonnet-5 · Markdown: https://glad-ia-tor.com/tool/claude-sonnet-5.md ### DeepSeek-V4 > Open-weights 1.6T MoE with 1M-token context and near-frontier agentic coding at $0.87 per 1M output tokens Strengths: - 1M-token context window (8x the 128K of V3.2) with up to 384K output tokens, standard on the official API - Aggressive pricing: $0.435/$0.87 per 1M tokens (V4-Pro), roughly 28.7x cheaper per output token than Claude Opus 4.8; cache-hit input drops to $0.003625/1M (over 99% discount) - MIT-licensed open weights for both V4-Pro and V4-Flash on Hugging Face: commercial use, fine-tuning and redistribution allowed - Open-source SOTA on agentic coding: 80.6 on SWE-bench Verified (Think Max config), tied with Gemini 3.1 Pro, plus Codeforces rating 3206 (~rank 23 vs humans) Weaknesses: - Intermittent malformed tool calls: function calls sometimes emitted as plain text in content instead of the tool_calls field (GitHub issue deepseek-ai #1244) - Thinking mode breaks long multi-turn tool-call chains with 400 errors in agent frameworks (OpenClaw issue #72044, fix still incomplete) - Developers report it fabricating nonexistent APIs in custom codebases and acting on hallucinated user input in agent loops Verdict: Choose DeepSeek-V4 if you want near-frontier reasoning and agentic coding at 3x to nearly 30x below Claude Opus or GPT-5.5 pricing, or if MIT-licensed weights for self-hosting and fine-tuning matter to you. It is a decisive upgrade over V3.2: 8x longer context, far cheaper long-context inference and stronger coding, and the legacy deepseek-chat/reasoner endpoints are deprecated on July 24, 2026 anyway. Avoid it for production agents that depend on rock-solid multi-turn tool calling, where users still report malformed tool calls and fabricated APIs, and for any vision or audio work since it is text only. Latency-sensitive apps should also test first, as its verbosity and mid-pack 54.6 tok/s output speed offset some of the cost advantage, and budget for the peak-hour price doubling arriving with the official mid-July release. Full review: https://glad-ia-tor.com/tool/deepseek-v4 · Markdown: https://glad-ia-tor.com/tool/deepseek-v4.md ## More Full llm-models ranking: https://glad-ia-tor.com/hall-of-fame/llm-models --- This markdown version exists for AI assistants; the canonical page is https://glad-ia-tor.com/vs/claude-sonnet-5-vs-deepseek-v4