Skip to content

Claude Sonnet 4 vs GPT-5

GPT-5 is cheaper on output tokens, while Claude Sonnet 4 offers a larger context window. Choose Claude Sonnet 4 or GPT-5 based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecClaude Sonnet 4GPT-5
ProviderOpenCode ZenOpenCode Zen
Input / 1M tokens$3.00$1.07
Output / 1M tokens$15.00$8.50
Context window1M400K
Parameters
Open weightsNoNo
ReleasedMay 2025Aug 2025

FAQ

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.