DeepSeek-R1 vs Claude 3.5 Sonnet was the defining model matchup for coding agents in early 2025: an open-weight reasoning model that matched OpenAI’s o1 against the model most agent builders had standardised on. The published numbers tell a clearer story than the hype did. On SWE-bench Verified the two were within two points, while on algorithmic work R1 was in a different league.
That is the comparison this page now documents, using the benchmarks both vendors published. It also covers the part that matters most in 2026: both models have been retired from their first-party APIs, and the hybrid routing idea they inspired is now how most agent stacks run.
DeepSeek-R1 vs Claude 3.5 Sonnet: The Published Benchmarks
The most useful single source is the comparison table in DeepSeek’s R1 model card, which puts R1 next to Claude-3.5-Sonnet-1022, the upgraded Sonnet released in October 2024. These are vendor-reported numbers.
| Benchmark | Claude 3.5 Sonnet (1022) | DeepSeek-R1 |
|---|---|---|
| SWE-bench Verified (resolved) | 50.8% | 49.2% |
| Aider-Polyglot (accuracy) | 45.3% | 53.3% |
| LiveCodeBench (pass@1, CoT) | 33.8% | 65.9% |
| Codeforces rating | 717 | 2,029 |
| AIME 2024 (pass@1) | 16.0% | 79.8% |
| MATH-500 (pass@1) | 78.3% | 97.3% |
| GPQA Diamond (pass@1) | 65.0% | 71.5% |
(Source: DeepSeek-R1 model card, January 2025, vendor-reported)
Anthropic’s own figure for the upgraded model, from its October 2024 launch post, was 49.0% on SWE-bench Verified, up from 33.4% for the original June 2024 release. DeepSeek’s 50.8% comes from its own evaluation setup, so treat the gap between the two models as a tie.
The honest read: on repository-level bug fixing they were equals, and on algorithmic reasoning R1 was dramatically ahead.
Logical debugging vs routine edits
The table explains the pattern agent builders reported at the time. Tasks that look like contest problems, such as optimising an algorithm or reasoning through a tricky invariant, favour R1’s reinforcement-learned chain of thought. The 2,029 versus 717 Codeforces rating is not a small edge.
Routine repository work is different. Fixing a real GitHub issue is mostly about finding the right file, reading enough context and making a small, correct edit. That is what SWE-bench Verified measures, and there Sonnet’s directness matched R1’s deliberation.
Agent Latency: Reasoning Tokens vs Direct Answers
R1 is a reasoning model. It writes a chain of thought before the final answer, and DeepSeek evaluated it with a maximum generation length of 32,768 tokens and recommended a temperature between 0.5 and 0.7 to prevent endless repetitions. Claude 3.5 Sonnet answered directly.
Agent loop shape (illustrative):
+-----------------------------------------------------------+
| Sonnet: Goal -> Read File -> Edit -> Test -> Done |
| DeepSeek-R1: Goal -> Think -> Read -> Think -> Edit -> |
| Test -> Think -> Fix Edit -> Done |
+-----------------------------------------------------------+
Every reasoning step adds output tokens before the first useful line of code. In an inline editor that wait is felt on every keystroke-sized request. In a background job, such as a nightly security audit or a long refactor, nobody is watching the spinner.
That is the practical split. Use the reasoning model where latency is invisible and correctness is hard; use the direct model where a human is waiting.
There is a second cost to long reasoning in an agent loop that benchmark tables hide. Every thinking pass lands in the transcript the agent carries into its next turn unless the harness strips it. DeepSeek’s API returned the reasoning in a separate field so clients could drop it, but agents that naively appended everything burned context fast. If you self-host R1 today, check that your harness discards old reasoning before each new turn.
DeepSeek-R1 vs Claude 3.5 Sonnet API Pricing
Price was the reason R1 made headlines. From DeepSeek’s R1 release note and Anthropic’s Claude 3.5 Sonnet announcement:
| Model | Input (per 1M) | Cached input (per 1M) | Output (per 1M) |
|---|---|---|---|
DeepSeek-R1 (deepseek-reasoner) | $0.55 | $0.14 | $2.19 |
| Claude 3.5 Sonnet | $3.00 | n/a in launch post | $15.00 |
(Sources: DeepSeek API Docs, Jan 20, 2025; Anthropic, Jun 21, 2024)
R1’s output tokens were about 85% cheaper and its input about 82% cheaper. The catch is that a reasoning model spends more output tokens per task, so the real per-task gap is smaller than the per-token gap. How much smaller depends entirely on how long your agent lets the model think.
R1 also shipped under the MIT license with open weights, 671B total parameters and 37B active per token, per the model card. For teams with GPUs, that meant no per-token bill at all, at the cost of serious hardware, as covered in our DeepSeek-R1 production analysis.
Both Models Are Retired: What Replaced Them in 2026
This is the update that matters if you landed here from a search.
- Claude 3.5 Sonnet was retired on October 28, 2025, for both the June and October 2024 versions, according to Anthropic’s model deprecations page. Requests now fail. Anthropic’s recommended replacement is Claude Sonnet 5.5.
- DeepSeek-R1 on the API went away when DeepSeek retired
deepseek-chatanddeepseek-reasonerafter July 24, 2026, 15:59 UTC, per its V4 Preview release note. The API now servesdeepseek-flash(DeepSeek V4.1 Flash 1017) anddeepseek-v4-pro.
Current first-party prices, per DeepSeek’s pricing page, are $0.30 input / $1.20 output per million tokens for deepseek-flash at peak, with off-peak hours at half price. Claude Sonnet 5.5 is $2 input / $10 output. Our DeepSeek V4.1 Flash 1017 breakdown has the current benchmarks, and the AI model pricing tracker keeps the numbers up to date.
R1’s weights are still on Hugging Face under MIT, so self-hosting remains possible. For most teams in 2026, though, a current model will beat it on both quality and cost.
The Verdict: The Hybrid Agent Stack Still Holds
The question was never really “which model should I use?” It was “how should I route my queries?”, and that lesson outlived both models.
- Interactive editing. Route to a fast, direct model where a human is waiting. In 2025 that was Claude 3.5 Sonnet; today it is something like Claude Sonnet 5.5 or Haiku 5.5.
- Deep debugging, audits and background jobs. Route to a reasoning model with a large thinking budget. Latency does not matter when the job runs overnight.
- Cost-sensitive bulk work. Route to the cheapest model that passes your own evals. DeepSeek’s current Flash model is the obvious candidate.
Modern tools build this routing in. GitHub’s model routing in Copilot Fusion and Claude Code’s subagent model overrides both let you send cheap work to cheap models. DeepSeek itself has moved up the stack too: its new Super-Agent prototype is an always-on coding agent, not a model. The R1 vs Sonnet matchup is history, but the routing pattern it taught is still the right default.
(Updated November 4, 2026: corrected this post. The original version described a 1,000-task benchmark run by this blog with success rates of 81.3% for DeepSeek-R1 and 80.8% for Claude 3.5 Sonnet, plus per-task costs of $0.10 and $0.57. No such test was run and those numbers were wrong; 80.8% on SWE-bench Verified was Claude Opus 4.6’s score. The post now uses the vendor-published benchmarks: 49.2% for R1 and 50.8% for Claude 3.5 Sonnet in DeepSeek’s table, 49.0% in Anthropic’s. We also added launch API prices and the 2025 and 2026 retirements of both models.)