DeepSeek · Coding
DeepSeek for coding
llmwise has 2 of DeepSeek's models, from DeepSeek V4.1 Flash (up to 60 messages a day on Pro) to DeepSeek V4 Pro (up to 250 messages a month). We ran the same coding prompts on every one and published every reply: which DeepSeek model to use, from the results, what each costs per message, and how to get more out of it.
Based on 10 of our test runs on , through OpenRouter with the app's own prompt and settings.
Short answer
In our test runs on November 18, 2026, all 2 models passed 5 of 5 coding prompts, so these prompts don't pick one for hard problems. For value, DeepSeek V4 Pro (5 of 5), 250 a month on Pro; for everyday coding, DeepSeek V4.1 Flash (5 of 5), from the daily count.
Our picks for coding
Hard problems
Shared by 2 models
All 2 models passed 5 of 5, both hard ones: DeepSeek V4.1 Flash and DeepSeek V4 Pro. These prompts don't tell them apart, so they share the pick.
Best value
Passed 5 of 5 coding prompts, with 250 a month on Pro.
Everyday
Passed 5 of 5 coding prompts; an everyday model, so its messages come from the daily count (60 a day on Pro), not the monthly allowance.
These picks aren't our opinion: they're what the results below give, by these rules, among the DeepSeek models in llmwise. They change when the results do.
- Hard problems: the model that passed the most prompts and, of those, the most hard ones. Models level on both share the pick: the prompts don't tell them apart, so we don't break the tie by price or by name.
- Best value: among the models that draw on the monthly allowance, the one with the most messages on Pro that passed no more than one prompt fewer than the top model. Ties go to the one that passed more, then to the lower cost per reply.
- Everyday: among the cheapest models on the page (the everyday models, which come from the daily count, when the page has any), the one that passed the most. Ties go to the one that passed more of the hard prompts, then to the lower cost per reply.
Our coding test runs, model by model
How each model did on our 5 coding prompts, what each reply counted as on Pro, and what it cost to run.
| Model | Passed | Hard ones | Messages used on Pro | Cost per reply | Time per reply |
|---|---|---|---|---|---|
| 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 |
One prompt, side by side
Each model's reply to “Evaluate an arithmetic expression, no eval”, as it came, with whether it passed and what it cost.
The prompt: Evaluate an arithmetic expression, no eval (hard)
Write a JavaScript function evaluate(expression) that computes an arithmetic expression given as a string and returns the number. It supports numbers like 3, 0.5 and 12.25; the operators + - * / and ^ (power); parentheses; unary minus; and spaces anywhere. - ^ binds tighter than unary minus and is right-associative, so -2^2 is -4 and 2^3^2 is 512. A unary minus may follow ^, as in 2^-1, which is 0.5. - * and / bind tighter than + and -. Otherwise operators of the same level go left to right, so 8/4/2 is 1. - Throw an Error for input that isn't a valid expression, such as "2 +", "(1" or "1 2". Don't use eval, Function or any library. Reply with the whole function in one ```javascript code block: plain JavaScript for Node.js 22, no imports, no TypeScript.
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 ·
DeepSeek V4 Pro
Passed: All 15 tests passed.
```javascript function evaluate(expression) { function tokenize(input) { const tokens = []; let i = 0; while (i < input.length) { const ch = input[i]; if (/\s/.test(ch)) { i++; continue; } if (ch >= '0' && ch <= '9') { const start = i; while (i < input.length && input[i] >= '0' && input[i] <= '9') i++; if (i < input.length && input[i] === '.') { i++; if (i >= input.length || input[i] < '0' || input[i] > '9') { throw new Error('Invalid number'); } while (i < input.length && input[i] >= '0' && input[i] <= '9') i++; } const text = input.slice(start, i); tokens.push({ type: 'num', value: Number(text) }); continue; } if ('+-*/^'.includes(ch)) { tokens.push({ type: 'op', value: ch }); i++; continue; } if (ch === '(' || ch === ')') { tokens.push({ type: ch, value: ch }); i++; continue; } throw new Error(`Unexpected character: ${ch}`); } return tokens; } class Parser { constructor(tokens) { this.tokens = tokens; this.pos = 0; } peek() { return this.tokens[this.pos]; } consume() { return this.tokens[this.pos++]; } parse() { const result = this.parseAdditive(); if (this.pos !== this.tokens.length) { throw new Error('Unexpected token'); } return result; } parseAdditive() { let left = this.parseMultiplicative(); while ( this.peek() && this.peek().type === 'op' && (this.peek().value === '+' || this.peek().value === '-') ) { const op = this.consume().value; const right = this.parseMultiplicative(); left = op === '+' ? left + right : left - right; } return left; } parseMultiplicative() { let left = this.parseUnary(); while ( this.peek() && this.peek().type === 'op' && (this.peek().value === '*' || this.peek().value === '/') ) { const op = this.consume().value; const right = this.parseUnary(); left = op === '*' ? left * right : left / right; } return left; } parseUnary() { if ( this.peek() && this.peek().type === 'op' && this.peek().value === '-' ) { this.pos++; return -this.parseUnary(); } return this.parsePower(); } parsePower() { const base = this.parsePrimary(); if ( this.peek() && this.peek().type === 'op' && this.peek().value === '^' ) { this.pos++; const exponent = this.parseUnary(); return Math.pow(base, exponent); } return base; } parsePrimary() { const token = this.peek(); if (!token) { throw new Error('Unexpected end of expression'); } if (token.type === 'num') { this.pos++; return token.value; } if (token.type === '(') { this.pos++; const result = this.parseAdditive(); if (!this.peek() || this.peek().type !== ')') { throw new Error('Expected )'); } this.pos++; return result; } throw new Error(`Unexpected token: ${token.value}`); } } const tokens = tokenize(expression); const parser = new Parser(tokens); return parser.parse(); } ```736 tokens in, 6,363 out (5,486 of them reasoning) · 65.0 s · $0.0258 · 1 message on Pro · answered by deepseek/deepseek-v4-pro-0813 via CoreWeave ·
The coding prompts, and how they're scored
Tests. Automatic. The function runs against the prompt's tests in a separate Node.js process with a time limit and no file, network or child-process access; it passes when every test passes.
Each prompt was sent the way llmwise sends a message in a side-by-side comparison, which offers no tools: the app's own system prompt, the model's own settings, and Pro's reply size limit (8,000 tokens). Read all five coding prompts and how every reply was scored.
Prompts like these to try yourself
DeepSeek in llmwise
| Model | On Pro | Plans | Context window | Images | PDFs | Reasoning | API price per 1M, in / out |
|---|---|---|---|---|---|---|---|
| DeepSeek V4 ProDeepSeek | 250/mo on Pro | Plus and Pro | 1.05M tokens | No | Text only | Yes | $0.40 / $4.00 |
| DeepSeek V4.1 FlashDeepSeek | 60/day on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $0.30 / $1.20 |
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.
What matters for coding
Room for your code
The more of your code a model can take in at once, the fewer details it has to guess. Context windows are listed below.
Reasoning on hard problems
Models that reason before answering tend to do better on problems with several moving parts, like a bug that crosses files.
Running the code
Code that has been run beats code that looks right. A model that can run and test its own code catches its own mistakes.
Cost per try
Coding means many small tries. A cheap model for quick questions and a stronger one for the hard ones keeps the cost down.
DeepSeek for coding in llmwise
Code opens as a document
Ask for a script or a component and it opens beside the chat as a code document that keeps every version, so you can step back to an earlier one.
Run code (Pro and higher plans)
On Pro and higher plans the model can run Python or Node.js in an isolated sandbox once you approve it, read the output and fix what failed. A run counts as 1 Claude Haiku 4.5 message and stops after 60 seconds.
HTML apps run in the chat
Ask for a calculator, a small tool or a page and it runs live as an HTML app in the side panel.
Switch models mid-chat
Start on a cheaper model; if the answer isn't good enough, switch models in the same chat. The next model sees the whole conversation, so you don't paste anything twice.
DeepSeek models are served only through OpenRouter, by endpoints that don't store or train on prompts. See the Privacy Policy.
Tips
Paste the exact error and the code that produced it, not just a description.
Say which language, version and libraries you use.
For a big change, ask for a plan first, then one step at a time.
Pick the Coder persona for code-first answers that explain their trade-offs.
If a model gets stuck, switch to another in the same chat: it sees the code so far.
Questions
Is DeepSeek good for coding?
In our test runs on November 18, 2026, DeepSeek V4 Pro passed 5 of 5, DeepSeek V4.1 Flash passed 5 of 5 of our coding prompts, against a best result of 5 of 5 among all 27 models. Every reply is published on this page and the methods page, so you can judge them yourself.
Which DeepSeek model should I use for coding?
Start with DeepSeek V4.1 Flash for quick syntax questions, regexes, small scripts and boilerplate, and move up to DeepSeek V4 Pro for most day-to-day coding: writing functions, explaining code, reviewing a change.
Can I use DeepSeek for coding for free?
No: there's no free plan or trial. DeepSeek V4 Pro and DeepSeek V4.1 Flash are both on Plus and Pro. Paid monthly from the day you start. Cancel in two clicks in Settings → Billing.
Can llmwise run the code it writes?
On Pro and higher plans, yes. The model writes Python or Node.js, you approve the run, and it executes in an isolated sandbox with no internet access except package registries, stopping after 60 seconds. It reads the output and can fix what failed. Each run counts as 1 Claude Haiku 4.5 message.
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.