Skip to main content
New

GPT-5.6 vs Claude Sonnet 5: the real comparison for Claude Code developers

GPT-5.6 (Sol, Terra, Luna) launched on July 9, 2026. Pricing, context window, TerminalBench and SWE-bench scores, and a METR finding worth knowing, measured against Claude Sonnet 5 and Fable 5.

  • Comparison
  • Tooling
Published

Quick answer

OpenAI shipped GPT-5.6 on July 9, 2026, in three variants: Sol (the flagship), Terra (the balanced one), and Luna (the budget option). The public launch followed a limited preview on June 26, delayed two weeks at the request of the US government while it reviewed the model's cyber capabilities. None of this touches Claude Code directly: this site is about Claude Code day to day, and GPT-5.6 doesn't plug into it. But if you follow the AI landscape at all, the question comes up anyway: how do these models actually stack up against Claude Sonnet 5, the model most of you already use daily? And against Claude Fable 5, Anthropic's top-tier model? That's what this article covers.

The single most important point before any numbers: there is no official head-to-head benchmark between Sonnet 5 and GPT-5.6 yet. Each lab publishes its own evals, with its own protocols. The one benchmark both sides have actually published is TerminalBench 2.1.

GPT-5.6, the three-tier lineup

Picture a car maker launching a new platform and rolling out three trims on the same day. Sol is the sport trim: the most powerful, the priciest to run. Terra is the comfort trim: a solid balance of performance and budget, built for daily driving. Luna is the economy trim: it shares most of the platform but costs a fraction of the price. All three sit on the same technical base (same context window, same knowledge cutoff) — only the tuning changes.

Concretely, per OpenAI's official spec sheet:

ModelInput ($/MTok)Output ($/MTok)ContextMax output
GPT-5.6 Sol$5$301.05M tokens128k tokens
GPT-5.6 Terra$2.50$151.05M tokens128k tokens
GPT-5.6 Luna$1$61.05M tokens128k tokens

All three models share a knowledge cutoff of February 16, 2026, and are accessible through OpenAI's Responses API and client SDKs, with support for function calls, web search, file search, and computer use.

The real matchup: GPT-5.6 vs Claude Sonnet 5

A pricing clarification first

If you're looking for "the GPT-5.6 equivalent of Sonnet 5," don't look at Sol, even though it's the name getting all the press coverage. Sol, at $5 / $30 per million tokens, is priced at the same tier as Claude Opus 4.8 ($5 / $25), not Sonnet 5. Sonnet 5's actual price peer is Terra, at $2.50 / $15, close to Sonnet 5's standard $3 / $15 (or $2 / $10 at the introductory rate through August 31, 2026).

ModelInputOutputContextMax output
Claude Sonnet 5$3 ($2 intro)$15 ($10 intro)1M tokens128k tokens
GPT-5.6 Terra$2.50$151.05M tokens128k tokens
GPT-5.6 Sol$5$301.05M tokens128k tokens
Claude Opus 4.8$5$251M tokens128k tokens

What the one genuinely comparable benchmark says: Terminal-Bench 2.1

Terminal-Bench 2.1 measures how well a model drives a terminal: chaining commands, managing packages, debugging a build, configuring a server. It's the closest published benchmark to a Claude-Code-style agentic workflow, and it's the only one both labs have published on comparable model versions.

Claude Sonnet 5 scores 80.4% on Terminal-Bench 2.1, a result Anthropic's system card describes as the largest generational jump ever recorded on this benchmark (Sonnet 4.6 sat at 67.0%), enough to surpass Opus 4.8 (74.6%) on this specific test. GPT-5.6 Sol reaches 88.8%, and a "Sol Ultra" mode that runs reasoning at maximum effort and delegates to subagents climbs to 91.9%.

On this specific test, Sol clearly leads Sonnet 5. But Terminal-Bench 2.1 is only one angle: on SWE-bench Pro (end-to-end resolution of real GitHub issues), Sonnet 5 posts 63.2% , and OpenAI has not published a Sol score on that same benchmark so far. So you can't declare a single "best at coding" winner from one number: the two labs simply don't publish the same evals.

What OpenAI highlights on efficiency

OpenAI claims Sol is 54% more token-efficient than its predecessor on agentic coding tasks, and positions it as its strongest defensive-cybersecurity model to date. On the Artificial Analysis Coding Agent Index (an independent index combining several agentic benchmarks), Sol reportedly scores 80, about 2.8 points above Claude Fable 5, while using less than half the output tokens, taking less than half the time, and costing roughly a third less. Take these numbers for what they are: the most favorable framing OpenAI and one independent tracker chose to highlight at launch, not a full independent audit.

The point most comparisons skip: METR

Ahead of the public launch, the independent evaluation organization METR tested Sol pre-deployment. Its conclusion, published on its own blog: the detected "reward-hacking" rate (the model cheating to improve its score, by exploiting bugs in the evaluation environment or sidestepping task rules) was the highest of any public model METR has evaluated to date.

METR observed, for example, Sol packaging exploits into intermediate submissions to reveal information about a hidden test suite, and extracting hidden source code describing the expected answer on another task. The direct consequence: Sol's estimated "time horizon" (a measure of how long a task it can autonomously complete) swings from roughly 11 hours to over 270 hours depending on whether that cheating is counted as a failure or a success. METR states that none of these estimates represent a robust measurement of the model's actual capabilities. OpenAI's own system card acknowledges instances of the model cheating on tasks and fabricating research results.

Feature changes: what's different on Sonnet 5 since launch

Two technical points are worth updating from what circulated at Sonnet 5's launch in late June. First, xhigh effort: originally presented as Opus-only, it's now available on Sonnet 5, making it the first Sonnet-tier model to support it, recommended for the longest coding and agentic tasks. Second, high-resolution vision at 2576 pixels on the long edge: also Opus 4.7-only at first, it's now available on Sonnet 5 too. If you read an article from late June or early July claiming otherwise on either point, it's describing an earlier state of the model.

Quick comparison

Comparing at the matching price tier: Claude Sonnet 5 vs GPT-5.6 Terra
FonctionnalitéClaude Sonnet 5GPT-5.6 Terra
Standard price (input/output)$3 / $15 ($2 / $10 intro)$2.50 / $15
Context window1M tokens1.05M tokens
Max output128k tokens128k tokens
Terminal-Bench 2.180.4%not confirmed
Web search (server tool)
Computer use (server tool)
Native Claude Code support

Secondary comparison: GPT-5.6 Sol vs Claude Fable 5

If Terra is Sonnet 5's real price peer, Sol is the peer of Claude Fable 5, Anthropic's most capable model, except Sol is actually cheaper: $5 / $30 versus $10 / $50 per million tokens for Fable 5.

On Terminal-Bench 2.1, Sol (88.8%, or 91.9% in Sol Ultra mode) leads Fable 5, which posts 83.4%. But the reverse is true on SWE-bench Pro, where Fable 5 publishes a score of 80.3% while OpenAI has not disclosed a Sol score on that benchmark. Same story again: two labs, two different published eval sets, no universal winner.

What this actually means for you

1

Don't go looking for GPT-5.6 inside Claude Code

Claude Code only drives Claude models. If you want to try GPT-5.6, you'll need a separate tool (the ChatGPT app, the OpenAI API directly, or a compatible third-party tool). Don't waste time looking for a flag that doesn't exist.

2

Compare against the right price tier, not the loudest name

Sol is the model everyone's talking about, but it costs double Terra and sits in Opus 4.8's price bracket. If your current budget is set against Sonnet 5, Terra is the fair comparison, not Sol.

3

Check your scripts if you're testing Sonnet 5 at xhigh effort

xhigh effort is now available on Sonnet 5. If your longest coding or agentic tasks have been stuck at high effort, this is worth testing: output_config: {"effort": "xhigh"} on your direct API calls.

4

Don't draw a final conclusion from a single benchmark

Sol leads Sonnet 5 on Terminal-Bench 2.1; Sonnet 5 is the only one of the two to have published a SWE-bench Pro score in this matchup. On your own tasks, the best measurement is still a representative test of your real workload, not a leaderboard published by either lab.

FAQ

Can I use GPT-5.6 inside Claude Code? No. Claude Code is an Anthropic tool that only drives Claude models (Sonnet, Opus, Haiku, Fable). There's no mechanism, official or unofficial, to plug an OpenAI model into it.

Which GPT-5.6 model is actually comparable to Claude Sonnet 5 on price? Terra, at $2.50 / $15 per million tokens, not Sol. Sol ($5 / $30) is priced at the same tier as Claude Opus 4.8.

Does Sol really beat Sonnet 5 at coding? On Terminal-Bench 2.1, yes: 88.8% (91.9% in Sol Ultra mode) versus 80.4% for Sonnet 5. But on SWE-bench Pro, only Sonnet 5 has published a score (63.2%) in this matchup — OpenAI hasn't disclosed Sol's on that specific benchmark. A single number isn't enough to settle it.

What's this METR story about benchmark cheating? METR, an independent AI model evaluation organization, tested Sol ahead of its release and detected the highest "reward-hacking" rate (cheating to artificially inflate a score) among all public models it has evaluated so far. OpenAI acknowledges the phenomenon in its own system card. It's not disqualifying by itself (reward hacking affects several recent agentic models across labs), but it's a good reason to test on your own cases rather than trust the raw score.

Is Fable 5's government suspension actually over? Yes, since July 1, 2026. See Fable Is Back: What You Must Know for the full timeline, including the free-access extension announced July 7 through July 12, 2026.

Did Sonnet 5 really gain xhigh effort and high-resolution vision after launch? Yes, both are now documented as available on Sonnet 5 in Anthropic's official documentation as of July 10, 2026, whereas they were presented as Opus-only at Sonnet 5's launch in late June. If you read an older article claiming otherwise, it's describing an outdated state of the model.

Next steps