DEV Community

Cover image for 🤖 Comparing OpenAI GPT 4.5 and Claude 3.7 Sonnet on Coding 🚀

🤖 Comparing OpenAI GPT 4.5 and Claude 3.7 Sonnet on Coding 🚀

Shrijal Acharya on March 06, 2025

It is said that Claude 3.7 completely crushes our newest and costliest OpenAI model, GPT-4.5. But hey, I don't trust these benchmarks until I test ...
Collapse
 
andre_ad2623514c profile image
Andre Kaufmann • Edited

Claude is great, but still I think Chat Gpt o3-mini-high is slightly better in coding. Chat Gpt 4.5 has better conversational abilities but is not that good in coding as the o3.models
IIRC Chat Gpt 5.0 will combine coding models with conversational ones. Anyways I agree that Claude 3.7 extended is quite good

Collapse
 
miketalbot profile image
Mike Talbot ⭐

This is also my experience

Collapse
 
shricodev profile image
Shrijal Acharya

o3-mini-high is a great model. I do agree with this. But personally, I tend to stick with Claude 3.7.

You might like this comparison where I've compared Claude 3.7 sonnet against grok 3 and o3-mini-high on coding: dev.to/composiodev/claude-37-sonne...

Collapse
 
benny00100 profile image
Benny Schuetz

Love your practical comparision. Much better than those boring benchmarks graphs.

And yes, awesome output from Claude!

Did a quick test for case #2 with Grok3 and uploaded the result on x

Collapse
 
shricodev profile image
Shrijal Acharya

Love your practical comparision. Much better than those boring benchmarks graphs.

Woah, thank you very much, man! 🙌

Love the output from Grok 3 you got. But, Claude 3.7 is just out of this world. 🔥

Collapse
 
benny00100 profile image
Benny Schuetz

Note: I slightly changed your prompt from a Next.js version to a Vanilla javascript version for simplicity reasons.

Collapse
 
shricodev profile image
Shrijal Acharya

Ah, that's much better. I decided to go with Next.js since that's what most folks prefer.

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Awesome Shrijal! So basically, if you had to choose just one model from all the available ones on the internet (mainly for coding) to build crazy SaaS apps... which one would it be according to you?

Collapse
 
shricodev profile image
Shrijal Acharya

Claude 3.7 all the way, Anmol! 🔥

In all of my coding comparisons, even with Grok 3 and o3-mini-high, it just dominates so badly. For anything that requires writing code, Claude is the way for me.

Collapse
 
echotedev profile image
EchoteDev

For new web developers currently studying, the job market might seem daunting with limited opportunities. How do you think this could impact the prospects for junior developers? Is it still worthwhile to pursue this field of study?

Collapse
 
w0mble profile image
Marcos DeVille

I am honestly surprised by this, there has never been more opportunity. AI is a major improvement to developers lifecycles and as such is a great aid, it will not replace engineers building complex projects. Learn how to use, implement and create AI in your projects.

Collapse
 
shricodev profile image
Shrijal Acharya

This whole AI thing is nothing to worry about if you can bring engineering value to your team. When I started out, I never considered myself a "junior developer" at any time. Just keep hustling, and you'll be safe, my friend.

Another small suggestion: instead of focusing entirely on web development, see if you have an interest elsewhere, like DevOps, which could be an option, or ML? That could be a thing as well. Give it a shot once because the whole web industry is saturated as hell. Not to say that web dev is not a good option from now on, but it doesn't hurt to try something else.

Collapse
 
echotedev profile image
EchoteDev

Thanks for the suggestion, yes I will definitely learn other related skills, AI development is an environment I really like.

Collapse
 
nadeem_zia_257af7e986ffc6 profile image
nadeem zia

The information is provided is amazing, keep it up

Collapse
 
shricodev profile image
Shrijal Acharya • Edited

Thank you, nadeem ✌️

Collapse
 
shricodev profile image
Shrijal Acharya

Have you tried the GPT-4.5 model yet? If so, what has been your experience working with it compared to other models? 🤔

Collapse
 
dogoxeteste profile image
dogpxe

awsome

Collapse
 
shricodev profile image
Shrijal Acharya

Glad you liked it, buddy! ✌️

Collapse
 
dogoxeteste profile image
dogpxe

Can i translate your article to brazilian portuguese?

Thread Thread
 
shricodev profile image
Shrijal Acharya

Sure buddy, go for it! ✌️

Collapse
 
aavash_parajuli_72 profile image
Aavash Parajuli

Great comparison. @shricodev 🚀

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, Aavash ✌️

Collapse
 
larastewart_engdev profile image
Lara Stewart - DevOps Cloud Engineer

Don't tell me Claude generated all of this in one shot?

Collapse
 
shricodev profile image
Shrijal Acharya

Sad to say this, but yes, both models generated this code in one shot. 🫠

In the last question, when GPT-4.5 couldn't write the code, I tried to guide it to the correct answer, but it still couldn't handle it.

Collapse
 
patfinder profile image
Le Vuong

Great job. Thank you @shricodev

Collapse
 
shricodev profile image
Shrijal Acharya

Glad you loved it.✌️

Collapse
 
pepsventuresberhad profile image
PEPS Ventures Berhad

Like it!

Collapse
 
shricodev profile image
Shrijal Acharya

Thank You!

Collapse
 
rachit_gupta_3188854dd0a7 profile image
Rachit Gupta

loved it

Collapse
 
shricodev profile image
Shrijal Acharya

Glad you liked it, @rachit_gupta_3188854dd0a7 🙌

Collapse
 
saxohun232 profile image
Saxo Hun

Good comparison. 🫡 AI Camp?

Collapse
 
shricodev profile image
Shrijal Acharya • Edited

Oh, you mean aicamp.so? If so, I've used OpenRouter for all the model comparisons.