Per 1M tokens, as of May 2026:

Model Input Output Context Provider
GPT-5 $1.25 $10.00 272K OpenAI
Gemini 3.1 Pro $2.00 $12.00 1M Google
Claude Sonnet 4.6 $3.00 $15.00 1M Anthropic

GPT-5 is the clear price leader. Gemini 3.1 Pro sits in the middle with 1.6x cheaper input than Claude. Both Gemini and Claude offer 1M context windows โ€” nearly 4x GPT-5's 272K.

Category Winners

Cheapest Input
GPT-5
$1.25/1M tokens
Cheapest Output
GPT-5
$10.00/1M tokens
Largest Context
Tied
Claude & Gemini: 1M
Best Value
GPT-5
Lowest price + strong quality

Use Case 1: Production Chatbot

Typical request: ~800 input tokens, ~400 output tokens. At 5,000 requests/day:

Monthly cost breakdown
GPT-5$222.50/mo
Gemini 3.1 Pro$336.00/mo
Claude Sonnet 4.6$480.00/mo
Cheapest vs most expensive$257.50/mo savings (54%)

At 5K requests/day, choosing GPT-5 over Claude saves $3,090/year. Gemini sits in the middle, saving $1,728/year vs Claude.

Use Case 2: Code Generation

Typical request: ~1,500 input tokens, ~2,000 output tokens. At 1,000 requests/day:

Monthly cost breakdown
GPT-5$637.50/mo
Gemini 3.1 Pro$810.00/mo
Claude Sonnet 4.6$990.00/mo
Cheapest vs most expensive$352.50/mo savings (36%)

Code generation is output-heavy, so the output price gap matters. GPT-5 at $10/1M vs Claude at $15/1M saves $352/month at this volume โ€” $4,230/year.

Use Case 3: Document Analysis & RAG

Typical request: ~15,000 input tokens, ~1,000 output tokens. At 2,000 requests/day:

Monthly cost breakdown
GPT-5$975.00/mo
Gemini 3.1 Pro$1,440.00/mo
Claude Sonnet 4.6$1,800.00/mo
Cheapest vs most expensive$825.00/mo savings (46%)

Document analysis is input-heavy. GPT-5's 2.4x cheaper input pricing delivers the biggest savings here. But if your documents exceed 272K tokens, you'll need Claude or Gemini's 1M context โ€” the cost difference may be worth it to avoid chunking.

Use Case 4: AI Agent (Multi-Step)

Typical agent run: ~5,000 input tokens, ~3,000 output tokens across 6 tool calls. At 500 runs/day:

Monthly cost breakdown
GPT-5$318.75/mo
Gemini 3.1 Pro$495.00/mo
Claude Sonnet 4.6$637.50/mo
Cheapest vs most expensive$318.75/mo savings (50%)

Agents are the fastest-growing AI workload. At 500 runs/day with multi-step tool use, GPT-5 saves $3,825/year vs Claude. For agent workloads, GPT-5's strong function calling reliability makes it the default choice.

Quality & Capability Comparison

Price isn't everything. Here's where each model excels:

GPT-5 (OpenAI)

Claude Sonnet 4.6 (Anthropic)

Gemini 3.1 Pro (Google)

When to Choose Each

Choose GPT-5 when:

Choose Claude Sonnet 4.6 when:

Choose Gemini 3.1 Pro when:

The Multi-Model Strategy

The smartest teams don't pick one model โ€” they route dynamically. Use GPT-5 for high-volume, structured tasks (data extraction, classification, code generation) and reserve Claude Sonnet 4.6 for tasks where output quality justifies the premium (customer-facing content, complex analysis). This hybrid approach typically saves 30-40% vs using Claude for everything.

Gemini 3.1 Pro works well as a fallback or for multimodal workloads where you'd otherwise need separate vision and text models.

Calculate your exact costs across all three models โ€” See what you'd pay for your specific workload with our interactive calculator.

Compare Models Side by Side โ†’

โ€” See if you're overpaying for AI APIs

๐ŸŽฏ API Cost Score

Rate your API setup โ€” get a letter grade in 30 seconds

The Verdict

GPT-5 is the price-to-performance leader for most production workloads. It's 2.4x cheaper on input and 1.5x cheaper on output than Claude Sonnet 4.6. Gemini 3.1 Pro offers 1M context at a mid-range price. Choose based on your specific workload โ€” or better yet, use multiple models and route dynamically.

Related Reading

5 Cheaper Gemini Alternatives โ†’ Save 17-97%

๐ŸŽฏ Rate Your API Setup in 30 Seconds

Get an A+ to F grade on your AI API costs. See how you compare and find cheaper alternatives instantly.

Get Your Cost Score โ†’

๐Ÿ“Š Generate Your Personalized API Cost Report

Select your model, enter your monthly spend, and get a custom savings report with cheaper alternatives โ€” free, in 60 seconds.

Found this useful? Share it with your team.

Want to optimize your AI API costs?

APIpulse includes free cost comparisons, exports, and recommendations that can save you up to 40%.

Free Tools โ†’

Save money: ๐Ÿ“Š Live API Pricing ยท Cost Optimizer โ€” find out how much you could save by switching models. Free tool.

๐Ÿ’ธ Looking for DeepSeek V4 Flash Alternatives?
5 models ranked by cost โ€” some offer better quality at similar prices.
See 5 DeepSeek V4 Flash Alternatives โ†’
๐Ÿ’ธ Looking for Sonnet 4.6 Alternatives?
5 models ranked by cost โ€” some are 90% cheaper.
See 5 Sonnet 4.6 Alternatives โ†’
๐Ÿ’ธ Looking for Opus 4.8 Alternatives?
5 models ranked by cost โ€” some are 98% cheaper.
See 5 Opus 4.8 Alternatives โ†’
๐Ÿ’ธ Looking for Llama 4 Maverick Alternatives?
5 models ranked by cost โ€” some are 95% cheaper.
See 5 Llama 4 Maverick Alternatives โ†’
๐Ÿ’ธ Looking for Mistral Small 4 Alternatives?
5 models ranked by cost โ€” some are 90% cheaper.
See 5 Mistral Small 4 Alternatives โ†’
๐Ÿ’ธ Looking for Gemini 3.1 Pro Alternatives?
5 models ranked by cost โ€” some are 95% cheaper.
See 5 Gemini 3.1 Pro Alternatives โ†’
๐Ÿ’ธ Looking for Llama 4 Scout Alternatives?
5 models ranked by cost โ€” some are 95% cheaper.
See 5 Llama 4 Scout Alternatives โ†’
๐Ÿ”ง Free Embeddable Pricing Widget
Add live AI API pricing to your docs, blog, or README with one script tag. 88 models, auto-updating.
Get the Free Widget โ†’ Free MCP Server โ†’
This was a snapshot. What about next month?
Prices change. New models launch. Our tools catch what a one-time calculation can't โ€” and saves you money every month.
Free Tools โ†’ ๐Ÿ” Free audit first