Skip to main content

AI Resources

OpenAI vs Gemini API pricing

OpenAI 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

OpenAIGPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna cover reasoning, coding and high-volume work, with separate image and voice models.

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.

TierOpenAIGemini
FlagshipGPT-6 Astra$10/$503.1 Pro Preview$2/$12
MidGPT-6.1 Sol$2/$103.8 Flash$0.75/$3.75
BudgetGPT-6 Luna$0.10/$0.503.5 Flash-Lite$0.30/$2.50
ReasoningGPT-6 Astra$10/$503.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.

OpenAICost
GPT-6 Luna$0.15
GPT-5.6 Luna$0.32
GPT-5.4 Nano$0.33
GPT-5.4 Mini$1.20
GPT-6.1 Sol$3.00
GPT-6 Sol$3.00
GPT-5.6 Terra$3.20
GPT-5.6 Sol$6.00
GPT-6 Astra$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

OpenAI models and prices

ModelAPI IDInputCachedOutputContextMax out
GPT-6 Astragpt-6-astra$10.00$1.00$50.001.05M128K
GPT-6.1 Solgpt-6.1-sol$2.00$0.10$10.001.05M128K
GPT-6 Solgpt-6-sol$2.00$0.20$10.001.05M128K
GPT-6 Lunagpt-6-luna$0.10$0.01$0.501.05M128K
GPT-5.6 Solgpt-5.6-sol$4.00$0.40$20.001.05M128K
GPT-5.6 Terragpt-5.6-terra$2.00$0.20$12.001.05M128K
GPT-5.6 Lunagpt-5.6-luna$0.20$0.02$1.201.05M128K
GPT-5.5gpt-5.5$5.00$0.50$30.001.05M128K
GPT-5.5 Progpt-5.5-pro$30.00N/A$180.001.05M128K
GPT-5.4gpt-5.4$2.50$0.25$15.001.05M128K
GPT-5.4 Progpt-5.4-pro$30.00N/A$180.001.05M128K
GPT-5.4 Minigpt-5.4-mini$0.75$0.075$4.50400K128K

GPT-6 prices shown are Standard rates through 272K input tokens. Above that threshold, the full request uses 2x input/cache and 1.5x output rates. GPT-5.6 and later cache writes cost 1.25x uncached input instead of an additive fee; GPT-6.1 Sol reads cost 5% of input and the other listed GPT-6 models use 10%, with implicit or explicit caching from 1,024 tokens. Earlier-model minima vary; Pro rows do not list a cache discount. GPT-6 Batch/Flex cost 50% of Standard and Fast mode 2x. GPT-5.6 Sol pricing is promotional through at least November 21, 2026. Check individual older-model long-context rules. The 2x long-context multiplier also applies to cache writes. The fine-tuning platform is closed to new users. Astra Ultrafast short-context rates are $60 input, $6 cached input, $75 cache writes and $300 output per million tokens. GPT-5.4 Nano and GPT-5.3 Codex are deprecated, with shutdown scheduled for 2027-04-01.

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

CapabilityOpenAIGemini
Vision (image in)YesYes
Video inputNot documentedNative
Audio inputRealtime 2.1Native
PDF inputPDF text and page imagesNative bytes
Image generationGPT Image 2.5Nano Banana 2
Video generationVideos API shut down 2026-09-24Gemini Omni 1.1 Flash
Text to speechRealtime 2.1 Mini3.8 Flash TTS
Embeddingstext-embedding-3-smallEmbedding 2
Web search$10/1K3.x: 5K/month free, then $14/1K search queries
Tool / function callingYesYes
Structured JSONSchema enforcedSchema enforced
Reasoning modeEffort levelsThinking tokens
Code fill-in-the-middleNot documentedNot documented
Prompt cachingGPT-6: 90–95% off reads; 1.25x writesImplicit; explicit storage billed hourly
Batch APIYes, 50% offYes, 50% off
Long-context surchargeGPT-6 above 272K: 2x input/cache/write, 1.5x output2x input / 1.5x output above 200K (Pro)
Free tierNot documentedSelected text models; 2.5 access restricted
Max context1.05M1M
Max output128K64K
OpenAI SDK compatibleNativeOpenAI libraries via compatibility endpoint
Data sovereigntyRegional (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.

  • OpenAIhttps://developers.openai.com/api/docs/pricing
  • Geminihttps://ai.google.dev/gemini-api/docs/pricing