← Back to blog

OpenAI vs Anthropic vs Google: Complete API Pricing Breakdown

OpenAI, Anthropic, and Google are the three dominant forces in the LLM API market. Choosing between them isn't just about model quality — pricing varies dramatically across tiers and use cases. Here's the complete breakdown.

Pricing at a Glance

All prices are per 1 million tokens as of April 2026:

Premium Tier
GPT-4o (OpenAI)$2.50 in / $10.00 out
Claude Sonnet 4 (Anthropic)$3.00 in / $15.00 out
Gemini 2.5 Pro (Google)$1.25 in / $10.00 out
Winner: Gemini 2.5 Pro (cheapest input)
Budget Tier
GPT-4o mini (OpenAI)$0.15 in / $0.60 out
Claude Haiku 4.5 (Anthropic)$1.00 in / $5.00 out
Gemini 2.0 Flash (Google)$0.10 in / $0.40 out
Winner: Gemini 2.0 Flash (cheapest across the board)

Use Case 1: Customer Support Chatbot

Typical request: ~500 input tokens, ~200 output tokens, 10,000 requests/day.

Monthly Cost Comparison
GPT-4o$405/mo
Claude Sonnet 4$540/mo
Gemini 2.5 Pro$293/mo
GPT-4o mini$24/mo
Claude Haiku 4.5$120/mo
Gemini 2.0 Flash$17/mo
Budget pick: Gemini 2.0 Flash at $17/mo

Use Case 2: Code Generation

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

Monthly Cost Comparison
GPT-4o$375/mo
Claude Sonnet 4$480/mo
Gemini 2.5 Pro$338/mo
GPT-4o mini$23/mo
Claude Haiku 4.5$105/mo
Gemini 2.0 Flash$16/mo
Budget pick: Gemini 2.0 Flash at $16/mo

Use Case 3: Document Analysis

Typical request: ~10,000 input tokens, ~500 output tokens, 500 requests/day.

Monthly Cost Comparison
GPT-4o$225/mo
Claude Sonnet 4$255/mo
Gemini 2.5 Pro$188/mo
GPT-4o mini$12/mo
Claude Haiku 4.5$52.50/mo
Gemini 2.0 Flash$10/mo
Budget pick: Gemini 2.0 Flash at $10/mo

Context Window Comparison

Google dominates on context window. If you're processing long documents, Gemini's 1M context eliminates the need for chunking entirely.

The Verdict

For budget-conscious teams: Gemini 2.0 Flash is the cheapest option across every use case. For premium quality at a fair price: Gemini 2.5 Pro offers the best input pricing. For ecosystem and tooling: OpenAI GPT-4o has the broadest third-party support. For safety and alignment: Anthropic Claude leads in responsible AI.

The right choice depends on your priorities. Use our cost calculator to model your exact usage and find the cheapest provider for your specific workload.

Find the cheapest provider for your exact usage.

Try the APIpulse Calculator

Related Reading

Get notified when API prices change

No spam. Only pricing updates and new features. Unsubscribe anytime.