Skip to main content

AI Resources

Claude vs Gemini API pricing

Claude and Gemini API prices side by side: model tiers, current models, the cost of the same workload and what each API supports, read from the providers' own pricing pages.

Last verified: October 13, 2026

AnthropicOpus 5.5 and Fable 5.1 offer 1M context at standard token rates, with model-specific cache discounts.

GeminiSelected general-purpose models offer a free tier, multimodal input and discounted Batch and Flex token rates. Gemini 2.5 access is limited to prior active users.

Tier by tier

The closest model of each provider at four levels, shown as input / output price per million tokens.

TierClaudeGemini
FlagshipFable 5.1$10/$503.1 Pro Preview$2/$12
MidSonnet 5.5$2/$103.8 Flash$0.75/$3.75
BudgetHaiku 4.5$1/$53.5 Flash-Lite$0.30/$2.50
ReasoningOpus 5.5$4/$203.1 Pro Preview$2/$12

Cost of the same workload

Base token-cost estimate for 10 equal requests: 100K input + 10K output tokens each (1M + 100K total). Only models with documented limits covering each request are shown. DeepSeek uses peak rates; its cached row assumes all input hits an existing cache, excluding warm-up misses. Gemini 2.5 requires prior active use. Cache writes, storage, tools, media and service premiums are excluded.

ClaudeCost
Claude Sonnet 5.5$3.00
Claude Sonnet 5$3.00
Claude Opus 5.5$6.00
Claude Opus 4.6$7.50
Claude Opus 5$7.50
Claude Fable 5.1$15.00
Claude Fable 5$15.00
GeminiCost
Gemini 2.5 Flash-Lite$0.14
Gemini 3.1 Flash-Lite$0.40
Gemini 3.5 Flash-Lite$0.55
Gemini 3 Flash Preview$0.80
Gemini 3.6 Flash$1.13
Gemini 3.8 Flash$1.13
Gemini 3.1 Pro Preview$3.20

Open the cost calculator

Anthropic models and prices

ModelAPI IDInputOutputBatch in/outCache hitContextMax out
Fable 5.1claude-fable-5-1$10.00$50.00$5.00 / $25.00$0.251M128K
Opus 5.5claude-opus-5-5$4.00$20.00$2.00 / $10.00$0.201M128K
Mythos 5.1claude-mythos-5-1$10.00$50.00$5.00 / $25.00$0.251M128K
Mythos 5claude-mythos-5$10.00$50.00$5.00 / $25.00$1.001M128K
Sonnet 5.5claude-sonnet-5-5$2.00$10.00$1.00 / $5.00$0.101M128K
Haiku 5.5claude-haiku-5-5$0.10 / $0.50$0.50 / $2.50$0.05 / $0.25; $0.25 / $1.25$0.01 / $0.051M128K

Fable 5.1 and Mythos 5.1 cache reads cost 2.5% of base input; Opus 5.5 and Sonnet 5.5 reads cost 5%; other listed models use 10%. Five-minute writes cost 1.25x input and one-hour writes 2x, without a separate storage fee. Batch discounts input and output by 50%. Fable 5.1, Opus 5.5 and Sonnet 5.5 provide 1M context at standard rates. Haiku 5.5 has 1M context but higher rates above 100K prompt tokens, including cached tokens. Its directory cells show up-to-100K then above-100K rates; each batch pair is input/output. Output limits shown are standard limits, excluding Batch betas. Opus 4.1 retired on August 5, 2026. Opus 5.5, Sonnet 5.5 and Haiku 5.5 additionally support 300K maximum output on the Message Batches API with the output-300k-2026-03-24 beta header. Sonnet 4.5 was deprecated on 2026-09-30 and is scheduled to retire on 2026-11-30; Anthropic recommends claude-sonnet-5-5.

Gemini models and prices

ModelAPI IDInputOutputCachedContextFree
3.8 Flashgemini-3.8-flash$0.75$3.75$0.0751Myes
3.6 Flashgemini-3.6-flash$0.75$3.75$0.0751Myes
3.5 Flash-Litegemini-3.5-flash-lite$0.30$2.50$0.031Myes
3.1 Flash-Litegemini-3.1-flash-lite$0.25$1.50$0.0251Myes
3.1 Pro Previewgemini-3.1-pro-preview$2.00 / $4.00$12.00 / $18.00$0.20 / $0.401Mno
3 Flash Previewgemini-3-flash-preview$0.50$3.00$0.051Myes

Selected models, not the complete Google catalog. Text-input and text-output rates are shown; audio and media can differ. Gemini 3.6/3.8 Flash standard input/output is $0.75/$3.75 per million tokens through 2026-12-31, then $1.50/$7.50 from 2027-01-01. The listed general-purpose text models have a 1,048,576-token input limit and 65,536-token output limit. Gemini 2.5 Pro, 2.5 Flash and 2.5 Flash-Lite require prior active use and are not deprecated. This restriction also applies to the $0.10/$0.40 Flash-Lite option in charts, simulation and the input KPI. Free tiers depend on model and eligibility; 3.1 Pro Preview has none. Explicit caching adds storage charges; implicit caching is enabled by default on Gemini 2.5 and newer. Audio input/cache rates per million tokens are $0.50/$0.05 on 3.1 Flash-Lite, $1.00/$0.10 on 3 Flash Preview and 2.5 Flash, and $0.30/$0.03 on 2.5 Flash-Lite. 3.5 Flash-Lite uses $0.30 input and $0.03 cache for all its input modalities. Imagen 4 is retired; its row is historical. The earliest possible shutdown date for the three Veo 3.1 preview variants is 2026-10-22; Google recommends gemini-omni-1.1-flash. They are not yet shut down.

What each API supports

CapabilityClaudeGemini
Vision (image in)YesYes
Video inputNot documentedNative
Audio inputNot documentedNative
PDF inputPDF text and page imagesNative bytes
Image generationNot documentedNano Banana 2
Video generationNot documentedGemini Omni 1.1 Flash
Text to speechNot documented3.8 Flash TTS
EmbeddingsNot documentedEmbedding 2
Web search$10/1K3.x: 5K/month free, then $14/1K search queries
Tool / function callingYesYes
Structured JSONSchema enforcedSchema enforced
Reasoning modeAdaptive thinkingThinking tokens
Code fill-in-the-middleNot documentedNot documented
Prompt caching90–97.5% off cache readsImplicit; explicit storage billed hourly
Batch APIYes, 50% offYes, 50% off
Long-context surchargeHaiku 5.5: higher rates above 100K prompt tokens2x input / 1.5x output above 200K (Pro)
Free tierTrial creditsSelected text models; 2.5 access restricted
Max context1M1M
Max output128K standard; 300K on selected Batch betas64K
OpenAI SDK compatibleTesting layer; no prompt caching or strict schemasOpenAI libraries via compatibility endpoint
Data sovereigntyUS residency (1.1x)Not documented

Scheduled price changes

Dated prices recorded in the pricing data, per million tokens (input / output).

  • Gemini 3.6 Flash, 3.7 Flash, 3.8 Flash
    • $0.75 / $3.75 until December 31, 2026 Sources
    • $1.50 / $7.50 from January 1, 2027 Sources

Sources

Every figure on this page was read from the provider's own pricing documentation on the verification date shown above.

  • Anthropichttps://platform.claude.com/docs/en/about-claude/pricing
  • Geminihttps://ai.google.dev/gemini-api/docs/pricing