Head to head

claude-sonnet-5 vs gpt-5-mini: API Pricing Compared

On a typical chat turn of 10K input and 1K output tokens, gpt-5-mini costs $0.00450 against $0.030 for claude-sonnet-5, making it 85% cheaper. Both rates are read daily from the providers' own pricing pages.

Side by side

claude-sonnet-5gpt-5-mini
ProviderAnthropicOpenAI
Input / 1M tokens$2.00$0.25
Output / 1M tokens$10.00$2.00
Context window1Mshort
Blended cost / chat turn$0.030$0.00450
Price verified2026-08-052026-08-06

Cost by workload

The headline rate rarely decides the bill. These are the same four workloads priced against both models.

WorkloadTokensclaude-sonnet-5gpt-5-mini
Single short call2K in, 500 out$0.00900$0.00150
Typical chat turn10K in, 1K out$0.030$0.00450
Long document pass100K in, 2K out$0.220$0.029
1,000 chat turns10M in, 1M out$30.00$4.50

Which one actually wins

gpt-5-mini is cheaper on both the input and the output rate, so it never costs more no matter how input-heavy or output-heavy the workload is. There is no crossover point to reason about. Price is only one axis, so weigh it against context window, latency, and the quality difference on your own evaluation set before switching.

Common questions

Which is cheaper, claude-sonnet-5 or gpt-5-mini?

gpt-5-mini is cheaper for a typical chat turn of 10K input and 1K output tokens, at $0.00450 against $0.030 for claude-sonnet-5, a difference of 85%.

How much does claude-sonnet-5 cost per 1M tokens?

Anthropic charges $2.00 per 1M input tokens and $10.00 per 1M output tokens for claude-sonnet-5, verified 2026-08-05.

How much does gpt-5-mini cost per 1M tokens?

OpenAI charges $0.25 per 1M input tokens and $2.00 per 1M output tokens for gpt-5-mini, verified 2026-08-06.

Does gpt-5-mini stay cheaper for every workload?

Yes. gpt-5-mini is cheaper on both the input and the output rate, so it never costs more regardless of how input-heavy or output-heavy the workload is.

Full pricing pages

Maintained by Jordan Hale, TechFastForward. Both prices are read daily from the official provider pages and recorded only when they move. Compare any other pair on the LLM API Pricing Tracker.