Mistral Large 4 · Coding
Mistral Large 4 for coding: our test runs
Mistral Large 4 ran our 5 coding prompts in llmwise, through the same pipeline your messages take. Here's every reply as it came, whether it passed, what it cost and what it counts as on Pro, next to the other models.
Based on 5 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, Mistral Large 4 passed 5 of 5 of our coding prompts (both hard ones): tied 1st of 27 models. Each reply counted as 1 message on Pro, where it has 250 a month, and cost $0.0073 to run on average.
Prompt by prompt
Each of the 5 coding prompts, and how Mistral Large 4's reply did.
| Prompt | Result | Cost | Time |
|---|---|---|---|
| Turn a title into a URL slugEveryday | Passed: All 7 tests passed. | $0.0021 | 12.2 s |
| Parse a duration like “1h 30m”Everyday | Passed: All 10 tests passed. | $0.0068 | 46.9 s |
| Merge overlapping intervalsEveryday | Passed: All 7 tests passed. | $0.0016 | 9.2 s |
| Evaluate an arithmetic expression, no evalHard | Passed: All 15 tests passed. | $0.0187 | 122.7 s |
| Parse CSV with quoted fieldsHard | Passed: All 8 tests passed. | $0.0074 | 53.9 s |
Every coding reply from Mistral Large 4
Turn a title into a URL slug
An everyday prompt: “Turn a title into a URL slug”, in full.
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, ""); } ```682 tokens in, 663 out (587 of them reasoning) · 12.2 s · $0.0021 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·
Parse a duration like “1h 30m”
An everyday prompt: “Parse a duration like “1h 30m””, in full.
Passed: All 10 tests passed.
```javascript function parseDuration(text) { if (typeof text !== "string") return null; const match = text.match(/^\s*(?:(\d+)h)?(?:\s*(\d+)m)?(?:\s*(\d+)s)?\s*$/); if (!match) return null; const hours = match[1]; const minutes = match[2]; const seconds = match[3]; if (hours === undefined && minutes === undefined && seconds === undefined) return null; return (hours === undefined ? 0 : Number(hours)) * 3600 + (minutes === undefined ? 0 : Number(minutes)) * 60 + (seconds === undefined ? 0 : Number(seconds)); } ```664 tokens in, 2,790 out (2,625 of them reasoning) · 46.9 s · $0.0068 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·
Merge overlapping intervals
An everyday prompt: “Merge overlapping intervals”, in full.
Passed: All 7 tests passed.
```javascript function mergeIntervals(intervals) { if (!Array.isArray(intervals) || intervals.length === 0) return []; const sorted = intervals .map(([start, end]) => [start, end]) .sort((a, b) => a[0] - b[0] || a[1] - b[1]); const merged = []; for (const [start, end] of sorted) { const last = merged[merged.length - 1]; if (last && start <= last[1]) { if (end > last[1]) last[1] = end; } else { merged.push([start, end]); } } return merged; } ```647 tokens in, 571 out (411 of them reasoning) · 9.2 s · $0.0016 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·
Evaluate an arithmetic expression, no eval
A hard prompt: “Evaluate an arithmetic expression, no eval”, in full.
Passed: All 15 tests passed.
```javascript function evaluate(expression) { if (typeof expression !== 'string') { throw new Error('Expression must be a string'); } const s = expression; const n = s.length; let i = 0; const isDigit = (c) => c >= '0' && c <= '9'; function skipWs() { while (i < n && /\s/.test(s[i])) i++; } function parseExpr() { let value = parseTerm(); skipWs(); while (i < n && (s[i] === '+' || s[i] === '-')) { const op = s[i++]; const rhs = parseTerm(); value = op === '+' ? value + rhs : value - rhs; skipWs(); } return value; } function parseTerm() { let value = parseUnary(); skipWs(); while (i < n && (s[i] === '*' || s[i] === '/')) { const op = s[i++]; const rhs = parseUnary(); value = op === '*' ? value * rhs : value / rhs; skipWs(); } return value; } function parseUnary() { skipWs(); if (i < n && s[i] === '-') { i++; return -parseUnary(); } return parsePower(); } function parsePower() { const base = parsePrimary(); skipWs(); if (i < n && s[i] === '^') { i++; const exponent = parseUnary(); return base ** exponent; } return base; } function parsePrimary() { skipWs(); if (i >= n) { throw new Error('Unexpected end of expression'); } const c = s[i]; if (c === '(') { i++; const value = parseExpr(); skipWs(); if (i >= n || s[i] !== ')') { throw new Error("Expected ')'"); } i++; return value; } if (isDigit(c)) { const start = i; while (i < n && isDigit(s[i])) i++; if (i + 1 < n && s[i] === '.' && isDigit(s[i + 1])) { i++; while (i < n && isDigit(s[i])) i++; } return Number(s.slice(start, i)); } throw new Error(`Unexpected character '${c}' at position ${i}`); } const result = parseExpr(); skipWs(); if (i < n) { throw new Error(`Unexpected token at position ${i}`); } return result; } ```753 tokens in, 7,919 out (7,323 of them reasoning) · 122.7 s · $0.0187 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·
Parse CSV with quoted fields
A hard prompt: “Parse CSV with quoted fields”, in full.
Passed: All 8 tests passed.
```javascript function parseCsv(text) { const rows = []; let row = []; let field = ""; let inQuotes = false; let fieldStarted = false; const n = text.length; for (let i = 0; i < n; i++) { const ch = text[i]; if (inQuotes) { if (ch === '"') { if (text[i + 1] === '"') { field += '"'; // "" -> one literal quote i++; } else { inQuotes = false; // closing quote } } else { field += ch; // commas and line breaks are literal inside quotes } } else if (ch === '"' && field === "") { inQuotes = true; // quote only special at the start of a field fieldStarted = true; } else if (ch === ',') { row.push(field); field = ""; fieldStarted = false; } else if (ch === '\n' || ch === '\r') { if (ch === '\r' && text[i + 1] === '\n') i++; // consume \r\n as one break row.push(field); rows.push(row); row = []; field = ""; fieldStarted = false; } else { field += ch; // includes quotes that don't start a field fieldStarted = true; } } // Push the final row only if there's actual content (a trailing line break // already closed the last row; empty input yields []). if (row.length > 0 || fieldStarted) { row.push(field); rows.push(row); } return rows; } ```682 tokens in, 2,968 out (2,592 of them reasoning) · 53.9 s · $0.0074 · 1 message on Pro · answered by mistralai/mistral-large-4-0 via Mistral ·
How it compares on coding
Mistral Large 4 beside the job's picks among every model. 25 models share the hard-problems pick, Mistral Large 4 among them.
| Model | Passed | On Pro | Cost per reply |
|---|---|---|---|
| Gemini 3.8 FlashOur pick: hard problems (shared), best value | 5 of 5 | 250 a month on Pro | $0.0011 |
| GPT-6 LunaOur pick: hard problems (shared), everyday | 5 of 5 | 60 a day on Pro | $0.0001 |
| Mistral Large 4Our pick: hard problems (shared) | 5 of 5 | 250 a month on Pro | $0.0073 |
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.
Mistral Large 4 next to each model on coding
Mistral Large 4 against each model on the same 5 coding prompts. One run each, through OpenRouter: a wait depends on the provider and the load that day, so a lead under 10% counts as close.
Against Claude Fable 5.2: Mistral Large 4 answered 11.4× later (46.9 s to 4.1 s), cost 3.4× less, and passed 5 of 5 to its 5.
Against Claude Fable 5.1: Mistral Large 4 answered 10.5× later (46.9 s to 4.5 s), cost 4.6× less, and passed 5 of 5 to its 5.
Against Claude Opus 5.5: Mistral Large 4 answered 8.2× later (46.9 s to 5.7 s), cost 2.5× less, and passed 5 of 5 to its 5.
Against Claude Sonnet 5.5: Mistral Large 4 answered 19.0× later (46.9 s to 2.5 s), cost 1.4× more, and passed 5 of 5 to its 5.
Against Claude Sonnet 5: Mistral Large 4 answered 17.8× later (46.9 s to 2.6 s), cost 1.4× less, and passed 5 of 5 to its 5.
Against Claude Haiku 5.5: Mistral Large 4 answered 36.5× later (46.9 s to 1.3 s), cost 18.4× more, and passed 5 of 5 to its 5.
Against Claude Haiku 4.5: Mistral Large 4 answered 21.5× later (46.9 s to 2.2 s), cost 2.4× more, and passed 5 of 5 to its 3. Only Mistral Large 4 passed Evaluate an arithmetic expression, no eval; Parse CSV with quoted fields.
Against GPT-6.2 Astra: Mistral Large 4 answered 13.3× later (46.9 s to 3.5 s), cost 1.8× less, and passed 5 of 5 to its 5.
Against GPT-6 Astra: Mistral Large 4 answered 8.1× later (46.9 s to 5.8 s), cost 1.5× less, and passed 5 of 5 to its 5.
Against GPT-6.2 Sol: Mistral Large 4 answered 12.5× later (46.9 s to 3.8 s), cost 2.0× more, and passed 5 of 5 to its 5.
Against GPT-6.1 Sol: Mistral Large 4 answered 6.0× later (46.9 s to 7.9 s), cost 1.8× more, and passed 5 of 5 to its 5.
Against GPT-6 Sol: Mistral Large 4 answered 9.8× later (46.9 s to 4.8 s), cost 2.6× more, and passed 5 of 5 to its 5.
Against GPT-6.1 Terra: Mistral Large 4 answered 6.9× later (46.9 s to 6.8 s), cost 5.5× more, and passed 5 of 5 to its 5.
Against GPT-6 Luna: Mistral Large 4 answered 6.4× later (46.9 s to 7.3 s), cost 51.8× more, and passed 5 of 5 to its 5.
Against Gemini 4 Carbon: Mistral Large 4 answered 1.3× later (46.9 s to 36.4 s), cost 1.9× less, and passed 5 of 5 to its 5.
Against Gemini 4 Argon: Mistral Large 4 answered 6.2× later (46.9 s to 7.6 s), cost 2.8× more, and passed 5 of 5 to its 5.
Against Gemini 4 Hydrogen: Mistral Large 4 answered 6.8× later (46.9 s to 6.9 s), cost 1.2× more, and passed 5 of 5 to its 5.
Against Gemini 3.1 Pro (preview): Mistral Large 4 answered 3.0× later (46.9 s to 15.7 s), cost 1.8× less, and passed 5 of 5 to its 5.
Against Gemini 3.8 Flash: Mistral Large 4 answered 14.4× later (46.9 s to 3.3 s), cost 6.6× more, and passed 5 of 5 to its 5.
Against DeepSeek V4.1 Flash: Mistral Large 4 answered 13.4× later (46.9 s to 3.5 s), cost 5.0× more, and passed 5 of 5 to its 5.
Against DeepSeek V4 Pro: Mistral Large 4 answered 4.2× later (46.9 s to 11.3 s), cost 1.6× less, and passed 5 of 5 to its 5.
Against Grok 4.7: Mistral Large 4 answered 1.5× later (46.9 s to 31.2 s), cost 3.7× less, and passed 5 of 5 to its 5.
Against Kimi K3.1 Pro: Mistral Large 4 answered 6.0× later (46.9 s to 7.8 s), cost within 10% of it, and passed 5 of 5 to its 5.
Against Kimi K3: Mistral Large 4 answered 7.6× later (46.9 s to 6.2 s), cost within 10% of it, and passed 5 of 5 to its 5.
Against GLM 5.3: Mistral Large 4 answered 31.7× later (46.9 s to 1.5 s), cost 3.2× more, and passed 5 of 5 to its 3. Only Mistral Large 4 passed Parse a duration like “1h 30m”; Parse CSV with quoted fields.
Against GLM 5.3 Flash: Mistral Large 4 answered 43.9× later (46.9 s to 1.1 s), cost 28.0× more, and passed 5 of 5 to its 5.
How these runs were done
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.
Mistral Large 4, and coding, elsewhere
- Mistral Large 4: price, limits and messages on every plan
- The best AI for coding: our picks among every model
- Mistral Large 4 for writing: our test runs
- Mistral Large 4 for math: our test runs
- Mistral Large 4 for data analysis: our test runs
- Analyze a CSV with code: the prompt, and its price
- AI prompts for coding, checked by running the code
- Our test runs: 50 prompts on every model
Questions
Is Mistral Large 4 good for coding?
In our test runs it passed 5 of 5 coding prompts, tied 1st of the 27 models in llmwise. Every reply is on this page, so you can judge them yourself.
How many of my messages does a coding reply from Mistral Large 4 use?
1 message each on Pro, where it has 250 a month on Pro. The price of a message is fixed and shown before you send it, however long the reply.
How were these runs done?
The same way for every model: each prompt sent through llmwise's own pipeline, each reply checked the same way. The methods page has every prompt and how each is scored.
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.