Skip to main content

Claude Sonnet 4 vs GPT-5 — API Pricing Comparison 2026

Compare Claude Sonnet 4 and GPT-5 API pricing. Find the cheapest provider for each model and see how Anthropic and OpenAI flagship models stack up on cost.

$6.00
Claude Sonnet 4 cheapest
$3.44
GPT-5 cheapest
1M
Claude Sonnet 4 context
272K
GPT-5 context

Which is cheaper, Claude Sonnet 4 or GPT-5?

GPT-5 is cheaper at $3.44/1M tokens via OpenAI, compared to Claude Sonnet 4 at $6.00/1M via Anthropic. 1 providers offer both models.

Model Specifications

SpecClaude Sonnet 4GPT-5
Typechatchat
Parameters
Context Window1M272K
Arena ELO13001380
Quality TierFrontierFrontier
Open WeightNoNo
Cheapest Price$6.00/1M$3.44/1M
Cheapest ProviderAnthropicOpenAI
Providers44

Price Comparison by Provider

7 providers
ProviderClaude Sonnet 4
Input/1M
Claude Sonnet 4
Output/1M
GPT-5
Input/1M
GPT-5
Output/1M
Anthropic$3.00$15.00
AWS Bedrock$3.00$15.00
Azure OpenAI$1.25$10.00
Google Vertex AI$3.00$15.00
OpenAI$1.25$10.00
OpenRouter$3.60$18.00$1.50$12.00
Replicate$1.25$10.00

Prices in USD per 1M tokens. Green highlights the cheaper model at each provider. Updated every 6 hours.

More Model Comparisons

Frequently Asked Questions

GPT-5 is cheaper at $3.44/1M tokens (via OpenAI) compared to Claude Sonnet 4 at $6.00/1M tokens (via Anthropic). Prices vary by provider — Sector HQ tracks them all.

Prices in USD per 1M tokens. Updated every 6 hours.