Skip to content

Comparison · Coding

Claude vs ChatGPT for coding

On llmwise Pro, Claude Sonnet 5.5 gets up to 125 messages a month and GPT-6.2 Sol 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 Claude models and all 7 GPT models and published every reply: the results, then Claude Haiku 5.5 against GPT-6 Luna prompt by prompt, then how Claude and GPT compare on price per message, context and files.

Based on 70 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. GPT's 7 models passed 35 of 35; GPT-6.2 Astra, GPT-6 Astra and 5 more each passed 5 of 5. Claude Haiku 5.5 and GPT-6 Luna each passed 5 of the 5 prompts, so these coding prompts don't split Claude and GPT; the replies on this page show how they differ.

Claude and GPT on our coding test runs

Every Claude and GPT model in llmwise on our 5 coding prompts: how many replies passed, what each counted as on Pro, and what it cost to run.

Claude and GPT on our coding test runs
ModelPassedHard onesMessages used on ProCost per replyTime per reply
Claude Fable 5.2Anthropic5 of 52 of 21 each, of 31 a month on Pro$0.02495.6 s
Claude Fable 5.1Anthropic5 of 52 of 21 each, of 31 a month on Pro$0.03336.6 s
Claude Opus 5.5Anthropic5 of 52 of 21 each, of 62 a month on Pro$0.01797.3 s
Claude Sonnet 5.5Anthropic5 of 52 of 21 each, of 125 a month on Pro$0.00513.2 s
Claude Sonnet 5Anthropic5 of 52 of 21 each, of 125 a month on Pro$0.01018.0 s
Claude Haiku 4.5Anthropic3 of 50 of 21 each, of 250 a month on Pro$0.00303.1 s
Claude Haiku 5.5Anthropic5 of 52 of 21 each, of 60 a day on Pro$0.00043.0 s
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
Claude: 33 of 35 replies passed; GPT: 35 of 35 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.

Claude vs GPT, prompt by prompt

Each coding prompt with Claude Haiku 5.5 and GPT-6 Luna 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 GPT-6 Luna 5 of 5. Claude Haiku 5.5 answered 5.7× sooner at the median, 1.3 s against 7.3 s. GPT-6 Luna cost 2.8× less, $0.0020 against $0.0007 for the 5 replies. Claude Haiku 5.5's replies ran 72% longer, in tokens of reply, thinking not counted.

  1. 1. Turn a title into a URL slug

    Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0002 · GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001. The prompt in full.

    Claude Haiku 5.5 and GPT-6 Luna both passed this one. Claude Haiku 5.5 answered sooner (1.3 s to 2.3 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0002); Claude Haiku 5.5 wrote 112 tokens of reply, GPT-6 Luna 74.

    • 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 ·

    • 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 ·

  2. 2. Parse a duration like “1h 30m”

    Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001. The prompt in full.

    Claude Haiku 5.5 and GPT-6 Luna both passed this one. Claude Haiku 5.5 answered sooner (1.2 s to 7.3 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0001); Claude Haiku 5.5 wrote 212 tokens of reply, GPT-6 Luna 125.

    • 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 ·

    • 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 ·

  3. 3. Merge overlapping intervals

    Everyday. Claude: 7 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0001 · GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0001. The prompt in full.

    Claude Haiku 5.5 and GPT-6 Luna both passed this one. Claude Haiku 5.5 answered sooner (1.1 s to 3.0 s), and GPT-6 Luna's reply cost less ($0.0001 to $0.0001); Claude Haiku 5.5 wrote 180 tokens of reply, GPT-6 Luna 127.

    • 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 ·

    • 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 ·

  4. 4. Evaluate an arithmetic expression, no eval

    Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0013 · GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0003. The prompt in full.

    Claude Haiku 5.5 and GPT-6 Luna both passed this one. Claude Haiku 5.5 answered sooner (9.3 s to 18.9 s), and GPT-6 Luna's reply cost less ($0.0003 to $0.0013); Claude Haiku 5.5 wrote 1,063 tokens of reply, GPT-6 Luna 536.

    • 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 ·

    • 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 ·

  5. 5. Parse CSV with quoted fields

    Hard. Claude: 6 of 7 models passed, Claude Haiku 5.5 the cheapest at $0.0003 · GPT: 7 of 7 models passed, GPT-6 Luna the cheapest at $0.0002. The prompt in full.

    Claude Haiku 5.5 and GPT-6 Luna both passed this one. Claude Haiku 5.5 answered sooner (2.2 s to 14.4 s), and GPT-6 Luna's reply cost less ($0.0002 to $0.0003); Claude Haiku 5.5 wrote 513 tokens of reply, GPT-6 Luna 346.

    • 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 ·

    • 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 ·

Each Claude model against each GPT model

Every Claude model against every GPT 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 GPT-6.2 Astra: 5 of 5 each; GPT-6.2 Astra answered 1.2× sooner at the median and cost 1.9× less.

  • Claude Fable 5.2 vs GPT-6 Astra: 5 of 5 each; Claude Fable 5.2 answered 1.4× sooner at the median and GPT-6 Astra cost 2.3× less.

  • Claude Fable 5.2 vs GPT-6.2 Sol: 5 of 5 each; they took about as long and GPT-6.2 Sol cost 6.7× less.

  • Claude Fable 5.2 vs GPT-6.1 Sol: 5 of 5 each; Claude Fable 5.2 answered 1.9× sooner at the median and GPT-6.1 Sol cost 6.1× less.

  • Claude Fable 5.2 vs GPT-6 Sol: 5 of 5 each; Claude Fable 5.2 answered 1.2× sooner at the median and GPT-6 Sol cost 8.8× less.

  • Claude Fable 5.2 vs GPT-6.1 Terra: 5 of 5 each; Claude Fable 5.2 answered 1.6× sooner at the median and GPT-6.1 Terra cost 18.7× less.

  • Claude Fable 5.2 vs GPT-6 Luna: 5 of 5 each; Claude Fable 5.2 answered 1.8× sooner at the median and GPT-6 Luna cost 176.0× less.

  • Claude Fable 5.1 vs GPT-6.2 Astra: 5 of 5 each; GPT-6.2 Astra answered 1.3× sooner at the median and cost 2.5× less.

  • Claude Fable 5.1 vs GPT-6 Astra: 5 of 5 each; Claude Fable 5.1 answered 1.3× sooner at the median and GPT-6 Astra cost 3.1× less. Claude Fable 5.1 vs GPT-6 Astra, on every job.

  • Claude Fable 5.1 vs GPT-6.2 Sol: 5 of 5 each; GPT-6.2 Sol answered 1.2× sooner at the median and cost 9.0× less.

  • Claude Fable 5.1 vs GPT-6.1 Sol: 5 of 5 each; Claude Fable 5.1 answered 1.8× sooner at the median and GPT-6.1 Sol cost 8.2× less.

  • Claude Fable 5.1 vs GPT-6 Sol: 5 of 5 each; they took about as long and GPT-6 Sol cost 11.8× less.

  • Claude Fable 5.1 vs GPT-6.1 Terra: 5 of 5 each; Claude Fable 5.1 answered 1.5× sooner at the median and GPT-6.1 Terra cost 25.1× less.

  • Claude Fable 5.1 vs GPT-6 Luna: 5 of 5 each; Claude Fable 5.1 answered 1.6× sooner at the median and GPT-6 Luna cost 236.0× less.

  • Claude Opus 5.5 vs GPT-6.2 Astra: 5 of 5 each; GPT-6.2 Astra answered 1.6× sooner at the median and cost 1.4× less.

  • Claude Opus 5.5 vs GPT-6 Astra: 5 of 5 each; they took about as long and GPT-6 Astra cost 1.7× less. Claude Opus 5.5 vs GPT-6 Astra, on every job.

  • Claude Opus 5.5 vs GPT-6.2 Sol: 5 of 5 each; GPT-6.2 Sol answered 1.5× sooner at the median and cost 4.8× less.

  • Claude Opus 5.5 vs GPT-6.1 Sol: 5 of 5 each; Claude Opus 5.5 answered 1.4× sooner at the median and GPT-6.1 Sol cost 4.4× less.

  • Claude Opus 5.5 vs GPT-6 Sol: 5 of 5 each; GPT-6 Sol answered 1.2× sooner at the median and cost 6.4× less. Claude Opus 5.5 vs GPT-6 Sol, on every job.

  • Claude Opus 5.5 vs GPT-6.1 Terra: 5 of 5 each; Claude Opus 5.5 answered 1.2× sooner at the median and GPT-6.1 Terra cost 13.5× less.

  • Claude Opus 5.5 vs GPT-6 Luna: 5 of 5 each; Claude Opus 5.5 answered 1.3× sooner at the median and GPT-6 Luna cost 126.9× less.

  • Claude Sonnet 5.5 vs GPT-6.2 Astra: 5 of 5 each; Claude Sonnet 5.5 answered 1.4× sooner at the median and cost 2.6× less.

  • Claude Sonnet 5.5 vs GPT-6 Astra: 5 of 5 each; Claude Sonnet 5.5 answered 2.3× sooner at the median and cost 2.1× less.

  • Claude Sonnet 5.5 vs GPT-6.2 Sol: 5 of 5 each; Claude Sonnet 5.5 answered 1.5× sooner at the median and GPT-6.2 Sol cost 1.4× less.

  • Claude Sonnet 5.5 vs GPT-6.1 Sol: 5 of 5 each; Claude Sonnet 5.5 answered 3.2× sooner at the median and GPT-6.1 Sol cost 1.2× less. GPT-6.1 Sol vs Claude Sonnet 5.5, on every job.

  • Claude Sonnet 5.5 vs GPT-6 Sol: 5 of 5 each; Claude Sonnet 5.5 answered 1.9× sooner at the median and GPT-6 Sol cost 1.8× less. Claude Sonnet 5.5 vs GPT-6 Sol, on every job.

  • Claude Sonnet 5.5 vs GPT-6.1 Terra: 5 of 5 each; Claude Sonnet 5.5 answered 2.7× sooner at the median and GPT-6.1 Terra cost 3.8× less.

  • Claude Sonnet 5.5 vs GPT-6 Luna: 5 of 5 each; Claude Sonnet 5.5 answered 3.0× sooner at the median and GPT-6 Luna cost 35.9× less.

  • Claude Sonnet 5 vs GPT-6.2 Astra: 5 of 5 each; Claude Sonnet 5 answered 1.3× sooner at the median and cost 1.3× less.

  • Claude Sonnet 5 vs GPT-6 Astra: 5 of 5 each; Claude Sonnet 5 answered 2.2× sooner at the median and cost about the same.

  • Claude Sonnet 5 vs GPT-6.2 Sol: 5 of 5 each; Claude Sonnet 5 answered 1.4× sooner at the median and GPT-6.2 Sol cost 2.7× less.

  • Claude Sonnet 5 vs GPT-6.1 Sol: 5 of 5 each; Claude Sonnet 5 answered 3.0× sooner at the median and GPT-6.1 Sol cost 2.5× less.

  • Claude Sonnet 5 vs GPT-6 Sol: 5 of 5 each; Claude Sonnet 5 answered 1.8× sooner at the median and GPT-6 Sol cost 3.6× less. Claude Sonnet 5 vs GPT-6 Sol, on every job.

  • Claude Sonnet 5 vs GPT-6.1 Terra: 5 of 5 each; Claude Sonnet 5 answered 2.6× sooner at the median and GPT-6.1 Terra cost 7.6× less.

  • Claude Sonnet 5 vs GPT-6 Luna: 5 of 5 each; Claude Sonnet 5 answered 2.8× sooner at the median and GPT-6 Luna cost 71.4× less.

  • Claude Haiku 4.5 vs GPT-6.2 Astra: Claude Haiku 4.5 3 of 5, GPT-6.2 Astra 5; Claude Haiku 4.5 answered 1.6× sooner at the median and cost 4.4× less.

  • Claude Haiku 4.5 vs GPT-6 Astra: Claude Haiku 4.5 3 of 5, GPT-6 Astra 5; Claude Haiku 4.5 answered 2.6× sooner at the median and cost 3.6× less.

  • Claude Haiku 4.5 vs GPT-6.2 Sol: Claude Haiku 4.5 3 of 5, GPT-6.2 Sol 5; Claude Haiku 4.5 answered 1.7× sooner at the median and cost 1.2× less.

  • Claude Haiku 4.5 vs GPT-6.1 Sol: Claude Haiku 4.5 3 of 5, GPT-6.1 Sol 5; Claude Haiku 4.5 answered 3.6× sooner at the median and cost 1.4× less.

  • Claude Haiku 4.5 vs GPT-6 Sol: Claude Haiku 4.5 3 of 5, GPT-6 Sol 5; Claude Haiku 4.5 answered 2.2× sooner at the median and cost about the same. Claude Haiku 4.5 vs GPT-6 Sol, on every job.

  • Claude Haiku 4.5 vs GPT-6.1 Terra: Claude Haiku 4.5 3 of 5, GPT-6.1 Terra 5; Claude Haiku 4.5 answered 3.1× sooner at the median and GPT-6.1 Terra cost 2.3× less. GPT-6.1 Terra vs Claude Haiku 4.5, on every job.

  • Claude Haiku 4.5 vs GPT-6 Luna: Claude Haiku 4.5 3 of 5, GPT-6 Luna 5; Claude Haiku 4.5 answered 3.4× sooner at the median and GPT-6 Luna cost 21.2× less. Claude Haiku 4.5 vs GPT-6 Luna, on every job.

  • Claude Haiku 5.5 vs GPT-6.2 Astra: 5 of 5 each; Claude Haiku 5.5 answered 2.7× sooner at the median and cost 33.3× less.

  • Claude Haiku 5.5 vs GPT-6 Astra: 5 of 5 each; Claude Haiku 5.5 answered 4.5× sooner at the median and cost 27.3× less.

  • Claude Haiku 5.5 vs GPT-6.2 Sol: 5 of 5 each; Claude Haiku 5.5 answered 2.9× sooner at the median and cost 9.4× less.

  • Claude Haiku 5.5 vs GPT-6.1 Sol: 5 of 5 each; Claude Haiku 5.5 answered 6.1× sooner at the median and cost 10.3× less.

  • Claude Haiku 5.5 vs GPT-6 Sol: 5 of 5 each; Claude Haiku 5.5 answered 3.7× sooner at the median and cost 7.1× less.

  • Claude Haiku 5.5 vs GPT-6.1 Terra: 5 of 5 each; Claude Haiku 5.5 answered 5.3× sooner at the median and cost 3.4× less.

  • Claude Haiku 5.5 vs GPT-6 Luna: 5 of 5 each; Claude Haiku 5.5 answered 5.7× sooner at the median and GPT-6 Luna cost 2.8× less. Claude Haiku 5.5 vs GPT-6 Luna, on every job.

How the coding replies are scored

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

  • Price per message

    The least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro); the least expensive GPT model is GPT-6 Luna (60 messages a day on Pro).

  • Context window

    Claude goes up to 1M tokens (Claude Fable 5.2); GPT up to 1.05M tokens (GPT-6.2 Astra).

  • 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, Claude Fable 5.1, GPT-6.2 Astra, and GPT-6 Astra from Pro up. Every plan is month to month: cancel in two clicks.

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

Where your messages go

In llmwise, a message to Claude or GPT 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; Claude Haiku 5.5: 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; Claude Sonnet 5.5: 5 of 5; Claude Sonnet 5: 5 of 5; Claude Opus 5.5: 5 of 5; GPT-6 Astra: 5 of 5; GPT-6.2 Astra: 5 of 5; Claude Fable 5.2: 5 of 5; Claude Fable 5.1: 5 of 5; Claude Haiku 4.5: 3 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, Claude or ChatGPT 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. GPT's 7 models passed 35 of 35; GPT-6.2 Astra, GPT-6 Astra and 5 more each passed 5 of 5. Claude Haiku 5.5 and GPT-6 Luna each passed 5 of the 5 prompts, so these coding prompts don't split Claude and GPT; the replies on this page show how they differ.

Is Claude or GPT cheaper?

In llmwise, the least expensive Claude model is Claude Haiku 5.5 (60 messages a day on Pro), and the least expensive GPT model is GPT-6 Luna (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.0008 on GPT-6 Luna.

Can I use Claude and GPT in the same chat?

Yes. Ask Claude Haiku 5.5 a question, then switch the picker to GPT-6 Luna and ask again: GPT-6 Luna 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.