Skip to content

Comparison · Coding

ChatGPT vs Gemini for coding

On llmwise Pro, GPT-6.2 Sol gets up to 125 messages a month and Gemini 4 Hydrogen up to 125 messages a month. ChatGPT is OpenAI's own app for its GPT models; llmwise has GPT models in its own chat, not ChatGPT itself. We ran the same 5 coding prompts on all 7 GPT models and all 5 Gemini models and published every reply: the results, then GPT-6 Luna against Gemini 3.8 Flash prompt by prompt, then how GPT 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, GPT's 7 models passed 35 of 35; GPT-6.2 Astra, GPT-6 Astra and 5 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. GPT-6 Luna and Gemini 3.8 Flash each passed 5 of the 5 prompts, so these coding prompts don't split GPT and Gemini; the replies on this page show how they differ.

GPT and Gemini on our coding test runs

Every GPT 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.

GPT and Gemini on our coding test runs
ModelPassedHard onesMessages used on ProCost per replyTime per reply
GPT-6.2 AstraOpenAI5 of 52 of 21 each, of 31 a month on Pro$0.01323.9 s
GPT-6 AstraOpenAI5 of 52 of 21 each, of 31 a month on Pro$0.01087.1 s
GPT-6.2 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00373.7 s
GPT-6.1 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00418.4 s
GPT-6 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00284.4 s
GPT-6.1 TerraOpenAI5 of 52 of 21 each, of 250 a month on Pro$0.00137.4 s
GPT-6 LunaOpenAI5 of 52 of 21 each, of 60 a day on Pro$0.00019.2 s
Gemini 4 CarbonGoogle5 of 52 of 21 each, of 62 a month on Pro$0.014137.0 s
Gemini 4 ArgonGoogle5 of 52 of 21 each, of 62 a month on Pro$0.00268.8 s
Gemini 4 HydrogenGoogle5 of 52 of 21 each, of 125 a month on Pro$0.00617.9 s
Gemini 3.1 Pro (preview)Google5 of 52 of 21 each, of 125 a month on Pro$0.013115.8 s
Gemini 3.8 FlashGoogle5 of 52 of 21 each, of 250 a month on Pro$0.00114.4 s
GPT: 35 of 35 replies passed; Gemini: 25 of 25 replies passed. Messages used is what each reply counted as on Pro; cost is what OpenRouter charged us per reply.

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.

GPT vs Gemini, prompt by prompt

Each coding prompt with GPT-6 Luna 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: GPT-6 Luna passed 5 of 5 and Gemini 3.8 Flash 5 of 5. Gemini 3.8 Flash answered 2.2× sooner at the median, 7.3 s against 3.3 s. GPT-6 Luna cost 7.9× less, $0.0007 against $0.0056 for the 5 replies. Gemini 3.8 Flash's replies ran 86% longer, in tokens of reply, thinking not counted.

  1. 1. Turn a title into a URL slug

    Everyday. GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0005. The prompt in full.

    GPT-6 Luna and Gemini 3.8 Flash both passed this one. They took about as long (GPT-6 Luna 2.3 s, Gemini 3.8 Flash 2.2 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0005); GPT-6 Luna wrote 74 tokens of reply, Gemini 3.8 Flash 124.

    • GPT-6 Luna

      Passed: All 7 tests passed.

      ```javascript
      function slugify(title) {
        return title
          .toLowerCase()
          .normalize("NFD")
          .replace(/[\u0300-\u036f]/g, "")
          .replace(/[^a-z0-9]+/g, "-")
          .replace(/^-|-$/g, "");
      }
      ```

      655 tokens in, 74 out · 2.3 s · $0.0001 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

    • 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. 2. Parse a duration like “1h 30m”

    Everyday. GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0006. The prompt in full.

    GPT-6 Luna and Gemini 3.8 Flash both passed this one. Gemini 3.8 Flash answered sooner (3.1 s to 7.3 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0006); GPT-6 Luna wrote 125 tokens of reply, Gemini 3.8 Flash 188.

    • GPT-6 Luna

      Passed: All 10 tests passed.

      ```javascript
      function parseDuration(text) {
        const match = /^\s*(?:(\d+)h)?\s*(?:(\d+)m)?\s*(?:(\d+)s)?\s*$/.exec(text);
      
        if (!match || !match[1] && !match[2] && !match[3]) return null;
      
        return Number(match[1] || 0) * 3600
             + Number(match[2] || 0) * 60
             + Number(match[3] || 0);
      }
      ```

      640 tokens in, 296 out (171 of them reasoning) · 7.3 s · $0.0001 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

    • 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. 3. Merge overlapping intervals

    Everyday. GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0007. The prompt in full.

    GPT-6 Luna and Gemini 3.8 Flash both passed this one. GPT-6 Luna answered sooner (3.0 s to 3.3 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0007); GPT-6 Luna wrote 127 tokens of reply, Gemini 3.8 Flash 235.

    • GPT-6 Luna

      Passed: All 7 tests passed.

      ```javascript
      function mergeIntervals(intervals) {
        const sorted = intervals.map(([start, end]) => [start, end]);
        sorted.sort((a, b) => a[0] - b[0]);
      
        const merged = [];
        for (const [start, end] of sorted) {
          const last = merged[merged.length - 1];
      
          if (!last || start > last[1]) {
            merged.push([start, end]);
          } else {
            last[1] = Math.max(last[1], end);
          }
        }
      
        return merged;
      }
      ```

      621 tokens in, 127 out · 3.0 s · $0.0001 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

    • 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. 4. Evaluate an arithmetic expression, no eval

    Hard. GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0003 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0025. The prompt in full.

    GPT-6 Luna and Gemini 3.8 Flash both passed this one. Gemini 3.8 Flash answered sooner (8.7 s to 18.9 s), and GPT-6 Luna's reply cost less ($0.0003 to $0.0025); GPT-6 Luna wrote 536 tokens of reply, Gemini 3.8 Flash 1,188.

    • GPT-6 Luna

      Passed: All 15 tests passed.

      ```javascript
      function evaluate(expression) {
        if (typeof expression !== "string") {
          throw new Error("Expression must be a string");
        }
      
        const tokens = [];
        let i = 0;
      
        while (i < expression.length) {
          if (/\s/.test(expression[i])) {
            i++;
            continue;
          }
      
          const number = /(?:\d+(?:\.\d*)?|\.\d+)/y;
          number.lastIndex = i;
          const match = number.exec(expression);
      
          if (match) {
            tokens.push({ type: "number", value: Number(match[0]) });
            i = number.lastIndex;
          } else if ("+-*/^()".includes(expression[i])) {
            tokens.push({ type: expression[i], value: expression[i] });
            i++;
          } else {
            throw new Error("Invalid expression");
          }
        }
      
        let position = 0;
      
        function parsePrimary() {
          const token = tokens[position];
      
          if (token?.type === "number") {
            position++;
            return token.value;
          }
      
          if (token?.type === "(") {
            position++;
            const value = parseSum();
            if (tokens[position]?.type !== ")") throw new Error("Invalid expression");
            position++;
            return value;
          }
      
          throw new Error("Invalid expression");
        }
      
        function parsePower() {
          const base = parsePrimary();
      
          if (tokens[position]?.type === "^") {
            position++;
            return base ** parseUnary();
          }
      
          return base;
        }
      
        function parseUnary() {
          if (tokens[position]?.type === "-") {
            position++;
            return -parseUnary();
          }
      
          return parsePower();
        }
      
        function parseProduct() {
          let value = parseUnary();
      
          while (tokens[position]?.type === "*" || tokens[position]?.type === "/") {
            const operator = tokens[position++].type;
            const right = parseUnary();
            value = operator === "*" ? value * right : value / right;
          }
      
          return value;
        }
      
        function parseSum() {
          let value = parseProduct();
      
          while (tokens[position]?.type === "+" || tokens[position]?.type === "-") {
            const operator = tokens[position++].type;
            const right = parseProduct();
            value = operator === "+" ? value + right : value - right;
          }
      
          return value;
        }
      
        const result = parseSum();
        if (position !== tokens.length) throw new Error("Invalid expression");
        return result;
      }
      ```

      721 tokens in, 933 out (397 of them reasoning) · 18.9 s · $0.0003 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

    • 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. 5. Parse CSV with quoted fields

    Hard. GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0002 · Gemini: 5 of 5 models passed, Gemini 3.8 Flash the cheapest at $0.0012. The prompt in full.

    GPT-6 Luna and Gemini 3.8 Flash both passed this one. Gemini 3.8 Flash answered sooner (4.5 s to 14.4 s), and GPT-6 Luna's reply cost less ($0.0002 to $0.0012); GPT-6 Luna wrote 346 tokens of reply, Gemini 3.8 Flash 514.

    • GPT-6 Luna

      Passed: All 8 tests passed.

      ```javascript
      function parseCsv(text) {
        if (text === "") return [];
      
        const rows = [];
        let row = [];
        let field = "";
        let inQuotes = false;
        let fieldStart = true;
        let endedWithRowBreak = false;
      
        for (let i = 0; i < text.length; i++) {
          const char = text[i];
      
          if (inQuotes) {
            if (char === '"') {
              if (text[i + 1] === '"') {
                field += '"';
                i++;
              } else {
                inQuotes = false;
              }
            } else {
              field += char;
            }
            endedWithRowBreak = false;
            continue;
          }
      
          if (char === '"' && fieldStart) {
            inQuotes = true;
            fieldStart = false;
            endedWithRowBreak = false;
          } else if (char === ",") {
            row.push(field);
            field = "";
            fieldStart = true;
            endedWithRowBreak = false;
          } else if (char === "\n" || (char === "\r" && text[i + 1] === "\n")) {
            if (char === "\r") i++;
            row.push(field);
            rows.push(row);
            row = [];
            field = "";
            fieldStart = true;
            endedWithRowBreak = true;
          } else {
            field += char;
            fieldStart = false;
            endedWithRowBreak = false;
          }
        }
      
        if (!endedWithRowBreak) {
          row.push(field);
          rows.push(row);
        }
      
        return rows;
      }
      ```

      653 tokens in, 736 out (390 of them reasoning) · 14.4 s · $0.0002 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·

    • 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 GPT model against each Gemini model

Every GPT 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.

  • GPT-6.2 Astra vs Gemini 4 Carbon: 5 of 5 each; GPT-6.2 Astra answered 10.3× sooner at the median and cost about the same.

  • GPT-6.2 Astra vs Gemini 4 Argon: 5 of 5 each; GPT-6.2 Astra answered 2.1× sooner at the median and Gemini 4 Argon cost 5.1× less.

  • GPT-6.2 Astra vs Gemini 4 Hydrogen: 5 of 5 each; GPT-6.2 Astra answered 1.9× sooner at the median and Gemini 4 Hydrogen cost 2.2× less.

  • GPT-6.2 Astra vs Gemini 3.1 Pro: 5 of 5 each; GPT-6.2 Astra answered 4.4× sooner at the median and cost about the same.

  • GPT-6.2 Astra vs Gemini 3.8 Flash: 5 of 5 each; they took about as long and Gemini 3.8 Flash cost 11.9× less.

  • GPT-6 Astra vs Gemini 4 Carbon: 5 of 5 each; GPT-6 Astra answered 6.3× sooner at the median and cost 1.3× less.

  • GPT-6 Astra vs Gemini 4 Argon: 5 of 5 each; GPT-6 Astra answered 1.3× sooner at the median and Gemini 4 Argon cost 4.2× less. Gemini 4 Argon vs GPT-6 Astra, on every job.

  • GPT-6 Astra vs Gemini 4 Hydrogen: 5 of 5 each; GPT-6 Astra answered 1.2× sooner at the median and Gemini 4 Hydrogen cost 1.8× less.

  • GPT-6 Astra vs Gemini 3.1 Pro: 5 of 5 each; GPT-6 Astra answered 2.7× sooner at the median and cost 1.2× less.

  • GPT-6 Astra vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.8× sooner at the median and cost 9.7× less.

  • GPT-6.2 Sol vs Gemini 4 Carbon: 5 of 5 each; GPT-6.2 Sol answered 9.7× sooner at the median and cost 3.8× less.

  • GPT-6.2 Sol vs Gemini 4 Argon: 5 of 5 each; GPT-6.2 Sol answered 2.0× sooner at the median and Gemini 4 Argon cost 1.4× less.

  • GPT-6.2 Sol vs Gemini 4 Hydrogen: 5 of 5 each; GPT-6.2 Sol answered 1.8× sooner at the median and cost 1.6× less.

  • GPT-6.2 Sol vs Gemini 3.1 Pro: 5 of 5 each; GPT-6.2 Sol answered 4.2× sooner at the median and cost 3.5× less.

  • GPT-6.2 Sol vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.2× sooner at the median and cost 3.3× less.

  • GPT-6.1 Sol vs Gemini 4 Carbon: 5 of 5 each; GPT-6.1 Sol answered 4.6× sooner at the median and cost 3.4× less.

  • GPT-6.1 Sol vs Gemini 4 Argon: 5 of 5 each; they took about as long and Gemini 4 Argon cost 1.6× less. Gemini 4 Argon vs GPT-6.1 Sol, on every job.

  • GPT-6.1 Sol vs Gemini 4 Hydrogen: 5 of 5 each; Gemini 4 Hydrogen answered 1.1× sooner at the median and GPT-6.1 Sol cost 1.5× less.

  • GPT-6.1 Sol vs Gemini 3.1 Pro: 5 of 5 each; GPT-6.1 Sol answered 2.0× sooner at the median and cost 3.2× less.

  • GPT-6.1 Sol vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 2.4× sooner at the median and cost 3.7× less.

  • GPT-6 Sol vs Gemini 4 Carbon: 5 of 5 each; GPT-6 Sol answered 7.6× sooner at the median and cost 5.0× less.

  • GPT-6 Sol vs Gemini 4 Argon: 5 of 5 each; GPT-6 Sol answered 1.6× sooner at the median and cost about the same.

  • GPT-6 Sol vs Gemini 4 Hydrogen: 5 of 5 each; GPT-6 Sol answered 1.4× sooner at the median and cost 2.2× less.

  • GPT-6 Sol vs Gemini 3.1 Pro: 5 of 5 each; GPT-6 Sol answered 3.3× sooner at the median and cost 4.6× less. GPT-6 Sol vs Gemini 3.1 Pro (preview), on every job.

  • GPT-6 Sol vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 1.5× sooner at the median and cost 2.5× less. GPT-6 Sol vs Gemini 3.8 Flash, on every job.

  • GPT-6.1 Terra vs Gemini 4 Carbon: 5 of 5 each; GPT-6.1 Terra answered 5.4× sooner at the median and cost 10.6× less.

  • GPT-6.1 Terra vs Gemini 4 Argon: 5 of 5 each; GPT-6.1 Terra answered 1.1× sooner at the median and cost 1.9× less.

  • GPT-6.1 Terra vs Gemini 4 Hydrogen: 5 of 5 each; they took about as long and GPT-6.1 Terra cost 4.6× less.

  • GPT-6.1 Terra vs Gemini 3.1 Pro: 5 of 5 each; GPT-6.1 Terra answered 2.3× sooner at the median and cost 9.9× less.

  • GPT-6.1 Terra vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 2.1× sooner at the median and cost 1.2× less. GPT-6.1 Terra vs Gemini 3.8 Flash, on every job.

  • GPT-6 Luna vs Gemini 4 Carbon: 5 of 5 each; GPT-6 Luna answered 5.0× sooner at the median and cost 99.5× less.

  • GPT-6 Luna vs Gemini 4 Argon: 5 of 5 each; they took about as long and GPT-6 Luna cost 18.3× less.

  • GPT-6 Luna vs Gemini 4 Hydrogen: 5 of 5 each; they took about as long and GPT-6 Luna cost 43.2× less.

  • GPT-6 Luna vs Gemini 3.1 Pro: 5 of 5 each; GPT-6 Luna answered 2.1× sooner at the median and cost 92.8× less.

  • GPT-6 Luna vs Gemini 3.8 Flash: 5 of 5 each; Gemini 3.8 Flash answered 2.2× sooner at the median and GPT-6 Luna cost 7.9× less. GPT-6 Luna vs Gemini 3.8 Flash, on every job.

How the coding replies are scored

Every GPT 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

    GPT: 7 models, GPT-6.2 Astra, GPT-6 Astra, GPT-6.2 Sol, GPT-6.1 Sol, GPT-6 Sol, GPT-6.1 Terra, and GPT-6 Luna. 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 GPT model is GPT-6 Luna (60 messages a day on Pro); the least expensive Gemini model is Gemini 3.8 Flash (250 messages a month on Pro).

  • Context window

    GPT goes up to 1.05M tokens (GPT-6.2 Astra); 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, GPT-6.2 Astra and GPT-6 Astra from Pro up. Every plan is month to month: cancel in two clicks.

Every GPT and Gemini model's context window, files and API price: ChatGPT vs Gemini.

Where your messages go

In llmwise, a message to GPT 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.

Bar chart: Prompts passed in our test runs, coding. GPT-6 Luna: 5 of 5; Gemini 3.8 Flash: 5 of 5; GPT-6.1 Terra: 5 of 5; GPT-6 Sol: 5 of 5; GPT-6.2 Sol: 5 of 5; GPT-6.1 Sol: 5 of 5; Gemini 4 Hydrogen: 5 of 5; Gemini 3.1 Pro (preview): 5 of 5; Gemini 4 Argon: 5 of 5; Gemini 4 Carbon: 5 of 5; GPT-6 Astra: 5 of 5; GPT-6.2 Astra: 5 of 5.
Our test runs of November 17 and 18, 2026: the same prompts for every model, each reply checked the same way.

Questions

Which is better, ChatGPT or Gemini for coding?

In our coding test runs on November 18, 2026, GPT's 7 models passed 35 of 35; GPT-6.2 Astra, GPT-6 Astra and 5 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. GPT-6 Luna and Gemini 3.8 Flash each passed 5 of the 5 prompts, so these coding prompts don't split GPT and Gemini; the replies on this page show how they differ.

Is GPT or Gemini cheaper?

In llmwise, the least expensive GPT model is GPT-6 Luna (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 GPT-6 Luna and $0.0056 on Gemini 3.8 Flash.

Can I use GPT and Gemini in the same chat?

Yes. Ask GPT-6 Luna a question, then switch the picker to Gemini 3.8 Flash and ask again: Gemini 3.8 Flash sees the whole conversation, GPT-6 Luna'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.