Versus · AI tools
Claude Opus 4.1 vs GPT-5
- Last checked
- 7 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- At launch in August 2025 the two were neck and neck on coding: GPT-5 scored 74.9% on SWE-bench Verified, Claude Opus 4.1 scored 74.5%, each by its maker's own count.
Compared here
- 01Claude Opus 4.1
- 02GPT-5
Short answer
At launch in August 2025 the two were neck and neck on coding: GPT-5 scored 74.9% on SWE-bench Verified, Claude Opus 4.1 scored 74.5%, each by its maker's own count. The real gap was price. GPT-5 costs $1.25 per million input tokens and $10 output; Opus 4.1 was listed at $15 and $75. That is twelve times the input price and seven and a half times the output price.
But here is the part that matters in December 2026: Opus 4.1 was retired on Anthropic's API on 5 August 2026, and OpenAI shuts down the gpt-5 API model on 11 December 2026. If you still run either, you are choosing what to move to, not which to keep. Anthropic names Claude Opus 4.8 as the replacement for Opus 4.1; OpenAI names GPT-6.2 Sol for GPT-5. Below: the launch scores, prices, the deadlines, and what we would move to.
At a glance
| Claude Opus 4.1 | GPT-5 | |
|---|---|---|
| Launched | 5 August 2025 | 7 August 2025 |
| SWE-bench Verified (vendor figure) | 74.5% | 74.9% |
| Other launch scores published | Only in a chart we could not read | AIME 2025 94.6%, Aider Polyglot 88%, MMMU 84.2% |
| API input price | $15 | $1.25 ($0.125 cached) |
| API output price | $75 | $10 |
| Context window / max output | 200K / 32K tokens | Not stated on the OpenAI pages we read |
| Status on its maker's API | Retired 5 August 2026 | Deprecated, shuts down 11 December 2026 |
| Where it still runs | Amazon Bedrock and Google-managed Google Cloud, per Anthropic | API until 11 December; GPT-5 Thinking Mini still in ChatGPT |
| Official replacement | claude-opus-4-8 | gpt-6.2-sol |
Money talk first: OpenAI and Anthropic pay us nothing, and there are no affiliate links on this page. We have no horse in this race, which is handy, because both horses are being led off the track.
Second: we did not run any tests. The scores below are what each company published at launch, and the prices and dates come from their own API docs, read on 3 December 2026. Most of the pages ranking for this comparison were written in August 2025. They still talk about both models as if you could pick one tomorrow. On Anthropic's API you already cannot, and on OpenAI's API you have about a week.
The short version
- August 2025: two flagships launched two days apart. Coding scores were within half a point. GPT-5 cost a fraction of Opus 4.1 per token.
- August 2026: Anthropic retired Opus 4.1 on its own API. Requests to a retired model fail.
- 11 December 2026: OpenAI shuts down the gpt-5 API model.
- Today: if you have code calling either one, move it. Anthropic points Opus 4.1 users to Opus 4.8, OpenAI points GPT-5 users to GPT-6.2 Sol. Both replacements are cheaper or better on paper, and in Anthropic's case, both.
What each company claimed at launch
GPT-5, from OpenAI's launch post dated 7 August 2025:
- 74.9% on SWE-bench Verified (fixing real GitHub issues)
- 88% on Aider Polyglot (code edits across languages)
- 94.6% on AIME 2025 without tools (competition maths)
- 84.2% on MMMU (questions about images and charts)
- 46.2% on HealthBench Hard
- GPT-5 pro scored 88.4% on GPQA without tools
- With web search, answers were "about 45% less likely" than GPT-4o's to contain a factual error, and with thinking about 80% less likely than o3's
Claude Opus 4.1, from Anthropic's announcement dated 5 August 2025:
- 74.5% on SWE-bench Verified, which Anthropic called its new state of the art for coding
- Anthropic also listed TAU-bench, GPQA Diamond, MMMLU, MMMU, AIME and Terminal-Bench results, but only inside a chart that our page reader could not read, so we will not quote numbers from memory
- "Pricing is the same as Opus 4"
So on the one coding number both sides published in text, GPT-5 led by 0.4 points. That is a rounding error dressed up as a headline. Vendor benchmarks are like a car maker's fuel figures: useful for comparing within the brochure, optimistic in real traffic.
Price: the gap that actually decided things
| Per million tokens | Claude Opus 4.1 | GPT-5 |
|---|---|---|
| Input | $15 | $1.25 |
| Cached input | Not shown for 4.1 on today's page | $0.125 |
| Output | $75 | $10 |
| Example: 1M in plus 200K out | $30 | $3.25 |
That last row is simple arithmetic on the listed prices, not a measured bill. It shows why so many teams that liked Claude's style still ran GPT-5 for bulk work in late 2025: the same job cost roughly a tenth. Opus 4.1 earned its keep in places where one good answer was worth more than the token bill, like tricky refactors inside Claude Code.
Anthropic's own later models made that price gap disappear. Opus 4.5 onward dropped to $5 input and $25 output, and Opus 5.5 is $4 and $20, according to Anthropic's models overview.
Context window and output length
Anthropic lists Opus 4.1 at a 200K token context window and 32K tokens of max output. That was fine for one big file or a long chat, tight for a whole repository.
OpenAI's launch post and pricing page that we read did not state GPT-5's context window, and its model page no longer lists GPT-5 at all. Third-party sites quote a larger window for GPT-5 than for Opus 4.1, but we did not see that number on an OpenAI page on 3 December 2026, so we leave it as not stated. OpenAI's pricing does mention a short context tier of up to 272K input tokens for its standard prices.
The replacements leave both behind anyway: Opus 4.8 has a 1M token window and 128K output, and GPT-6.2 Sol is listed at 1.05M context and 128K output.
The deadlines: what still works and where
| Claude Opus 4.1 | GPT-5 | |
|---|---|---|
| Deprecation notice | 5 June 2026 | 11 June 2026 |
| Shutdown on the maker's API | 5 August 2026 (done) | 11 December 2026 |
| What happens after | Requests fail; Anthropic's API returns a 404 not_found_error | Not described in the row we read; plan for failures |
| Still available elsewhere | Amazon Bedrock and Claude on Google Cloud (Google managed), with their own dates | Not stated |
| Recommended replacement | claude-opus-4-8 | gpt-6.2-sol |
| In the chat apps | Not checked in the Claude app | ChatGPT lists GPT-5 Thinking Mini on all plans; full GPT-5 not named |
If you reach Opus 4.1 through Bedrock or Google Cloud, it may still answer. Anthropic's deprecations page is clear that those platforms set their own schedules, so check their consoles rather than trusting this page.
OpenAI's deprecations page also lists gpt-5-mini shutting down on 11 December 2026 with gpt-6.1-terra as the replacement, and gpt-5-chat-latest already shut down on 23 July 2026.
What to move to, and what it costs
| You ran... | Official replacement | New price per 1M (in / out) | Change in cost |
|---|---|---|---|
| Claude Opus 4.1 | Claude Opus 4.8 | $5 / $25 | Two thirds cheaper |
| Claude Opus 4.1, starting fresh | Claude Opus 5.5 (Anthropic's suggested start) | $4 / $20 | Cheaper still |
| GPT-5 | GPT-6.2 Sol | $2 / $10 | Input up from $1.25, output the same |
| GPT-5 mini | GPT-6.1 Terra | $1 / $5 | Up from $0.25 / $2 |
Two things jump out. Claude users win big on price by moving. GPT-5 users pay a bit more for input on the named replacement, and mini users pay noticeably more. If cost is your main worry on the OpenAI side, look at GPT-6 Luna on the model page at $0.10 input and $0.50 output, and test whether it handles your work.
Which to pick, if you are choosing a family
The original models are done, but the reason people searched this was usually "Claude or ChatGPT for my work". That question is still alive.
| You want... | Lean to | Why |
|---|---|---|
| A coding agent that edits your repo | Claude family via Claude Code | Opus 4.1 users mostly stayed for the tool around the model; Anthropic's later Opus models kept that focus |
| The cheapest capable API for bulk text | OpenAI family | GPT-5 set the low price, GPT-6 Luna and Terra continue it |
| Maths, charts and image questions | OpenAI family | GPT-5's launch post led with AIME and MMMU numbers |
| One flat subscription for chat | Either | Compare plans on our ChatGPT Pro vs Claude Max page and Claude Pro vs Max page |
For what came next in each line, our Claude Opus 4.8 vs GPT-5.6 Sol page compares the summer 2026 flagships, and Claude Sonnet 4.5 vs GPT-5 covers the cheaper Claude model from the same era. If you are picking a coding tool rather than a model, read Cursor vs Claude Code vs Codex.
How to migrate without breaking things
The boring checklist, from someone who has watched a production bot die on a retired model ID:
- Search your code and config for the old IDs: claude-opus-4-1-20250805, claude-opus-4-1, gpt-5, gpt-5-2025-08-07, gpt-5-mini. Check environment variables and no-code tools like Zapier or Make too.
- Check your API usage export. Anthropic's deprecations page tells you to export usage from the Claude Console to find which keys still call old models.
- Swap one route at a time to the replacement and run 20 to 50 of your real prompts. Compare answers side by side.
- Watch the token count. Anthropic notes that Claude models from 4.7 on use a newer tokenizer that fits fewer words into the same token budget, so a migrated prompt can cost more tokens than the price table suggests.
- Remove settings the new model rejects. Anthropic's deprecations page says temperature, top_p and top_k were removed in a 2026 API version for newer models. Old code that sets them can return errors.
- Set a reminder to read both deprecation pages every quarter. Neither company retires a public model without notice, but notices are easy to miss.
Our verdict
In August 2025, GPT-5 was the better deal and Opus 4.1 the pricier specialist, with coding scores too close to call. In December 2026 that verdict is history. Opus 4.1 is gone from Anthropic's API, GPT-5 goes on 11 December, and both makers have cheaper, newer models waiting. Move now, test with your own prompts, and do not let a dead model ID be the reason your app breaks next Friday.
How we checked, and when we check again
We read OpenAI's GPT-5 launch post, OpenAI's API pricing, OpenAI's deprecations page, ChatGPT's pricing page, Anthropic's Opus 4.1 announcement, Anthropic's models overview and Anthropic's deprecations page on 3 December 2026. Opus 4.1's other launch scores sat in a chart our reader could not read, and GPT-5's context window was not stated on the OpenAI pages we read, so neither is quoted. We re-read these pages monthly and update the date at the top. If anything here is older than the official page, the official page wins. More on our method on how we pick.
Questions people ask
Is GPT-5 better than Claude Opus 4.1?
On launch numbers they were almost tied for coding: 74.9% for GPT-5 and 74.5% for Opus 4.1 on SWE-bench Verified, each reported by its own maker. GPT-5 was far cheaper to run through the API. Both are now on the way out, so the useful question is which replacement fits you better.
Is Claude Opus 4.1 still available?
Not on Anthropic's own API. Its deprecations page says claude-opus-4-1-20250805 was retired on 5 August 2026, with Claude Opus 4.8 as the recommended replacement. The models overview notes it is still available on Amazon Bedrock and the Google-managed version of Claude on Google Cloud, which set their own retirement dates.
When does GPT-5 shut down?
OpenAI's deprecations page lists gpt-5 and gpt-5-2025-08-07 as deprecated, with a shutdown date of 11 December 2026 and gpt-6.2-sol as the replacement. The notice went out on 11 June 2026. gpt-5-mini shuts down the same day, with gpt-6.1-terra named as its replacement.
Which is cheaper, Claude Opus 4.1 or GPT-5?
GPT-5, by a lot. OpenAI's pricing page lists gpt-5 at $1.25 per million input tokens and $10 output. Anthropic listed Opus 4.1 at $15 input and $75 output. Today's replacements are cheaper still on the Anthropic side: Opus 4.8 is $5 and $25, and Opus 5.5 is $4 and $20.
Which was better for coding, Opus 4.1 or GPT-5?
Close enough that price decided it for most teams. The SWE-bench Verified scores differ by 0.4 points, and both are self-reported. Many developers stuck with Opus 4.1 inside Claude Code because of the tool around it, not the score. Today both companies point coders to newer models.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- OpenAI: Introducing GPT-5 (7 August 2025), checked 3 Dec 2026
- OpenAI API pricing, checked 3 Dec 2026
- OpenAI API docs: deprecations, checked 3 Dec 2026
- Anthropic: Claude Opus 4.1 announcement, checked 3 Dec 2026
- Anthropic: Models overview, checked 3 Dec 2026
- Anthropic: Model deprecations, checked 3 Dec 2026
- ChatGPT pricing and plan comparison, checked 3 Dec 2026