OpenAI vs Claude vs Gemini API Pricing: Complete Cost Comparison (November 2026)
Key Takeaways
- At the flagship tier, OpenAI GPT-6.2 Astra and Anthropic Claude Fable 5.2 both cost $8/$40 per million tokens, while Google Gemini 4 Neon is $3/$15 (62.5% lower).
- At the workhorse tier ($2/$10), Claude Sonnet 5.5, OpenAI GPT-6.2 Sol, and Google Gemini 4 Carbon match through November 30, 2026 (Gemini 4 Carbon moves to $4/$20 on December 1).
- All three providers offer 50% Batch API discounts and 90% to 97.5% cached-input discounts on current models, with important differences in cache-write fees and long-context thresholds.
- For ultra-budget workloads, OpenAI GPT-5 Nano ($0.05/$0.40) is the lowest-priced model across the three providers.
Comparing LLM API pricing across OpenAI, Anthropic, and Google requires looking past headline input/output rates. Each vendor prices prompt caching, batch queues, and long context windows differently.
This guide places all three providers side by side using official pricing documentation verified as of November 25, 2026.
The Full Pricing Table (as of November 25, 2026)
All rates are USD per 1 million tokens on standard paid tiers (short/base context). Input is what you send; output is what the model generates.
| Provider | Model | Input (per 1M) | Cached Input (per 1M) | Output (per 1M) |
|---|---|---|---|---|
| OpenAI (short context up to 272K tokens) | ||||
| OpenAI | GPT-6.2 Astra | $8.00 | $0.40 | $40.00 |
| OpenAI | GPT-6.2 Sol | $2.00 | $0.10 | $10.00 |
| OpenAI | GPT-6.1 Sol | $2.00 | $0.10 | $10.00 |
| OpenAI | GPT-6.1 Terra | $1.00 | $0.05 | $5.00 |
| OpenAI | GPT-6 Luna | $0.10 | $0.01 | $0.50 |
| OpenAI | GPT-5.6 Sol Promo through Nov 30, 2026 | $4.00 | $0.40 | $20.00 |
| OpenAI | GPT-5.6 Luna | $0.20 | $0.02 | $1.20 |
| OpenAI | GPT-5 Nano | $0.05 | $0.005 | $0.40 |
| Anthropic Claude (base pricing; 5m cache write = 1.25x input) | ||||
| Anthropic | Claude Fable 5.2 | $8.00 | $0.20 | $40.00 |
| Anthropic | Claude Opus 5.5 | $4.00 | $0.20 | $20.00 |
| Anthropic | Claude Sonnet 5.5 | $2.00 | $0.10 | $10.00 |
| Anthropic | Claude Haiku 5.5 ≤100K tokens; $0.50/$2.50 over 100K | $0.10 | $0.01 | $0.50 |
| Anthropic | Claude Haiku 4.5 | $1.00 | $0.10 | $5.00 |
| Google Gemini (Paid Tier) | ||||
| Gemini 4 Carbon $4.00/$20.00 starting Dec 1, 2026 | $2.00 | $0.10 | $10.00 | |
| Gemini 4 Neon | $3.00 | $0.15 | $15.00 | |
| Gemini 3.8 Flash $1.50/$7.50 starting Jan 1, 2027 | $0.75 | $0.075 | $3.75 | |
| Gemini 2.5 Flash-Lite | $0.10 | $0.01 | $0.40 | |
Sources: OpenAI Pricing, Anthropic Pricing, and Google Gemini API Pricing, verified November 25, 2026.
Tier-by-Tier Comparison
Matching models by capability tier makes cross-provider tradeoffs clear.
Flagship Tier (Complex Reasoning & Agents)
Top reasoning models for multi-step software engineering, math, and deep analysis.
Price leader: Gemini 4 Neon ($3 / $15)OpenAI and Anthropic match at $8/$40, while Google Gemini 4 Neon is 62.5% cheaper on both input and output tokens.
Workhorse Tier (General Production)
Balanced capability and throughput for production SaaS features and RAG pipelines.
Three-way tie at $2 / $10 through Nov 30All three match at $2/$10 as of November 25, 2026. On December 1, 2026, Gemini 4 Carbon increases to $4/$20, matching Claude Opus 5.5.
Budget Tier (High-Volume & Classification)
High-throughput extraction, routing, chat, and classification.
Lowest current-gen output: Gemini 2.5 Flash-Lite ($0.10 / $0.40)All three charge $0.10/1M input, with Gemini 2.5 Flash-Lite slightly lower on output ($0.40 vs $0.50). For ultra-budget tasks, OpenAI GPT-5 Nano is $0.05/$0.40 per 1M tokens.
Calculate Your Exact Costs Across All Providers
Enter your token counts, prompt cache hit rate, and Batch API preference to compare every model live.
Open the AI API Cost Calculator ↗Beyond Per-Token Rates: Batching, Caching, and Long Context
Batch Processing
Batch API Discounts
All three providers offer a 50% Batch API discount for asynchronous workloads where 24-hour turnaround is acceptable.
Prompt Caching
Cached Input Token Discounts
Anthropic offers the steepest read discount on flagship models: 97.5% off (0.025x) on Claude Fable 5.2 and 95% off (0.05x) on Claude Opus 5.5 and Sonnet 5.5, with 90% off (0.1x) on Haiku 5.5 and earlier models. Cache writes cost 1.25x input for a 5-minute TTL or 2x for a 1-hour TTL.
OpenAI discounts cached reads by 95% on GPT-6.2 Astra/Sol and GPT-6.1 Terra, and 90% on GPT-6 Luna and GPT-5 models (older GPT-4o models are 50% off and GPT-4.1 is 75% off). Standard automatic caching has no extra write fee.
Google provides implicit context caching at 95% off (5% of input) on Gemini 4 Carbon, Argon, Neon, and Hydrogen, and 90% off on Gemini 3.8 Flash and Gemini 2.5 Flash-Lite (explicit caching also carries a per-hour storage charge).
Long-Context Pricing Rules
- OpenAI: Standard rates apply up to 272K input tokens on GPT-6 and GPT-5.4/5.5 models; prompts over 272K input tokens cost 2x input and 1.5x output.
- Anthropic: Claude 4.6 and later models (including Sonnet 5.5, Opus 5.5, and Fable 5.2) include a 1M-token context window at flat standard rates. The exception is Claude Haiku 5.5, which increases from $0.10/$0.50 to $0.50/$2.50 when prompts exceed 100K tokens.
- Google: Gemini 4 models offer a unified 1M-token context window at flat standard pricing; select 3.x Pro models (such as Gemini 3.1 Pro Preview) step up above 200K tokens.
Real-World Cost Comparison: 1 Million Requests
For a standard chatbot workload of 800 input tokens + 200 output tokens per request across 1,000,000 requests (800M input tokens + 200M output tokens total, uncached and non-batch):
| Tier | OpenAI | Anthropic | |
|---|---|---|---|
| Flagship | $14,400 GPT-6.2 Astra | $14,400 Claude Fable 5.2 | $5,400 Gemini 4 Neon |
| Workhorse | $3,600 GPT-6.2 Sol | $3,600 Claude Sonnet 5.5 | $3,600 Gemini 4 Carbon ($7,200 Dec 1) |
| Budget | $180 GPT-6 Luna | $180 Claude Haiku 5.5 | $160 Gemini 2.5 Flash-Lite |
| Ultra-budget | $120 GPT-5 Nano | N/A | N/A |
Formula: (800 × input_rate + 200 × output_rate) × 1,000,000 ÷ 1,000,000. Standard tier, no caching or batch applied.
When Each Provider Wins
Choose OpenAI when...
- You want the lowest possible per-token floor (GPT-5 Nano at $0.05/$0.40).
- You rely on automatic prompt caching without managing cache-write TTLs.
- You use the Responses API with built-in file search or multimodal audio/image tools.
Choose Anthropic (Claude) when...
- You have long, repeated prefixes and high cache-hit ratios (up to 95% to 97.5% cache read savings on Sonnet 5.5, Opus 5.5, and Fable 5.2).
- You run prompts between 272K and 1M tokens and want flat standard pricing without a long-context surcharge (on Sonnet 5.5, Opus 5.5, or Fable 5.2).
- You want a $4/$20 mid-flagship option (Claude Opus 5.5).
Choose Google (Gemini) when...
- You want the lowest-priced flagship model (Gemini 4 Neon at $3/$15) or lowest-priced current-generation budget output (Gemini 2.5 Flash-Lite at $0.10/$0.40).
- You want a free development tier with rate limits for prototyping before moving to Paid tier.
- You process multimodal video, audio, or 1M-token contexts natively.
Model Your Exact Scenario
Plug in your actual request volume, token sizes, cache hit %, and batch setting to find the cheapest model for your workload.
Try the AI API Cost Calculator ↗Cost Optimization Tips (Any Provider)
- Use the smallest capable model. Routing simple classification calls from a $2/$10 workhorse model to a $0.10/$0.50 budget model cuts token spend by 95% on those requests.
- Use Batch APIs for offline tasks. All three providers reduce token costs by 50% for async 24-hour jobs.
- Structure prompts for caching. Put static system instructions and schemas before dynamic user inputs so cache prefixes match consistently.
- Cap output length. Set explicit
max_tokenslimits since output tokens cost 4x to 8x more than input tokens.
Frequently Asked Questions
- Is Claude cheaper than GPT?
- At the workhorse tier, Sonnet 5.5 and GPT-6.2 Sol both cost $2/$10 per million tokens. Anthropic offers up to 97.5% off cache reads on Fable 5.2 and 95% off on Opus 5.5 and Sonnet 5.5 (with cache-write fees), while OpenAI offers 90% to 95% automatic cache discounts on GPT-5/GPT-6 models and GPT-5 Nano at $0.05/$0.40.
- Is Gemini cheaper than ChatGPT?
- At the flagship tier, yes: Gemini 4 Neon costs $3/$15 vs GPT-6.2 Astra at $8/$40. At the budget tier, Gemini 2.5 Flash-Lite ($0.10/$0.40) beats GPT-6 Luna ($0.10/$0.50) on output cost. Note that Gemini 4 Carbon rises from $2/$10 to $4/$20 on December 1, 2026.
- Which AI API is cheapest overall?
- OpenAI's GPT-5 Nano ($0.05/$0.40 per million tokens) is the lowest-priced option among major providers. For current-generation budget models, all three providers start at $0.10 input per million tokens.
- Do these prices include the free tier?
- No. Google offers a free tier with rate limits on select Gemini models, while OpenAI and Anthropic are pay-as-you-go (aside from starter credits for new accounts). This guide covers paid production API pricing.
- How often do AI API prices change?
- Frequently, and upcoming changes are already scheduled on official pricing pages (including Gemini 4 Carbon on December 1, 2026 and Gemini 3.8 Flash on January 1, 2027). All rates in this article were verified November 25, 2026.
Looking for a per-request breakdown focused on OpenAI workloads? Read our companion guide: How Much Does the ChatGPT API Cost? Per-Request Pricing for Every GPT Model.