Comprehensive side-by-side LLM comparison
Both models show comparable benchmark performance. Claude 3 Sonnet offers 334.5K more tokens in context window than GPT-4. Claude 3 Sonnet is $72.00 cheaper per million tokens. Both models have their strengths depending on your specific coding needs.
Anthropic
Claude 3 Sonnet was introduced as the balanced middle tier of the Claude 3 family, offering a combination of strong capabilities and operational speed. Designed to provide an optimal tradeoff between intelligence and performance for everyday tasks, it served as a versatile solution for a wide range of enterprise and consumer applications.
OpenAI
GPT-4 was created as a large multimodal model capable of accepting image and text inputs while producing text outputs. Developed to exhibit human-level performance on various professional and academic benchmarks, it marked a significant advancement in reliability, creativity, and handling of nuanced instructions compared to its predecessors.
8 months newer

GPT-4
OpenAI
2023-06-13

Claude 3 Sonnet
Anthropic
2024-02-29
Cost per million tokens (USD)

Claude 3 Sonnet

GPT-4
Context window and performance specifications
Average performance across 7 common benchmarks

Claude 3 Sonnet

GPT-4
GPT-4
2022-12-31
Available providers and their performance metrics

Claude 3 Sonnet
Anthropic
Bedrock

Claude 3 Sonnet

GPT-4

Claude 3 Sonnet

GPT-4

GPT-4
Azure
OpenAI