Model Comparison

Claude 3.7 Sonnet vs GPT-5.1 Codex Mini

Claude 3.7 Sonnet significantly outperforms across most benchmarks. GPT-5.1 Codex Mini is 8.7x cheaper per token.

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

Claude 3.7 Sonnet outperforms in 1 benchmarks (AIME 2025), while GPT-5.1 Codex Mini is better at 0 benchmarks.

Claude 3.7 Sonnet significantly outperforms across most benchmarks.

Thu Apr 16 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

GPT-5.1 Codex Mini costs less

For input processing, Claude 3.7 Sonnet ($3.00/1M tokens) is 12.0x more expensive than GPT-5.1 Codex Mini ($0.25/1M tokens).

For output processing, Claude 3.7 Sonnet ($15.00/1M tokens) is 7.5x more expensive than GPT-5.1 Codex Mini ($2.00/1M tokens).

In conclusion, Claude 3.7 Sonnet is more expensive than GPT-5.1 Codex Mini.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Thu Apr 16 2026 • llm-stats.com
Anthropic
Claude 3.7 Sonnet
Input tokens$3.00
Output tokens$15.00
Best providerAnthropic
OpenAI
GPT-5.1 Codex Mini
Input tokens$0.25
Output tokens$2.00
Best providerOpenAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-5.1 Codex Mini accepts 400,000 input tokens compared to Claude 3.7 Sonnet's 200,000 tokens. Both models can generate responses up to 128,000 tokens.

Anthropic
Claude 3.7 Sonnet
Input200,000 tokens
Output128,000 tokens
OpenAI
GPT-5.1 Codex Mini
Input400,000 tokens
Output128,000 tokens
Thu Apr 16 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Claude 3.7 Sonnet and GPT-5.1 Codex Mini support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

Claude 3.7 Sonnet

Text
Images
Audio
Video

GPT-5.1 Codex Mini

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

Claude 3.7 Sonnet

Proprietary

Closed source

GPT-5.1 Codex Mini

Proprietary

Closed source

Release Timeline

When each model was launched

Claude 3.7 Sonnet was released on 2025-02-24, while GPT-5.1 Codex Mini was released on 2025-11-12.

GPT-5.1 Codex Mini is 9 months newer than Claude 3.7 Sonnet.

Claude 3.7 Sonnet

Feb 24, 2025

1.1 years ago

GPT-5.1 Codex Mini

Nov 12, 2025

5 months ago

8mo newer

Knowledge Cutoff

When training data ends

Neither model specifies a knowledge cutoff date.

Unable to compare the recency of their training data.

No cutoff dates available

Provider Availability

Claude 3.7 Sonnet is available from Anthropic, Bedrock, Google. GPT-5.1 Codex Mini is available from OpenAI.

Claude 3.7 Sonnet

anthropic logo
Anthropic
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
bedrock logo
AWS Bedrock
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
google logo
Google
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M

GPT-5.1 Codex Mini

openai logo
OpenAI
Input Price:Input: $0.25/1MOutput Price:Output: $2.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Higher AIME 2025 score (54.8% vs 42.1%)
Larger context window (400,000 tokens)
Less expensive input tokens
Less expensive output tokens
AnthropicClaude 3.7 Sonnet
OpenAIGPT-5.1 Codex Mini

Detailed Comparison

AI Model Comparison Table
Feature
Anthropic
Claude 3.7 Sonnet
OpenAI
GPT-5.1 Codex Mini

FAQ

Common questions about Claude 3.7 Sonnet vs GPT-5.1 Codex Mini

Claude 3.7 Sonnet significantly outperforms across most benchmarks. Claude 3.7 Sonnet is made by Anthropic and GPT-5.1 Codex Mini is made by OpenAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.
Claude 3.7 Sonnet scores MATH-500: 96.2%, IFEval: 93.2%, MMMLU: 86.1%, GPQA: 84.8%, TAU-bench Retail: 81.2%. GPT-5.1 Codex Mini scores AIME 2025: 42.1%.
GPT-5.1 Codex Mini is 12.0x cheaper for input tokens. Claude 3.7 Sonnet costs $3.00/M input and $15.00/M output via anthropic. GPT-5.1 Codex Mini costs $0.25/M input and $2.00/M output via openai.
Claude 3.7 Sonnet supports 200K tokens and GPT-5.1 Codex Mini supports 400K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.
Key differences include context window (200K vs 400K), input pricing ($3.00 vs $0.25/M). See the full comparison above for benchmark-by-benchmark results.
Claude 3.7 Sonnet is developed by Anthropic and GPT-5.1 Codex Mini is developed by OpenAI.