OpenAI o3 vs Claude Sonnet 4 Cost Calculator

After OpenAI's price cuts, o3 ($2/M input, $8/M output, 75% cached input discount) undercuts Claude Sonnet 4 ($3/M input, $15/M output, 90% cached input discount) on nominal per-token rates — unless o3's hidden reasoning tokens inflate total output volume. Slide reasoning effort and cache hit rate below to see the real bill.

Interactive comparison calculator

ModelInput $/MoOutput $/MoTotal / MoAnnual

Frequently asked questions

Why can OpenAI o3 cost more than Claude Sonnet 4 even though o3's output price is lower?

OpenAI o3 generates hidden reasoning tokens billed at the $8/M output rate. On hard prompts with a 3x–4x reasoning multiplier, effective output cost reaches $24–$32 per million visible tokens, exceeding standard Sonnet 4 ($15/M).

Which has better prompt caching: OpenAI or Anthropic?

Anthropic offers a 90% discount on cached input reads (0.10x) vs OpenAI's 75% discount (0.25x), though Anthropic charges a 1.25x write fee on cache creation.

Do both OpenAI o3 and Claude Sonnet 4 support 50% Batch API discounts?

Yes. Both providers offer asynchronous 24-hour Batch APIs at 50% off standard token rates, ideal for evals, classification, and offline pipelines.

All calculations run 100% locally in your browser with zero external API calls. Pricing and hardware figures reflect published 2026 provider rate cards and hardware datasheets.