Comparison · Coding
Claude vs DeepSeek for coding
On llmwise Pro, Claude Sonnet 5.5 gets up to 125 messages a month and DeepSeek V4 Pro up to 250 messages a month. We ran the same 5 coding prompts on all 7 Claude models and all 2 DeepSeek models and published every reply: the results, then Claude Haiku 5.5 against DeepSeek V4.1 Flash prompt by prompt, then how Claude and DeepSeek compare on price per message, context and files.
Based on 45 of our test runs on , through OpenRouter with the app's own prompt and settings.
Short answer
In our coding test runs on November 18, 2026, Claude's 7 models passed 33 of 35; Claude Fable 5.2, Claude Fable 5.1 and 4 more each passed 5 of 5. DeepSeek's 2 models passed 10 of 10; DeepSeek V4 Pro and DeepSeek V4.1 Flash each passed 5 of 5. Claude Haiku 5.5 and DeepSeek V4.1 Flash each passed 5 of the 5 prompts, so these coding prompts don't split Claude and DeepSeek; the replies on this page show how they differ.
Claude and DeepSeek on our coding test runs
Every Claude and DeepSeek model in llmwise on our 5 coding prompts: how many replies passed, what each counted as on Pro, and what it cost to run.
| Model | Passed | Hard ones | Messages used on Pro | Cost per reply | Time per reply |
|---|---|---|---|---|---|
| Claude Fable 5.2Anthropic | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0249 | 5.6 s |
| Claude Fable 5.1Anthropic | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0333 | 6.6 s |
| Claude Opus 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0179 | 7.3 s |
| Claude Sonnet 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0051 | 3.2 s |
| Claude Sonnet 5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0101 | 8.0 s |
| Claude Haiku 4.5Anthropic | 3 of 5 | 0 of 2 | 1 each, of 250 a month on Pro | $0.0030 | 3.1 s |
| Claude Haiku 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0004 | 3.0 s |
| DeepSeek V4 ProDeepSeek | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0117 | 29.3 s |
| DeepSeek V4.1 FlashDeepSeek | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0015 | 4.2 s |
Every limit is published. Paid plans also have a monthly fair-use limit on AI cost: Plus $3.75, Pro $7.50, Max $20, Ultra $42, Studio $85. Using every message on your plan at typical sizes stays under it; very large messages and heavy research use it faster. Every limit, explained.
Claude vs DeepSeek, prompt by prompt
Each coding prompt with Claude Haiku 5.5 and DeepSeek V4.1 Flash side by side, as they replied: for each side, the model that passed the most coding prompts (then the most hard ones, then the cheaper).
Coding: Claude Haiku 5.5 passed 5 of 5 and DeepSeek V4.1 Flash 5 of 5. Claude Haiku 5.5 answered 2.7× sooner at the median, 1.3 s against 3.5 s. Claude Haiku 5.5 cost 3.7× less, $0.0020 against $0.0073 for the 5 replies. Claude Haiku 5.5's replies ran 35% longer, in tokens of reply, thinking not counted.
1. Turn a title into a URL slug
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0002 · DeepSeek: 2 of 2 models passed, DeepSeek V4.1 Flash the cheapest at $0.0005. The prompt in full.
Claude Haiku 5.5 and DeepSeek V4.1 Flash both passed this one. DeepSeek V4.1 Flash answered sooner (0.7 s to 1.3 s), and Claude Haiku 5.5's reply cost less ($0.0002 to $0.0005); Claude Haiku 5.5 wrote 112 tokens of reply, DeepSeek V4.1 Flash 121.
Claude Haiku 5.5
Passed: All 7 tests passed.
```javascript function slugify(title) { return String(title) .normalize("NFD") .replace(/[\u0300-\u036f]/g, "") .toLowerCase() .replace(/[^a-z0-9]+/g, "-") .replace(/^-+|-+$/g, ""); } ```926 tokens in, 112 out · 1.3 s · $0.0002 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·
DeepSeek V4.1 Flash
Passed: All 7 tests passed.
```javascript function slugify(title) { return title .normalize('NFD') // split letters from their accents .replace(/[\u0300-\u036f]/g, '') // drop the accent marks (é → e, ñ → n, ü → u) .toLowerCase() .replace(/[^a-z0-9]+/g, '-') // every other run becomes one hyphen .replace(/^-+|-+$/g, ''); // no leading or trailing hyphen } ```696 tokens in, 240 out (119 of them reasoning) · 0.7 s · $0.0005 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·
2. Parse a duration like “1h 30m”
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · DeepSeek: 2 of 2 models passed, DeepSeek V4.1 Flash the cheapest at $0.0005. The prompt in full.
Claude Haiku 5.5 and DeepSeek V4.1 Flash both passed this one. Claude Haiku 5.5 answered sooner (1.2 s to 3.5 s), and Claude Haiku 5.5's reply cost less ($0.0001 to $0.0005); Claude Haiku 5.5 wrote 212 tokens of reply, DeepSeek V4.1 Flash 138.
Claude Haiku 5.5
Passed: All 10 tests passed.
```javascript function parseDuration(text) { if (typeof text !== "string") return null; const s = text.trim(); const match = /^(?:(\d+)\s*h)?\s*(?:(\d+)\s*m)?\s*(?:(\d+)\s*s)?$/.exec(s); if (!match || s === "") return null; const [, h, m, sec] = match; if (h === undefined && m === undefined && sec === undefined) return null; return (Number(h ?? 0) * 3600) + (Number(m ?? 0) * 60) + Number(sec ?? 0); } ```881 tokens in, 212 out · 1.2 s · $0.0001 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·
DeepSeek V4.1 Flash
Passed: All 10 tests passed.
```javascript function parseDuration(text) { if (typeof text !== 'string') return null; const match = /^\s*(?:(\d+)h)?\s*(?:(\d+)m)?\s*(?:(\d+)s)?\s*$/.exec(text); if (!match) return null; const [, h, m, s] = match; if (h === undefined && m === undefined && s === undefined) return null; return (Number(h) || 0) * 3600 + (Number(m) || 0) * 60 + (Number(s) || 0); } ```679 tokens in, 359 out (221 of them reasoning) · 3.5 s · $0.0005 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·
3. Merge overlapping intervals
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · DeepSeek: 2 of 2 models passed, DeepSeek V4.1 Flash the cheapest at $0.0003. The prompt in full.
Claude Haiku 5.5 and DeepSeek V4.1 Flash both passed this one. DeepSeek V4.1 Flash answered sooner (0.7 s to 1.1 s), and Claude Haiku 5.5's reply cost less ($0.0001 to $0.0003); Claude Haiku 5.5 wrote 180 tokens of reply, DeepSeek V4.1 Flash 211.
Claude Haiku 5.5
Passed: All 7 tests passed.
```javascript function mergeIntervals(intervals) { const sorted = intervals .map(([start, end]) => [start, end]) .sort((a, b) => a[0] - b[0] || a[1] - b[1]); const result = []; for (const [start, end] of sorted) { const last = result[result.length - 1]; if (last && start <= last[1]) { last[1] = Math.max(last[1], end); } else { result.push([start, end]); } } return result; } ```876 tokens in, 180 out · 1.1 s · $0.0001 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·
DeepSeek V4.1 Flash
Passed: All 7 tests passed.
```javascript function mergeIntervals(intervals) { if (intervals.length === 0) return []; const sorted = intervals .map((interval) => [interval[0], interval[1]]) .sort((a, b) => a[0] - b[0] || a[1] - b[1]); const merged = [sorted[0]]; for (let i = 1; i < sorted.length; i++) { const [start, end] = sorted[i]; const last = merged[merged.length - 1]; if (start <= last[1]) { if (end > last[1]) last[1] = end; } else { merged.push([start, end]); } } return merged; } ``` `map` copies each pair before sorting, so the input array and its inner arrays are never mutated. Touching intervals merge because the condition is `start <= last[1]`.663 tokens in, 217 out (6 of them reasoning) · 0.7 s · $0.0003 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·
4. Evaluate an arithmetic expression, no eval
Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0013 · DeepSeek: 2 of 2 models passed, DeepSeek V4.1 Flash the cheapest at $0.0035. The prompt in full.
Claude Haiku 5.5 and DeepSeek V4.1 Flash both passed this one. They took about as long (Claude Haiku 5.5 9.3 s, DeepSeek V4.1 Flash 8.9 s), and Claude Haiku 5.5's reply cost less ($0.0013 to $0.0035); Claude Haiku 5.5 wrote 1,063 tokens of reply, DeepSeek V4.1 Flash 727.
Claude Haiku 5.5
Passed: All 15 tests passed.
```javascript function evaluate(expression) { const src = String(expression); // Tokenize: numbers, operators, parentheses. Spaces are skipped. const tokens = []; for (let i = 0; i < src.length; ) { const c = src[i]; if (/\s/.test(c)) { i++; continue; } const m = /^(\d+(?:\.\d+)?|\.\d+)/.exec(src.slice(i)); if (m) { tokens.push({ type: 'num', value: Number(m[1]) }); i += m[1].length; continue; } if ('+-*/^()'.includes(c)) { tokens.push({ type: c }); i++; continue; } throw new Error(`Unexpected character "${c}" at position ${i}`); } // Recursive descent parser. // expr := term (('+' | '-') term)* // term := unary (('*' | '/') unary)* // unary := '-' unary | power // power := primary ('^' unary)? (right-associative, exponent may be signed) // primary := number | '(' expr ')' let p = 0; const peek = () => (p < tokens.length ? tokens[p].type : null); const expect = (type) => { if (peek() !== type) { throw new Error(`Expected "${type}" at token ${p + 1}`); } p++; }; function parseExpr() { let v = parseTerm(); while (peek() === '+' || peek() === '-') { const op = tokens[p++].type; const r = parseTerm(); v = op === '+' ? v + r : v - r; } return v; } function parseTerm() { let v = parseUnary(); while (peek() === '*' || peek() === '/') { const op = tokens[p++].type; const r = parseUnary(); v = op === '*' ? v * r : v / r; } return v; } function parseUnary() { if (peek() === '-') { p++; return -parseUnary(); } return parsePower(); } function parsePower() { const base = parsePrimary(); if (peek() === '^') { p++; return base ** parseUnary(); } return base; } function parsePrimary() { if (peek() === 'num') { return tokens[p++].value; } if (peek() === '(') { p++; const v = parseExpr(); expect(')'); return v; } if (peek() === null) { throw new Error('Unexpected end of expression'); } throw new Error(`Unexpected token "${tokens[p].type}" at token ${p + 1}`); } if (tokens.length === 0) { throw new Error('Empty expression'); } const result = parseExpr(); if (p !== tokens.length) { throw new Error(`Unexpected token "${tokens[p].type}" at token ${p + 1}`); } return result; } ```1,017 tokens in, 2,412 out (1,349 of them reasoning) · 9.3 s · $0.0013 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·
DeepSeek V4.1 Flash
Passed: All 15 tests passed.
```javascript function evaluate(expression) { if (typeof expression !== 'string') { throw new Error('Expression must be a string'); } const s = expression; let pos = 0; function skipSpaces() { while (pos < s.length && /\s/.test(s[pos])) pos++; } // expression := term (('+' | '-') term)* function parseExpression() { let value = parseTerm(); skipSpaces(); while (pos < s.length && (s[pos] === '+' || s[pos] === '-')) { const op = s[pos++]; const rhs = parseTerm(); value = op === '+' ? value + rhs : value - rhs; skipSpaces(); } return value; } // term := unary (('*' | '/') unary)* function parseTerm() { let value = parseUnary(); skipSpaces(); while (pos < s.length && (s[pos] === '*' || s[pos] === '/')) { const op = s[pos++]; const rhs = parseUnary(); value = op === '*' ? value * rhs : value / rhs; skipSpaces(); } return value; } // unary := '-' unary | power // (^ binds tighter than unary minus) function parseUnary() { skipSpaces(); if (pos < s.length && s[pos] === '-') { pos++; return -parseUnary(); } return parsePower(); } // power := primary ('^' unary)? -- right-associative, unary allowed after ^ function parsePower() { const base = parsePrimary(); skipSpaces(); if (pos < s.length && s[pos] === '^') { pos++; const exponent = parseUnary(); return Math.pow(base, exponent); } return base; } // primary := number | '(' expression ')' function parsePrimary() { skipSpaces(); if (pos >= s.length) { throw new Error('Unexpected end of expression'); } const c = s[pos]; if (c === '(') { pos++; const value = parseExpression(); skipSpaces(); if (pos >= s.length || s[pos] !== ')') { throw new Error('Expected ")"'); } pos++; return value; } if (c >= '0' && c <= '9') { const start = pos; while (pos < s.length && s[pos] >= '0' && s[pos] <= '9') pos++; if (pos < s.length && s[pos] === '.') { pos++; if (pos >= s.length || s[pos] < '0' || s[pos] > '9') { throw new Error('Invalid number'); } while (pos < s.length && s[pos] >= '0' && s[pos] <= '9') pos++; } return parseFloat(s.slice(start, pos)); } throw new Error('Unexpected token: ' + c); } const result = parseExpression(); skipSpaces(); if (pos !== s.length) { throw new Error('Unexpected token: ' + s[pos]); } return result; } ```765 tokens in, 2,799 out (2,072 of them reasoning) · 8.9 s · $0.0035 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·
5. Parse CSV with quoted fields
Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0003 · DeepSeek: 2 of 2 models passed, DeepSeek V4.1 Flash the cheapest at $0.0025. The prompt in full.
Claude Haiku 5.5 and DeepSeek V4.1 Flash both passed this one. Claude Haiku 5.5 answered sooner (2.2 s to 7.3 s), and Claude Haiku 5.5's reply cost less ($0.0003 to $0.0025); Claude Haiku 5.5 wrote 513 tokens of reply, DeepSeek V4.1 Flash 348.
Claude Haiku 5.5
Passed: All 8 tests passed.
```javascript function parseCsv(text) { const rows = []; let row = []; let field = ""; let inQuotes = false; let fieldStarted = false; let i = 0; const n = text.length; if (n === 0) return []; while (i < n) { const ch = text[i]; if (inQuotes) { if (ch === '"') { if (text[i + 1] === '"') { field += '"'; i += 2; continue; } inQuotes = false; i++; continue; } field += ch; i++; continue; } if (ch === '"' && !fieldStarted) { inQuotes = true; fieldStarted = true; i++; } else if (ch === ",") { row.push(field); field = ""; fieldStarted = false; i++; } else if (ch === "\r" || ch === "\n") { row.push(field); rows.push(row); row = []; field = ""; fieldStarted = false; if (ch === "\r" && text[i + 1] === "\n") i += 2; else i++; // A trailing line break ends the last row without starting a new one. if (i >= n) return rows; } else { field += ch; fieldStarted = true; i++; } } // Flush the final row (text did not end with a line break). row.push(field); rows.push(row); return rows; } ```924 tokens in, 513 out · 2.2 s · $0.0003 · 1 message on Pro · answered by anthropic/claude-haiku-5.5 via Anthropic ·
DeepSeek V4.1 Flash
Passed: All 8 tests passed.
```javascript function parseCsv(text) { const rows = []; if (text === '') return rows; let row = []; let field = ''; let inQuotes = false; let fieldStarted = false; let i = 0; while (i < text.length) { const ch = text[i]; if (inQuotes) { if (ch === '"') { if (text[i + 1] === '"') { field += '"'; i += 2; continue; } inQuotes = false; i += 1; continue; } field += ch; i += 1; continue; } if (ch === '"' && !fieldStarted) { inQuotes = true; fieldStarted = true; i += 1; continue; } if (ch === ',') { row.push(field); field = ''; fieldStarted = false; i += 1; continue; } if (ch === '\n' || ch === '\r') { row.push(field); rows.push(row); row = []; field = ''; fieldStarted = false; i += ch === '\r' && text[i + 1] === '\n' ? 2 : 1; continue; } field += ch; fieldStarted = true; i += 1; } if (fieldStarted || row.length > 0) { row.push(field); rows.push(row); } return rows; } ```696 tokens in, 2,027 out (1,679 of them reasoning) · 7.3 s · $0.0025 · 1 message on Pro · answered by deepseek/deepseek-v4.1-flash via Together ·
Each Claude model against each DeepSeek model
Every Claude model against every DeepSeek model on the same 5 coding prompts: passes, the median wait and what the replies cost. A lead under 10% counts as close.
Claude Fable 5.2 vs DeepSeek V4 Pro: 5 of 5 each; Claude Fable 5.2 answered 2.7× sooner at the median and DeepSeek V4 Pro cost 2.1× less.
Claude Fable 5.2 vs DeepSeek V4.1 Flash: 5 of 5 each; DeepSeek V4.1 Flash answered 1.2× sooner at the median and cost 17.0× less.
Claude Fable 5.1 vs DeepSeek V4 Pro: 5 of 5 each; Claude Fable 5.1 answered 2.5× sooner at the median and DeepSeek V4 Pro cost 2.8× less.
Claude Fable 5.1 vs DeepSeek V4.1 Flash: 5 of 5 each; DeepSeek V4.1 Flash answered 1.3× sooner at the median and cost 22.7× less.
Claude Opus 5.5 vs DeepSeek V4 Pro: 5 of 5 each; Claude Opus 5.5 answered 2.0× sooner at the median and DeepSeek V4 Pro cost 1.5× less. Claude Opus 5.5 vs DeepSeek V4 Pro, on every job.
Claude Opus 5.5 vs DeepSeek V4.1 Flash: 5 of 5 each; DeepSeek V4.1 Flash answered 1.6× sooner at the median and cost 12.2× less.
Claude Sonnet 5.5 vs DeepSeek V4 Pro: 5 of 5 each; Claude Sonnet 5.5 answered 4.6× sooner at the median and cost 2.3× less.
Claude Sonnet 5.5 vs DeepSeek V4.1 Flash: 5 of 5 each; Claude Sonnet 5.5 answered 1.4× sooner at the median and DeepSeek V4.1 Flash cost 3.5× less.
Claude Sonnet 5 vs DeepSeek V4 Pro: 5 of 5 each; Claude Sonnet 5 answered 4.3× sooner at the median and cost 1.2× less. Claude Sonnet 5 vs DeepSeek V4 Pro, on every job.
Claude Sonnet 5 vs DeepSeek V4.1 Flash: 5 of 5 each; Claude Sonnet 5 answered 1.3× sooner at the median and DeepSeek V4.1 Flash cost 6.9× less.
Claude Haiku 4.5 vs DeepSeek V4 Pro: Claude Haiku 4.5 3 of 5, DeepSeek V4 Pro 5; Claude Haiku 4.5 answered 5.2× sooner at the median and cost 3.9× less. Claude Haiku 4.5 vs DeepSeek V4 Pro, on every job.
Claude Haiku 4.5 vs DeepSeek V4.1 Flash: Claude Haiku 4.5 3 of 5, DeepSeek V4.1 Flash 5; Claude Haiku 4.5 answered 1.6× sooner at the median and DeepSeek V4.1 Flash cost 2.0× less. Claude Haiku 4.5 vs DeepSeek V4.1 Flash, on every job.
Claude Haiku 5.5 vs DeepSeek V4 Pro: 5 of 5 each; Claude Haiku 5.5 answered 8.8× sooner at the median and cost 29.6× less.
Claude Haiku 5.5 vs DeepSeek V4.1 Flash: 5 of 5 each; Claude Haiku 5.5 answered 2.7× sooner at the median and cost 3.7× less. Claude Haiku 5.5 vs DeepSeek V4.1 Flash, on every job.
How the coding replies are scored
Every Claude and DeepSeek reply above was checked the same way as every other model's, by the rules published with the prompts: how the coding prompts are scored, and each one in full.
The differences at a glance
What follows from each model's facts in our catalog.
The lineups
Claude: 7 models, Claude Fable 5.2, Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Haiku 4.5, and Claude Haiku 5.5. DeepSeek: 2 models, DeepSeek V4 Pro and DeepSeek V4.1 Flash.
Price per message
The least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro); the least expensive DeepSeek model is DeepSeek V4.1 Flash (60 messages a day on Pro).
Context window
Claude goes up to 1M tokens (Claude Fable 5.2); DeepSeek up to 1.05M tokens (DeepSeek V4 Pro).
Images and PDFs
DeepSeek V4 Pro doesn't read images. DeepSeek V4 Pro and DeepSeek V4.1 Flash get a PDF's text rather than the file itself.
Plans
Every plan has messages every month on them, Claude Fable 5.2 and Claude Fable 5.1 from Pro up. Every plan is month to month: cancel in two clicks.
Every Claude and DeepSeek model's context window, files and API price: DeepSeek vs Claude.
Where your messages go
In llmwise, a message to Claude goes to its maker, Anthropic, or through OpenRouter when llmwise can't reach the maker directly. DeepSeek models are served only through OpenRouter, by endpoints that don't store or train on prompts. The Privacy Policy has the details.
Questions
Which is better, Claude or DeepSeek for coding?
In our coding test runs on November 18, 2026, Claude's 7 models passed 33 of 35; Claude Fable 5.2, Claude Fable 5.1 and 4 more each passed 5 of 5. DeepSeek's 2 models passed 10 of 10; DeepSeek V4 Pro and DeepSeek V4.1 Flash each passed 5 of 5. Claude Haiku 5.5 and DeepSeek V4.1 Flash each passed 5 of the 5 prompts, so these coding prompts don't split Claude and DeepSeek; the replies on this page show how they differ.
Is Claude or DeepSeek cheaper?
In llmwise, the least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro), and the least expensive DeepSeek model is DeepSeek V4.1 Flash (60 messages a day on Pro). At API list prices (October 2026), a typical message of 4,000 tokens in and 700 out costs $0.0008 on Claude Haiku 5.5 and $0.0020 on DeepSeek V4.1 Flash.
Can I use Claude and DeepSeek in the same chat?
Yes. Ask Claude Haiku 5.5 a question, then switch the picker to DeepSeek V4.1 Flash and ask again: DeepSeek V4.1 Flash sees the whole conversation, Claude Haiku 5.5's answer included.
Claude, GPT, Gemini, DeepSeek, Grok, Kimi, GLM, and Mistral, in one chat.
See what a message costs before you send it. Every plan is month to month: cancel in two clicks. Sign in with an email link, no password.