Comparison · Coding
Claude vs Gemini for coding
On llmwise Pro, Claude Sonnet 5.5 gets up to 125 messages a month and Gemini 4 Hydrogen up to 125 messages a month. We ran the same 5 coding prompts on all 7 Claude models and all 5 Gemini models and published every reply: the results, then Claude Haiku 5.5 against Gemini 3.8 Flash prompt by prompt, then how Claude and Gemini compare on price per message, context and files.
Based on 60 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. Gemini's 5 models passed 25 of 25; Gemini 4 Carbon, Gemini 4 Argon and 3 more each passed 5 of 5. Claude Haiku 5.5 and Gemini 3.8 Flash each passed 5 of the 5 prompts, so these coding prompts don't split Claude and Gemini; the replies on this page show how they differ.
Claude and Gemini on our coding test runs
Every Claude and Gemini 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 |
| Gemini 4 CarbonGoogle | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0141 | 37.0 s |
| Gemini 4 ArgonGoogle | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0026 | 8.8 s |
| Gemini 4 HydrogenGoogle | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0061 | 7.9 s |
| Gemini 3.1 Pro (preview)Google | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0131 | 15.8 s |
| Gemini 3.8 FlashGoogle | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0011 | 4.4 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 Gemini, prompt by prompt
Each coding prompt with Claude Haiku 5.5 and Gemini 3.8 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 Gemini 3.8 Flash 5 of 5. Claude Haiku 5.5 answered 2.5× sooner at the median, 1.3 s against 3.3 s. Claude Haiku 5.5 cost 2.8× less, $0.0020 against $0.0056 for the 5 replies. Their replies ran to about the same length.
1. Turn a title into a URL slug
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0002 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0005. The prompt in full.
Claude Haiku 5.5 and Gemini 3.8 Flash both passed this one. Claude Haiku 5.5 answered sooner (1.3 s to 2.2 s), and Claude Haiku 5.5's reply cost less ($0.0002 to $0.0005); Claude Haiku 5.5 wrote 112 tokens of reply, Gemini 3.8 Flash 124.
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 ·
Gemini 3.8 Flash
Passed: All 7 tests passed.
```javascript function slugify(title) { return title .normalize('NFD') // Decompose combined graphemes into base letters + diacritical marks .replace(/[\u0300-\u036f]/g, '') // Remove diacritical marks .toLowerCase() .replace(/[^a-z0-9]+/g, '-') // Replace non-alphanumeric characters with hyphens .replace(/^-+|-+$/g, ''); // Trim leading and trailing hyphens } ```709 tokens in, 124 out · 2.2 s · $0.0005 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
2. Parse a duration like “1h 30m”
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0006. The prompt in full.
Claude Haiku 5.5 and Gemini 3.8 Flash both passed this one. Claude Haiku 5.5 answered sooner (1.2 s to 3.1 s), and Claude Haiku 5.5's reply cost less ($0.0001 to $0.0006); Claude Haiku 5.5 wrote 212 tokens of reply, Gemini 3.8 Flash 188.
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 ·
Gemini 3.8 Flash
Passed: All 10 tests passed.
```javascript function parseDuration(text) { if (typeof text !== 'string') return null; const match = text.trim().match(/^(?:(\d+)h)?\s*(?:(\d+)m)?\s*(?:(\d+)s)?$/); if (!match || match[0] === '') return null; const [, h, m, s] = match; if (h === undefined && m === undefined && s === undefined) return null; const hours = h ? parseInt(h, 10) : 0; const minutes = m ? parseInt(m, 10) : 0; const seconds = s ? parseInt(s, 10) : 0; return hours * 3600 + minutes * 60 + seconds; } ```693 tokens in, 188 out · 3.1 s · $0.0006 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
3. Merge overlapping intervals
Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0007. The prompt in full.
Claude Haiku 5.5 and Gemini 3.8 Flash both passed this one. Claude Haiku 5.5 answered sooner (1.1 s to 3.3 s), and Claude Haiku 5.5's reply cost less ($0.0001 to $0.0007); Claude Haiku 5.5 wrote 180 tokens of reply, Gemini 3.8 Flash 235.
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 ·
Gemini 3.8 Flash
Passed: All 7 tests passed.
```javascript function mergeIntervals(intervals) { if (!intervals || intervals.length <= 1) { return intervals ? intervals.map(interval => [...interval]) : []; } // Create a shallow copy and sort by start time (and end time as tie-breaker) const sorted = intervals .map(interval => [...interval]) .sort((a, b) => a[0] - b[0] || a[1] - b[1]); const merged = [sorted[0]]; for (let i = 1; i < sorted.length; i++) { const current = sorted[i]; const last = merged[merged.length - 1]; // If current interval overlaps or touches the previous one if (current[0] <= last[1]) { last[1] = Math.max(last[1], current[1]); } else { merged.push(current); } } return merged; } ```672 tokens in, 235 out · 3.3 s · $0.0007 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
4. Evaluate an arithmetic expression, no eval
Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0013 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0025. The prompt in full.
Claude Haiku 5.5 and Gemini 3.8 Flash both passed this one. They took about as long (Claude Haiku 5.5 9.3 s, Gemini 3.8 Flash 8.7 s), and Claude Haiku 5.5's reply cost less ($0.0013 to $0.0025); Claude Haiku 5.5 wrote 1,063 tokens of reply, Gemini 3.8 Flash 1,188.
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 ·
Gemini 3.8 Flash
Passed: All 15 tests passed.
```javascript function evaluate(expression) { // Tokenize the input string const tokens = []; let i = 0; const n = expression.length; while (i < n) { const ch = expression[i]; if (/\s/.test(ch)) { i++; continue; } if (/[0-9.]/.test(ch)) { let numStr = ''; let dotCount = 0; while (i < n && /[0-9.]/.test(expression[i])) { if (expression[i] === '.') { dotCount++; if (dotCount > 1) { throw new Error(`Invalid number format at index ${i}`); } } numStr += expression[i]; i++; } if (numStr === '.') { throw new Error(`Invalid number '.' at index ${i - 1}`); } tokens.push({ type: 'NUMBER', value: parseFloat(numStr) }); continue; } if ('+-*/^()'.includes(ch)) { tokens.push({ type: ch }); i++; continue; } throw new Error(`Unexpected character '${ch}' at index ${i}`); } let pos = 0; function peek() { return tokens[pos]; } function consume(expectedType) { const token = tokens[pos]; if (!token || (expectedType && token.type !== expectedType)) { throw new Error(`Expected '${expectedType}', found '${token ? token.type : 'EOF'}'`); } pos++; return token; } // Expression grammar: // parseAddSub: handles + and - (left-associative) // parseMulDiv: handles * and / (left-associative) // parseUnary: handles unary + and - // parsePower: handles ^ (right-associative, tighter than unary minus) // parsePrimary: numbers, parentheses, or unary after ^ (e.g., 2^-1) function parseExpression() { return parseAddSub(); } function parseAddSub() { let left = parseMulDiv(); while (pos < tokens.length) { const next = peek(); if (next && (next.type === '+' || next.type === '-')) { consume(); const right = parseMulDiv(); left = next.type === '+' ? left + right : left - right; } else { break; } } return left; } function parseMulDiv() { let left = parseUnary(); while (pos < tokens.length) { const next = peek(); if (next && (next.type === '*' || next.type === '/')) { consume(); const right = parseUnary(); if (next.type === '/') { left = left / right; } else { left = left * right; } } else { break; } } return left; } function parseUnary() { const next = peek(); if (next && (next.type === '+' || next.type === '-')) { consume(); const operand = parsePower(); return next.type === '-' ? -operand : operand; } return parsePower(); } function parsePower() { let left = parsePrimary(); const next = peek(); if (next && next.type === '^') { consume(); // Right-associative: recursively evaluate the exponent // Also allows unary operators on the exponent directly, e.g. 2^-1 const right = parsePowerOperand(); left = Math.pow(left, right); } return left; } function parsePowerOperand() { const next = peek(); if (next && (next.type === '+' || next.type === '-')) { consume(); const val = parsePower(); return next.type === '-' ? -val : val; } return parsePower(); } function parsePrimary() { const token = peek(); if (!token) { throw new Error('Unexpected end of expression'); } if (token.type === 'NUMBER') { consume(); return token.value; } if (token.type === '(') { consume('('); const val = parseExpression(); consume(')'); return val; } throw new Error(`Unexpected token '${token.type}'`); } if (tokens.length === 0) { throw new Error('Empty expression'); } const result = parseExpression(); if (pos < tokens.length) { throw new Error(`Unexpected token '${tokens[pos].type}' at end of expression`); } return result; } ```782 tokens in, 1,188 out · 8.7 s · $0.0025 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
5. Parse CSV with quoted fields
Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0003 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0012. The prompt in full.
Claude Haiku 5.5 and Gemini 3.8 Flash both passed this one. Claude Haiku 5.5 answered sooner (2.2 s to 4.5 s), and Claude Haiku 5.5's reply cost less ($0.0003 to $0.0012); Claude Haiku 5.5 wrote 513 tokens of reply, Gemini 3.8 Flash 514.
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 ·
Gemini 3.8 Flash
Passed: All 8 tests passed.
```javascript function parseCsv(text) { if (text === '') return []; const rows = []; let currentRow = []; let currentField = ''; let inQuotes = false; let fieldStarted = false; let isQuotedField = false; const len = text.length; for (let i = 0; i < len; i++) { const char = text[i]; if (!fieldStarted) { if (char === '"') { inQuotes = true; isQuotedField = true; fieldStarted = true; continue; } fieldStarted = true; } if (inQuotes) { if (char === '"') { if (i + 1 < len && text[i + 1] === '"') { currentField += '"'; i++; // Skip the escaped quote } else { inQuotes = false; } } else { currentField += char; } } else { if (char === ',') { currentRow.push(currentField); currentField = ''; fieldStarted = false; isQuotedField = false; } else if (char === '\r') { if (i + 1 < len && text[i + 1] === '\n') { i++; } currentRow.push(currentField); rows.push(currentRow); currentRow = []; currentField = ''; fieldStarted = false; isQuotedField = false; } else if (char === '\n') { currentRow.push(currentField); rows.push(currentRow); currentRow = []; currentField = ''; fieldStarted = false; isQuotedField = false; } else { currentField += char; } } } // Push the final field and row if the text didn't end immediately after a row delimiter if (fieldStarted || currentRow.length > 0) { currentRow.push(currentField); rows.push(currentRow); } return rows; } ```710 tokens in, 514 out · 4.5 s · $0.0012 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
Each Claude model against each Gemini model
Every Claude model against every Gemini 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 Gemini 4 Carbon: 5 of 5 each; Claude Fable 5.2 answered 8.8× sooner at the median and Gemini 4 Carbon cost 1.8× less.
Claude Fable 5.2 vs Gemini 4 Argon: 5 of 5 each; Claude Fable 5.2 answered 1.8× sooner at the median and Gemini 4 Argon cost 9.6× less.
Claude Fable 5.2 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Fable 5.2 answered 1.7× sooner at the median and Gemini 4 Hydrogen cost 4.1× less.
Claude Fable 5.2 vs Gemini 3.1 Pro: 5 of 5 each; Claude Fable 5.2 answered 3.8× sooner at the median and Gemini 3.1 Pro cost 1.9× less.
Claude Fable 5.2 vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.3× sooner at the median and cost 22.4× less.
Claude Fable 5.1 vs Gemini 4 Carbon: 5 of 5 each; Claude Fable 5.1 answered 8.1× sooner at the median and Gemini 4 Carbon cost 2.4× less.
Claude Fable 5.1 vs Gemini 4 Argon: 5 of 5 each; Claude Fable 5.1 answered 1.7× sooner at the median and Gemini 4 Argon cost 12.9× less.
Claude Fable 5.1 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Fable 5.1 answered 1.5× sooner at the median and Gemini 4 Hydrogen cost 5.5× less.
Claude Fable 5.1 vs Gemini 3.1 Pro: 5 of 5 each; Claude Fable 5.1 answered 3.5× sooner at the median and Gemini 3.1 Pro cost 2.5× less.
Claude Fable 5.1 vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.4× sooner at the median and cost 30.0× less.
Claude Opus 5.5 vs Gemini 4 Carbon: 5 of 5 each; Claude Opus 5.5 answered 6.3× sooner at the median and Gemini 4 Carbon cost 1.3× less.
Claude Opus 5.5 vs Gemini 4 Argon: 5 of 5 each; Claude Opus 5.5 answered 1.3× sooner at the median and Gemini 4 Argon cost 6.9× less. Gemini 4 Argon vs Claude Opus 5.5, on every job.
Claude Opus 5.5 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Opus 5.5 answered 1.2× sooner at the median and Gemini 4 Hydrogen cost 2.9× less.
Claude Opus 5.5 vs Gemini 3.1 Pro: 5 of 5 each; Claude Opus 5.5 answered 2.7× sooner at the median and Gemini 3.1 Pro cost 1.4× less. Claude Opus 5.5 vs Gemini 3.1 Pro (preview), on every job.
Claude Opus 5.5 vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.8× sooner at the median and cost 16.1× less.
Claude Sonnet 5.5 vs Gemini 4 Carbon: 5 of 5 each; Claude Sonnet 5.5 answered 14.7× sooner at the median and cost 2.8× less.
Claude Sonnet 5.5 vs Gemini 4 Argon: 5 of 5 each; Claude Sonnet 5.5 answered 3.1× sooner at the median and Gemini 4 Argon cost 2.0× less.
Claude Sonnet 5.5 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Sonnet 5.5 answered 2.8× sooner at the median and cost 1.2× less.
Claude Sonnet 5.5 vs Gemini 3.1 Pro: 5 of 5 each; Claude Sonnet 5.5 answered 6.3× sooner at the median and cost 2.6× less. Claude Sonnet 5.5 vs Gemini 3.1 Pro (preview), on every job.
Claude Sonnet 5.5 vs Gemini 3.8 Flash: 5 of 5 each; Claude Sonnet 5.5 answered 1.3× sooner at the median and Gemini 3.8 Flash cost 4.6× less.
Claude Sonnet 5 vs Gemini 4 Carbon: 5 of 5 each; Claude Sonnet 5 answered 13.8× sooner at the median and cost 1.4× less.
Claude Sonnet 5 vs Gemini 4 Argon: 5 of 5 each; Claude Sonnet 5 answered 2.9× sooner at the median and Gemini 4 Argon cost 3.9× less.
Claude Sonnet 5 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Sonnet 5 answered 2.6× sooner at the median and Gemini 4 Hydrogen cost 1.7× less.
Claude Sonnet 5 vs Gemini 3.1 Pro: 5 of 5 each; Claude Sonnet 5 answered 5.9× sooner at the median and cost 1.3× less. Claude Sonnet 5 vs Gemini 3.1 Pro (preview), on every job.
Claude Sonnet 5 vs Gemini 3.8 Flash: 5 of 5 each; Claude Sonnet 5 answered 1.2× sooner at the median and Gemini 3.8 Flash cost 9.1× less. Claude Sonnet 5 vs Gemini 3.8 Flash, on every job.
Claude Haiku 4.5 vs Gemini 4 Carbon: Claude Haiku 4.5 3 of 5, Gemini 4 Carbon 5; Claude Haiku 4.5 answered 16.7× sooner at the median and cost 4.7× less.
Claude Haiku 4.5 vs Gemini 4 Argon: Claude Haiku 4.5 3 of 5, Gemini 4 Argon 5; Claude Haiku 4.5 answered 3.5× sooner at the median and Gemini 4 Argon cost 1.2× less.
Claude Haiku 4.5 vs Gemini 4 Hydrogen: Claude Haiku 4.5 3 of 5, Gemini 4 Hydrogen 5; Claude Haiku 4.5 answered 3.1× sooner at the median and cost 2.0× less.
Claude Haiku 4.5 vs Gemini 3.1 Pro: Claude Haiku 4.5 3 of 5, Gemini 3.1 Pro 5; Claude Haiku 4.5 answered 7.2× sooner at the median and cost 4.4× less. Claude Haiku 4.5 vs Gemini 3.1 Pro (preview), on every job.
Claude Haiku 4.5 vs Gemini 3.8 Flash: Claude Haiku 4.5 3 of 5, Gemini 3.8 Flash 5; Claude Haiku 4.5 answered 1.5× sooner at the median and Gemini 3.8 Flash cost 2.7× less. Claude Haiku 4.5 vs Gemini 3.8 Flash, on every job.
Claude Haiku 5.5 vs Gemini 4 Carbon: 5 of 5 each; Claude Haiku 5.5 answered 28.3× sooner at the median and cost 35.4× less.
Claude Haiku 5.5 vs Gemini 4 Argon: 5 of 5 each; Claude Haiku 5.5 answered 5.9× sooner at the median and cost 6.5× less.
Claude Haiku 5.5 vs Gemini 4 Hydrogen: 5 of 5 each; Claude Haiku 5.5 answered 5.3× sooner at the median and cost 15.4× less.
Claude Haiku 5.5 vs Gemini 3.1 Pro: 5 of 5 each; Claude Haiku 5.5 answered 12.2× sooner at the median and cost 33.0× less.
Claude Haiku 5.5 vs Gemini 3.8 Flash: 5 of 5 each; Claude Haiku 5.5 answered 2.5× sooner at the median and cost 2.8× less.
How the coding replies are scored
Every Claude and Gemini 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. Gemini: 5 models, Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Hydrogen, Gemini 3.1 Pro (preview), and Gemini 3.8 Flash.
Price per message
The least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro); the least expensive Gemini model is Gemini 3.8 Flash (250 messages a month on Pro).
Context window
Claude goes up to 1M tokens (Claude Fable 5.2); Gemini up to 1.05M tokens (Gemini 4 Carbon).
Images and PDFs
Every model here reads images. Every model here takes a PDF as a whole file.
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 Gemini model's context window, files and API price: Claude vs Gemini.
Where your messages go
In llmwise, a message to Claude or Gemini goes to the model's maker, or through OpenRouter when llmwise can't reach the maker directly. The Privacy Policy has the details.
Questions
Which is better, Claude or Gemini 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. Gemini's 5 models passed 25 of 25; Gemini 4 Carbon, Gemini 4 Argon and 3 more each passed 5 of 5. Claude Haiku 5.5 and Gemini 3.8 Flash each passed 5 of the 5 prompts, so these coding prompts don't split Claude and Gemini; the replies on this page show how they differ.
Is Claude or Gemini cheaper?
In llmwise, the least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro), and the least expensive Gemini model is Gemini 3.8 Flash (250 messages a month 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.0056 on Gemini 3.8 Flash.
Can I use Claude and Gemini in the same chat?
Yes. Ask Claude Haiku 5.5 a question, then switch the picker to Gemini 3.8 Flash and ask again: Gemini 3.8 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.