Auto-generated comparison

Anthropic: Claude Sonnet 5 vs OpenAI: GPT-5

Anthropic: Claude Sonnet 5 and OpenAI: GPT-5 are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.

Side-by-side comparison

CapabilityAnthropic: Claude Sonnet 5OpenAI: GPT-5Winner
Context window
Maximum number of input tokens the model can attend to in a single request.
1M400K🏆 Anthropic: Claude Sonnet 5
Input price (per 1M)
Cost per million input tokens billed by the provider.
$2.00$1.25🏆 OpenAI: GPT-5
Output price (per 1M)
Cost per million output tokens billed by the provider.
$10.00$10.00Tie
Tool / function calling
First-class support for emitting structured tool calls.
YesYesTie
Vision input
Accepts image inputs alongside text.
YesYesTie
Reasoning mode
Internal chain-of-thought / extended-thinking support.
YesYesTie

Frequently asked questions

Is Anthropic: Claude Sonnet 5 better than OpenAI: GPT-5?

Anthropic: Claude Sonnet 5 and OpenAI: GPT-5 are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.

What's the price difference between Anthropic: Claude Sonnet 5 and OpenAI: GPT-5?

Input: $2.00 vs $1.25 per 1M tokens. Output: $10.00 vs $10.00 per 1M tokens.

What context windows do Anthropic: Claude Sonnet 5 and OpenAI: GPT-5 support?

Anthropic: Claude Sonnet 5 supports up to 1M tokens. OpenAI: GPT-5 supports up to 400K tokens.

Do both Anthropic: Claude Sonnet 5 and OpenAI: GPT-5 support tool calling?

Anthropic: Claude Sonnet 5: yes. OpenAI: GPT-5: yes.

Compare Anthropic: Claude Sonnet 5 with other models

Compare OpenAI: GPT-5 with other models