Compare to

Discover how Open AI's GPT-5 and Anthropic's Claude 4 Sonnet stack up against each other in this comprehensive comparison of two leading AI language models.

Released in August 2025 and May 2025 respectively, these models represent significant advancements in artificial intelligence, with GPT-5 offering a 400,000-token context window and Claude 4 Sonnet featuring a 200,000-token capacity. Their distinct approaches to natural language processing are reflected in their benchmark performances, making this comparison essential for developers and organizations seeking the right AI solution for their specific needs.

Models Overview

Open AI GPT-5
Open AI Claude 4 Sonnet

Provider

Company that developed the model
Open AI Anthropic

Context Length

Maximum number of tokens the model can process
400K 200K

Maximum Output

Maximum number of tokens the model can generate in a single response
128K 64K

Release Date

Date when the model was released
07-08-2025 22-05-2025

Knowledge Cutoff

Training data cutoff date
September 2024 March 2025

Open Source

Whether the model's code is open-source
FALSE FALSE

API Providers

API providers that offer access to the model
OpenAI API Anthropic API, Vertex AI, AWS Bedrock

Pricing Comparison

Compare the pricing of Open AI's GPT-5 and Anthropic's Claude 4 Sonnet to determine the most cost-effective solution for your AI needs.

Open AI GPT-5
Open AI Claude 4 Sonnet

Input Cost

Cost per million input tokens
$1.25 / 1M tokens $3 / 1M tokens

Output Cost

Cost per million tokens generated
$10 / 1M tokens $15 / 1M tokens

Comparing Benchmarks and Performance

Compare the performances of Open AI's GPT-5 and Anthropic's Claude 4 Sonnet on industry benchmarks. This section provides a detailed comparison on MMLU, MMMU, HumanEval, MATH and other key benchmarks.

Open AI GPT-5
Open AI Claude 4 Sonnet

MMLU

Evaluating LLM knowledge acquisition in zero-shot and few-shot settings.
Benchmark not available Benchmark not available

MMMU

A wide ranging multi-discipline and multimodal benchmark.
74.4% 74.4%

HellaSwag

A challenging sentence completion benchmark.
Benchmark not available Benchmark not available

GSM8K

Grade-school math problems benchmark.
Benchmark not available Benchmark not available

HumanEval

A benchmark to measure functional correctness for synthesizing programs from docstrings.
Benchmark not available Benchmark not available

MATH

Benchmark performance on Math problems ranging across 5 levels of difficulty and 7 sub-disciplines.
Benchmark not available Benchmark not available

Compare More Models