Versus · AI tools
Claude Sonnet 4.5 vs GPT-5
- Last checked
- 4 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.

- Claude Sonnet 5.5 ($2 and $10) if you liked Sonnet.
- Pick the replacement OpenAI names on its deprecations page if you liked GPT-5.
Compared here
- 01Claude Sonnet 4.5
- 02GPT-5
Short answer
The honest answer in December 2026: neither. Anthropic retired Claude Sonnet 4.5 on its own platforms on 30 November 2026; it lives on only as a deprecated model on Amazon Bedrock. OpenAI lists GPT-5 as deprecated with a shutdown date of 11 December 2026. If you still call either one, your code breaks soon or already has.
When both were live, GPT-5 was the cheaper one: $1.25 per million input tokens and $10 output, against Sonnet 4.5 at $3 and $15. GPT-5 had a 400,000-token window; Sonnet 4.5 was the coding favourite of late 2025. Pick Claude Sonnet 5.5 ($2 and $10) if you liked Sonnet. Pick the replacement OpenAI names on its deprecations page if you liked GPT-5. Below: the old numbers side by side, what replaces each, and how to switch without drama.
At a glance
| Claude Sonnet 4.5 | GPT-5 | |
|---|---|---|
| Maker | Anthropic | OpenAI |
| Model ID | claude-sonnet-4-5-20250929 | gpt-5 (gpt-5-2025-08-07) |
| Status | Retired on Anthropic platforms 30 Nov 2026; deprecated on Bedrock | Deprecated; shutdown 11 Dec 2026 |
| Named replacement | claude-sonnet-5-5 | gpt-6.2-sol (deprecations page); model page suggests GPT-6.2 Astra |
| Input price | $3 | $1.25 |
| Cached input | $0.30 | $0.125 |
| Output price | $15 | $10 |
| Batch | $1.50 in / $7.50 out | Not read for this page |
| Context window | Not stated on a live Anthropic page today | 400,000 (272,000 max input) |
| Max output | Not stated on a live Anthropic page today | 128,000 |
| Inputs | Not stated on a live Anthropic page today | Text and image |
| Knowledge cutoff | Not stated on a live Anthropic page today | 30 September 2024 |
| Reasoning control | Not stated on a live Anthropic page today | Effort: minimal, low, medium, high |
You searched for a fight between two models. By the time you read this, one has left the building and the other has its coat on. Claude Sonnet 4.5 retired on Anthropic's platforms on 30 November 2026. GPT-5 shuts down on 11 December 2026. That is not us being dramatic: both dates are on the vendors' own deprecation pages.
So this page does three jobs. It gives you the old numbers side by side, so you can understand what you were running. It tells you what each vendor says to move to. And it gives you a switching plan that does not end with a broken app on a Friday night.
Money note: no affiliate links here, nobody pays us. We read the official pages on 3 December 2026 and ran no benchmarks of our own.
The two models, as they were
Claude Sonnet 4.5 was Anthropic's mid-priced model from September 2025, model ID claude-sonnet-4-5-20250929. It was the one a lot of people used for coding agents and long writing jobs at a price well under Opus. Anthropic's pricing page still lists its price: $3 per million input tokens, $15 output, $0.30 for cache hits, and half price on the Batch API.
One awkward fact: Sonnet 4.5's own overview page now sends you to the deprecations page. So its context window, output limit and knowledge cutoff are not stated on any live Anthropic page we could read today. We will not fill those cells from memory.
GPT-5 was OpenAI's flagship from August 2025, model ID gpt-5 (snapshot gpt-5-2025-08-07). Its model page is still up and lists:
- $1.25 per million input tokens, $0.125 cached, $10 output
- A 400,000-token context window, with 272,000 maximum input
- Up to 128,000 output tokens
- Text and image in, text out
- Knowledge cutoff 30 September 2024
- Reasoning effort settings: minimal, low, medium and high
Price, side by side
| Input | Cached input | Output | |
|---|---|---|---|
| Claude Sonnet 4.5 | $3 | $0.30 | $15 |
| GPT-5 | $1.25 | $0.125 | $10 |
| Claude Sonnet 5.5 (replacement) | $2 | $0.10 | $10 |
A worked example, plain arithmetic on list prices. A job that sends 50,000 tokens and gets 5,000 back:
- Sonnet 4.5: 0.05 x $3 + 0.005 x $15 = $0.225
- GPT-5: 0.05 x $1.25 + 0.005 x $10 = $0.1125
- Sonnet 5.5: 0.05 x $2 + 0.005 x $10 = $0.15
GPT-5 was half the price of Sonnet 4.5 per call. The Claude replacement closes most of that gap. One caveat: Anthropic says Claude 4.7 and later models use a newer tokenizer that "produces approximately 30% more tokens for the same text", so the same prompt counts as more tokens on Sonnet 5.5 than it did on 4.5. Measure, do not assume.
Where each one was strong
We did not benchmark either, and both are on their way out, so we will keep this to what the official pages support:
- GPT-5 had the cheaper tokens, a reasoning effort dial that went down to "minimal" for quick jobs, and a big 400K window.
- Sonnet 4.5 cost more per token and was the model a lot of coding tools defaulted to in late 2025. Anthropic's batch pricing halved its cost for jobs that could wait.
If you want leaderboards, aggregator sites still list old scores. They tell you which model was better at a test a year ago. They do not tell you which replacement is better at your job today.
What happens if you still call them
Sonnet 4.5 on the Claude API: Anthropic says once a model is retired, "requests to it fail", and the Messages API returns a 404 not_found_error. That has been true since 30 November. If you see a spike in 404s this week, this is likely why. The model still runs as a deprecated model on Amazon Bedrock's bedrock-runtime endpoint, on Bedrock's own schedule.
GPT-5 on the OpenAI API: OpenAI's deprecations page lists gpt-5 and gpt-5-2025-08-07 as deprecated, notice given 11 June 2026, shutdown 11 December 2026. After that date, expect calls to fail.
Whether GPT-5 is still selectable inside the ChatGPT app is not stated on the deprecations page, so we will not guess.
What each vendor says to move to
- From Sonnet 4.5: Anthropic names
claude-sonnet-5-5as the replacement and publishes a migration guide for moving from Sonnet 4.5. List price $2 input, $10 output, cheaper than 4.5. - From GPT-5: the deprecations page names
gpt-6.2-sol. The GPT-5 model page says "We recommend using the latest GPT-6.2 Astra." Two names from the same vendor; read both model pages and pick by your job.
If you are moving across vendors anyway, this is a good moment to test both replacements on the same prompts.
A switching plan that does not break things
- Find every call. Search your code and config for
claude-sonnet-4-5,gpt-5and the dated snapshots. Anthropic's console has a usage export by API key and model; use it to catch scripts you forgot about. - Put the model name in one setting. An environment variable or config value, not a string in twenty files. You will do this again next year.
- Build a small test set. Twenty real prompts from your own work, with answers you know are good.
- Run the replacement on the test set. Check output quality, length and format. Newer models can be chattier or terser; adjust your prompts rather than your expectations.
- Watch the bill for a week. Token counts can shift with a new tokenizer. Compare spend per task, not per token.
- Remove dead parameters. Anthropic removed
temperature,top_pandtop_kin API version 2026-10-21; newer Claude models return an error if you send them. Strip them before you switch.
Switching vendors at the same time?
Since you have to touch the code anyway, some teams use a forced migration to try the other side. Fair enough, but know what changes beyond the model name:
- Different SDKs and request shapes. Anthropic's Messages API and OpenAI's API name things differently: system prompts, tool definitions and streaming events all need a small rewrite.
- Different caching rules. Anthropic charges extra to write a cache entry and much less to read it; OpenAI lists a cheaper cached-input rate. Your savings depend on how often prompts repeat.
- Different limits. GPT-5 listed 272,000 tokens of maximum input. Newer Claude models list a 1M-token window at standard pricing.
Budget a day for the rewrite and a week of side-by-side runs. Cheaper than a week of angry users.
Who should pick what now
- You liked Sonnet 4.5 for coding: move to Claude Sonnet 5.5, or Opus 5.5 for the hardest jobs. Our best AI model for coding page has the current shortlist.
- You liked GPT-5 for cheap, fast calls: move to the GPT-6.2 model OpenAI names, and compare it with Sonnet 5.5 on price per finished task. Our GPT-5.5 vs GPT-5.6 page covers the steps in between.
- You are on Bedrock and cannot move yet: Sonnet 4.5 still runs there as deprecated. Treat that as borrowed time, not a plan.
- You want a Google option too: see Gemini 3.1 Pro vs Sonnet 5 and Opus 4.6 vs Gemini 3.1 Pro.
How we checked
We read Anthropic's pricing and model deprecations pages and OpenAI's GPT-5 model page and deprecations page on 3 December 2026. Sonnet 4.5's own spec page now redirects to the deprecations page, so its context, output and cutoff are marked as not stated. We did not read OpenAI's batch prices for GPT-5. We ran no benchmarks. All prices are list prices in US dollars. More model match-ups sit on the AI tools hub.
Questions people ask
Is Claude Sonnet 4.5 better than GPT-5?
It no longer matters much. Sonnet 4.5 retired on the Claude API on 30 November 2026, and GPT-5 shuts down on 11 December 2026. When both were live, Sonnet 4.5 was the popular coding pick and GPT-5 the cheaper one per token. Compare their replacements instead: Claude Sonnet 5.5 and OpenAI's GPT-6.2 models.
Can I still use Claude Sonnet 4.5?
Not on Anthropic's own API: requests to a retired model fail with a not-found error. Anthropic says Sonnet 4.5 remains available as a deprecated model on Amazon Bedrock through the bedrock-runtime endpoint, under Bedrock's own schedule. Anthropic's recommended replacement is claude-sonnet-5-5, listed at $2 input and $10 output.
When does GPT-5 shut down?
OpenAI's deprecations page lists gpt-5 and gpt-5-2025-08-07 as deprecated, with the notice on 11 June 2026 and a shutdown on 11 December 2026. The replacement it names is gpt-6.2-sol. The GPT-5 model page itself recommends GPT-6.2 Astra. Check which one fits your job before you switch.
Which was cheaper, Sonnet 4.5 or GPT-5?
GPT-5. It listed $1.25 per million input tokens and $10 output, against Sonnet 4.5 at $3 and $15. On a job of 50,000 tokens in and 5,000 out, that is about $0.11 for GPT-5 against $0.225 for Sonnet 4.5, before caching. The cheaper Claude today is Sonnet 5.5 at $2 and $10.
What should I replace Claude Sonnet 4.5 with?
Anthropic names claude-sonnet-5-5 and has a migration guide for moving from Sonnet 4.5. It is cheaper on paper too: $2 input and $10 output against $3 and $15. Run your test prompts on it first, because newer Claude models use a tokenizer that produces about 30% more tokens for the same text.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Anthropic: Pricing, checked 3 Dec 2026
- Anthropic: Model deprecations, checked 3 Dec 2026
- OpenAI: GPT-5 model page, checked 3 Dec 2026
- OpenAI: Deprecations, checked 3 Dec 2026