Skip to the programs
startupcredits.fyi

Gemini API pricing (December 2026): every model, free tier and batch

Gemini API pricing per million tokens, from $0.10 (2.5 Flash-Lite) to $20 output (Gemini 4 Carbon). Free tier, batch at 50% off, caching and a cost calculator.

Gemini API prices run from $0.10 per million input tokens (Gemini 2.5 Flash-Lite) to $4.00 input and $20.00 output (Gemini 4 Carbon, Google's most capable model). Most Flash and Flash-Lite models, plus Gemini 4 Hydrogen, also have a free tier, and the Batch API cuts paid prices by 50%.

All prices below are from Google's Gemini Developer API pricing page on December 4, 2026, in US dollars per 1 million tokens. Output prices include thinking tokens.

Gemini API price per model

Standard (interactive) pricing for the text and multimodal models:

ModelModel codeFree tierInputOutputCached input
Gemini 4 Carbongemini-4-carbonNo$4.00$20.00$0.20
Gemini 4 Neongemini-4-neonNo$3.00$15.00$0.15
Gemini 4 Hydrogengemini-4-hydrogenYes$1.50$7.50$0.075
Gemini 3.8 Flashgemini-3.8-flashYes$0.75$3.75$0.075
Gemini 3.6 Flashgemini-3.6-flashYes$0.75$3.75$0.075
Gemini 3.5 Flash-Litegemini-3.5-flash-liteYes$0.30$2.50$0.03
Gemini 3.1 Flash-Litegemini-3.1-flash-liteYes$0.25 ($0.50 audio)$1.50$0.025
Gemini 3.1 Pro Previewgemini-3.1-pro-previewNo$2.00 / $4.00$12.00 / $18.00$0.20 / $0.40
Gemini 3 Flash Previewgemini-3-flash-previewYes$0.50 ($1.00 audio)$3.00$0.05
Gemini 2.5 Flash-Litegemini-2.5-flash-liteYes$0.10 ($0.30 audio)$0.40$0.01
Gemma 4YesFree onlyFree onlyFree only

Three things change soon:

  • Gemini 3.8 Flash and Gemini 3.6 Flash double in price on January 1, 2027, to $1.50 input, $7.50 output and $0.15 cached input. The prices above apply through December 31, 2026.
  • Gemini 4 Argon is deprecated. From December 15, 2026, requests to gemini-4-argon are routed to Gemini 4 Carbon and billed at Carbon rates ($4.00 and $20.00). Argon already costs the same as Carbon.
  • Gemini 3.1 Pro Preview has two context tiers. The first number applies to prompts up to 200K tokens, the second to prompts over 200K. It is the only current Gemini text model on this list with a long-context surcharge.

The Gemini 4 models have a 1M-token context window and can generate up to 1M output tokens with long decode. Gemma 4 is only offered free; Google lists no paid tier for it.

Gemini API cost calculator

Enter your expected traffic to see what each current Gemini model costs per month on the paid tier. Tick the comparison box to see Claude, GPT and Grok models at the same volume.

ModelPer 1,000 requestsPer month
Gemini 3.1 Flash-Lite$1.25$125
Gemini 3.8 FlashPrice doubles on January 1, 2027$3.38$338
Gemini 4 Hydrogen$6.75$675
Gemini 4 Neon$13.50$1,350
Gemini 4 Carbon$18.00$1,800

Standard API list prices checked 2026-12-04. Excludes tax, tool calls and Anthropic’s cache-write surcharge. Startup credits can bring this to $0.

Batch, Flex and Priority pricing

The paid tier has three other ways to run the same models:

  • Batch API: asynchronous jobs at 50% off Standard.
  • Flex: the same prices as Batch on these models.
  • Priority: lower latency at 1.8 times the Standard price.
ModelBatch / Flex inputBatch / Flex outputPriority inputPriority output
Gemini 4 Carbon$2.00$10.00$7.20$36.00
Gemini 4 Neon$1.50$7.50$5.40$27.00
Gemini 4 Hydrogen$0.75$3.75$2.70$13.50
Gemini 3.8 Flash$0.375$1.875$1.35$6.75
Gemini 3.5 Flash-Lite$0.15$1.25$0.54$4.50
Gemini 3.1 Flash-Lite$0.125$0.75$0.45$2.70
Gemini 3.1 Pro Preview (up to 200K)$1.00$6.00$3.60$21.60
Gemini 3.1 Pro Preview (over 200K)$2.00$9.00$7.20$32.40
Gemini 3 Flash Preview$0.25$1.50$0.90$5.40
Gemini 2.5 Flash-Lite$0.05$0.20$0.18$0.72

Gemini 3.8 Flash Batch and Priority prices also double on January 1, 2027. Batch jobs have their own limits: 100 concurrent batch requests, a 2GB input file limit and 20GB of file storage.

Gemini 4 Hydrogen also has a Contributor tier at $0.75 input and $3.75 output. It is an invite-only private preview, and unlike the normal paid tier, your content is used to improve Google's products.

How context caching is priced

  • Gemini 4 models support implicit caching only. Repeated prompt prefixes are billed at the cached input rate in the table above (5% of the input price), and Google lists no storage fee. You cannot create explicit caches.
  • Older models also support explicit caches, which add a storage fee per million tokens per hour: $1.00 for Gemini 3.5 Flash-Lite, 3.1 Flash-Lite, 3 Flash Preview and 2.5 Flash-Lite; $4.50 for Gemini 3.1 Pro Preview; $0.50 for Gemini 3.8 Flash through December 31, 2026 (then $1.00).

Cached tokens still count toward tokens-per-minute limits at full weight.

Tool and grounding prices

ToolPrice on the paid tier
Grounding with Google Search (Gemini 3 and newer)5,000 free searches a month shared across models, then $14 per 1,000; capped at 1,500 requests per day per project
Grounding with Google Search (Gemini 2.5)1,500 requests per day free, then $35 per 1,000 grounded prompts
Grounding with Google Maps (Gemini 3 and newer)5,000 free a month, then $14 per 1,000
Code executionBilled as normal input and output tokens
URL contextBilled as input tokens
File searchEmbeddings at $0.15 per million tokens (Gemini Embedding), plus retrieved tokens as input

One request can trigger several Google searches, and each search is billed.

Image, video, audio and embedding prices

ModelPrice
Nano Banana 2.1 (gemini-nano-banana-2.1)$0.0336 per 1K image, $0.0504 per 2K, $0.113 per 4K
Nano Banana 2 (gemini-3.1-flash-image)$0.067 per 1K image, $0.151 per 4K
Nano Banana 2 Lite (gemini-3.1-flash-lite-image)$0.0336 per 1K image
Nano Banana Pro (gemini-3-pro-image)$0.134 per 1K or 2K image, $0.24 per 4K
Gemini Omni 1.2 Flash (video)About $0.07 per second of 720p video
Gemini 4 Live$0.75 text input, $3.00 audio input; $4.50 text output, $12.00 audio output
Gemini 3.8 Flash TTS$0.50 text input, $9.00 audio output ($1.00 and $18.00 from January 1, 2027)
Gemini Embedding 2$0.20 per million text tokens
Gemini Embedding (gemini-embedding-001)$0.15 per million tokens
Lyria 3.5$0.08 per song

Image and video models are not on the free tier. The embedding models, the Live models and most TTS models are (Gemini 2.5 Pro Preview TTS is paid only).

Gemini API free tier

The free tier costs nothing and needs no card. You get it with any Gemini API key from Google AI Studio. It covers Gemini 4 Hydrogen, Gemini 3.8 Flash, 3.6 Flash, 3.5 Flash-Lite, 3.1 Flash-Lite, 3 Flash Preview, 2.5 Flash-Lite, Gemma 4, the embedding models, and the Live and TTS models.

What you give up:

  • Your data. Google's terms say free tier prompts and responses are used to improve Google products, and human reviewers may read them. On the paid tier they are not. In the EEA, Switzerland and the UK, paid data terms apply to everything, and apps serving users there must use the paid tier.
  • Rate limits. Google shows your free limits in AI Studio rather than in a public table. Limits apply per project, and daily limits reset at midnight Pacific time.
  • The best models. Carbon, Neon and 3.1 Pro Preview are paid only, and so are Batch on most models and Google Search grounding on Gemini 3 and newer.

Google AI Studio itself is free in every available region.

How Gemini API billing works

New paid accounts usually prepay: you add at least $5 (up to $5,000 per purchase) and usage is deducted in near real time. Purchased credits expire after 12 months and are not refundable. When the balance reaches $0, all keys on that billing account stop with an HTTP 402 error until you top up.

Your usage tier sets a monthly spend cap: $250 on Tier 1, $2,000 on Tier 2 (after $100 paid and 3 days) and $20,000 to $100,000+ on Tier 3 (after $1,000 paid and 30 days). You can request a higher cap.

You are not billed for HTTP 4xx or 5xx errors or blocked prompts. If a response stops with finishReason: SAFETY, input tokens are billed but output is not.

Worked example: a support chatbot

Say your app handles 10,000 conversations a month. Each one sends 3,000 input tokens (system prompt, history and question) and gets 500 output tokens back.

  • Input: 10,000 × 3,000 = 30,000,000 tokens (30M)
  • Output: 10,000 × 500 = 5,000,000 tokens (5M)
ModelInput costOutput costMonthly total
Gemini 4 Carbon30 × $4.00 = $120.005 × $20.00 = $100.00$220.00
Gemini 4 Hydrogen30 × $1.50 = $45.005 × $7.50 = $37.50$82.50
Gemini 3.8 Flash (December 2026)30 × $0.75 = $22.505 × $3.75 = $18.75$41.25
Gemini 3.8 Flash (from January 2027)30 × $1.50 = $45.005 × $7.50 = $37.50$82.50
Gemini 3.1 Flash-Lite30 × $0.25 = $7.505 × $1.50 = $7.50$15.00

Now add caching. If the first 2,000 tokens of every prompt are the same system prompt and hit Gemini 4 Hydrogen's implicit cache, then 20M input tokens bill at $0.075 and only 10M at $1.50:

  • Cached input: 20 × $0.075 = $1.50
  • Uncached input: 10 × $1.50 = $15.00
  • Output: $37.50
  • Total: $54.00, down from $82.50

If the same work could wait (tagging tickets overnight instead of live chat), Batch on Gemini 4 Hydrogen would cost 30 × $0.75 + 5 × $3.75 = $41.25.

Watch the 200K threshold on Gemini 3.1 Pro Preview. A request with a 199,000-token prompt and 2,000 output tokens costs 0.199 × $2.00 + 0.002 × $12.00 = about $0.42. Push the prompt to 250,000 tokens and it is billed at the higher rate: 0.25 × $4.00 + 0.002 × $18.00 = about $1.04.

How to pay less for the Gemini API

  1. Prototype on the free tier, then switch the project to paid before real customer data goes through it.
  2. Use the smallest model that passes your tests. In the example above, 3.1 Flash-Lite costs $15 a month against $220 for Carbon.
  3. Put stable content first in your prompt so caching can bill it at the cached rate (5% of the input price on Gemini 4 models, 10% on Gemini 3.8 Flash).
  4. Send anything that can wait to Batch or Flex for 50% off.
  5. Budget for Gemini 3.8 Flash doubling on January 1, 2027, and test cheaper models before then.
  6. Apply for startup credits. Google says Google for Startups Cloud credits cover Gemini and Gemma. The Start tier gives up to $2,000 for startups under 24 months old with an MVP, with no funding required yet. The Scale tier gives up to $200,000, and AI-first startups can get up to $350,000, with institutional funding. Third-party models in Model Garden are not covered. On a prepay AI Studio account, keep a positive prepaid balance, because eligible Cloud credits only apply while you have one.
  1. Google CloudGoogle for Startups Cloud ProgramUp to $350,000 in Google Cloud credits over two years (AI startups); up to $200,000 for other startupsNeeds an investor$350K

Do not count on the $300 Google Cloud Welcome credit: Google excludes Gemini API and AI Studio usage for billing accounts opened after March 2, 2026. Our Google Cloud credits guide covers every route to the larger amounts, and the AI startup credits guide lists credits for other model providers.

Questions

Is the Gemini API free?

Partly. Gemini 4 Hydrogen and the Flash and Flash-Lite models have a free tier with rate limits, and Google uses free tier prompts to improve its products. Gemini 4 Carbon, Gemini 4 Neon and Gemini 3.1 Pro Preview are paid only.

How much does Gemini 4 Carbon cost?

Gemini 4 Carbon costs $4.00 per million input tokens and $20.00 per million output tokens, including thinking tokens. Batch and Flex halve that to $2.00 and $10.00. It is not on the free tier.

Is Gemini 3.8 Flash getting more expensive?

Yes. Google lists Gemini 3.8 Flash and Gemini 3.6 Flash at $0.75 input and $3.75 output per million tokens through December 31, 2026, and $1.50 and $7.50 starting January 1, 2027.

Does Google charge for failed Gemini API requests?

Not for HTTP 4xx or 5xx errors or blocked prompts, though they still count against your quota. If a stream is cancelled after some chunks arrive, you can be billed for the tokens delivered up to that point.

Do Google Cloud startup credits pay for the Gemini API?

Google says Google for Startups Cloud Program credits cover Gemini and Gemma models. On a prepay AI Studio account you must hold a positive prepaid balance before eligible Cloud credits are applied. The $300 Google Cloud Welcome credit does not cover the Gemini API for accounts opened after March 2, 2026.

Programs in this guide

  1. Google CloudGoogle for Startups Cloud ProgramUp to $350,000 in Google Cloud credits over two years (AI startups); up to $200,000 for other startupsNeeds an investor$350K

Sources