Claude Sonnet 5vsGPT-5.6 Luna
Answer
GPT-5.6 Luna passes more of Terminal-Bench: 17.3% in Codex at Max effort, against 12.4% for Claude Sonnet 5 in Claude Code.[1][2] Claude Sonnet 5 costs $29.10 per task against $1.05 for GPT-5.6 Luna. GPT-5.6 Luna also scores higher.
Claude Sonnet 5GPT-5.6 Luna
At a glance
marks the better value in a row. Terminal-Bench gaps smaller than two tasks, and Epoch AI gaps inside the margin of error, count as level. Epoch AI rows show each model at its best setting.
| Claude Sonnet 5 | GPT-5.6 Luna | |
|---|---|---|
| Released | Jun 30, 2026[5]Anthropic · Superseded Sep 28, 2026 | Jun 26, 2026[6]OpenAI · Superseded Sep 22, 2026 |
| Terminal-Bench | 12.4%[1]Claude Code · Max | 17.3%Higher[2]Codex · Max |
| Cost per task | $29.10[1] | $1.05Lower[2] |
| Output tokens per task | 353k[1] | 186kFewer[2] |
| Minutes per task | 109 min[1] | 68 minQuicker[2] |
| MirrorCode | 63.3%Higher[3]Max · Epoch AI | 21.1%[3]Max · Epoch AI |
| GPQA Diamond | 90.5%[3]XHigh · Epoch AI | 91.6%[3]Max · Epoch AI |
| FrontierMath Tiers 1–3 | 65.6%[3]Max · Epoch AI | 82.1%Higher[3]Max · Epoch AI |
| API price | $2/$10[4]Per 1M input/output tokens | $0.20/$1.20[4]Per 1M input/output tokens |
| Longest input | 1M tokens[4] | 922k tokens[4] |
| Frontier star | Superseded | Superseded |
Choose Claude Sonnet 5 if…
- You hand it long coding projects: MirrorCode 63.3% against 21.1%.
- You work in Claude Code, Anthropic's own coding agent, where its Terminal-Bench run was made.
- You have a setup pinned to it, though Anthropic superseded it on Sep 28, 2026 with Claude Sonnet 5.5.
Choose GPT-5.6 Luna if…
- You want the higher Terminal-Bench score: 17.3% against 12.4%.
- You want to spend less per task: $1.05 against $29.10 on Terminal-Bench.
- You want fewer output tokens: 186k per task against 353k.
- You want quicker runs: 68 minutes per task against 109.
- You need hard math: FrontierMath Tiers 1–3 82.1% against 65.6%.
- You pay by the token: $0.20/$1.20 per million input/output tokens against $2/$10.
- You work in Codex, OpenAI's own coding agent, where its Terminal-Bench run was made.
- You have a setup pinned to it, though OpenAI superseded it on Sep 22, 2026 with GPT-6 Luna.
Related comparisons
More with Claude Sonnet 5
More with GPT-5.6 Luna
In each lab's coding agent: Codex vs Claude Code
Questions.
Is Claude Sonnet 5 better than GPT-5.6 Luna for coding?
GPT-5.6 Luna passes more of Terminal-Bench: 17.3% in Codex at Max effort, against 12.4% for Claude Sonnet 5 in Claude Code. Claude Sonnet 5 costs $29.10 per task against $1.05 for GPT-5.6 Luna. GPT-5.6 Luna also scores higher.
Which is cheaper, Claude Sonnet 5 or GPT-5.6 Luna?
Claude Sonnet 5: $29.10 per Terminal-Bench task, $2/$10 per million input/output tokens. GPT-5.6 Luna: $1.05 per Terminal-Bench task, $0.20/$1.20 per million input/output tokens.
How do Claude Sonnet 5 and GPT-5.6 Luna compare on Epoch AI's benchmarks?
Best scores, Claude Sonnet 5 first. MirrorCode: 63.3% against 21.1%. GPQA Diamond: 90.5% against 91.6%, within the margin of error. FrontierMath Tiers 1–3: 65.6% against 82.1%.
When were Claude Sonnet 5 and GPT-5.6 Luna released?
Anthropic released Claude Sonnet 5 on Jun 30, 2026; OpenAI released GPT-5.6 Luna on Jun 26, 2026. Anthropic superseded Claude Sonnet 5 on Sep 28, 2026 with Claude Sonnet 5.5. OpenAI superseded GPT-5.6 Luna on Sep 22, 2026 with GPT-6 Luna.
Sources and scope
Terminal-Bench results are each model's run on the official leaderboard: the agent attempts all 66 tasks at least five times, errored trials count as failures, and passing trials are checked for reward hacking. Each lab's run uses the agent and setting it was submitted with, and cost per task is what the run reported. Epoch AI's scores test each model alone, under CC BY 4.0. API prices come from LiteLLM's price list. Written by aicharts from data checked Nov 24, 2026. Prices and scores change as labs update their models.