Gemini API pricing

Google bills the Gemini API per 1M tokens of input, cached input and output, and thinking tokens count as output [1]. Google lists the 10 current Gemini models at $0.10 to $4.00 per 1M input tokens and $0.40 to $20.00 per 1M output tokens on its paid tier. [1] One Straitly key calls the 9 Gemini models linked in the table at https://api.straitly.ai/v1 [8]. Straitly charges 8 of the 9 Gemini models linked in the table at least 40% below Google's list price, input and output, with no subscription. [1][8]

Updated

Fig. 1, 30 November 2026

40%

or more below Google's list price, input and output, on 8 of the 9 Gemini models on Straitly [1][8].

How much does the Gemini API cost per million tokens?

USD per 1M tokens, input / output

ModelContextReleasedGoogle list price
Gemini 4 Hydrogengemini-4-hydrogen1.05MNovember 2026$1.50 / $7.50
Gemini 4 Carbongemini-4-carbon1.05MNovember 2026$4.00 / $20.00
Gemini 4 Argongemini-4-argon1.05MOctober 2026$4.00 / $20.00
Gemini 3.8 Flashgemini-3.8-flash1.05MSeptember 2026$0.75 / $3.75
Gemini 3.5 Flash Litegemini-3.5-flash-lite1.05MJuly 2026$0.30 / $2.50
Gemini 3.6 Flashgemini-3.6-flash1.05MJuly 2026$0.75 / $3.75
Gemini 3.1 Flash Lite Previewgemini-3.1-flash-lite1.05MMay 2026$0.25 / $1.50
Gemini 3.1 Pro Previewgemini-3.1-pro-preview1.05MFebruary 2026$2.00 / $12.00
Gemini 3 Flash Previewgemini-3-flash-preview1.05MDecember 2025$0.50 / $3.00
Gemini 2.5 Flash Litegemini-2.5-flash-lite1.05MJuly 2025$0.10 / $0.40

Newest first. Rows are the catalog's Gemini models on 2 December 2026 [7]. List prices are Google's own Standard paid-tier rates, matched on its pricing page on 24 November 2026 and checked again on 2 December 2026 [1]. Where a maker sells a model at more than one rate, the list price shown is the lowest one it sells for live calls outside mainland China, and the model's page says which. Google has deprecated Gemini 4 Argon; see the price changes below [2]. Gemini 3.7 Flash, Gemini 3.5 Flash, Gemini 2.5 Flash and Gemini 2.5 Pro are left off: Google retired them and routes the calls to newer models [2]. Gemini 4 Carbon has no Straitly model page yet. Every provider's price for the same models is on the LLM API price index.

What does cached Gemini input cost, and which models are free?

Google says cache hits "cost 95% less on Gemini 4 models and up to 90% less on Gemini 3 and 2.5 models" [4]. The free tier has lower rate limits, and Google uses free-tier content to improve its products [1].

USD per 1M cached input tokens

ModelCached inputFree tier
Gemini 4 Hydrogen$0.075Yes
Gemini 4 Carbon$0.20No
Gemini 4 Argon$0.20No
Gemini 3.8 Flash$0.075Yes
Gemini 3.5 Flash Lite$0.03Yes
Gemini 3.6 Flash$0.075Yes
Gemini 3.1 Flash Lite Preview$0.025Yes
Gemini 3.1 Pro Preview$0.20No
Gemini 3 Flash Preview$0.05Yes
Gemini 2.5 Flash Lite$0.01Yes

What else changes the price of a Gemini call?

On Google's own API, thinking, batch, priority, prompt length and Search grounding all move the bill. These are Google's terms, from its docs on 2 December 2026.

  • Thinking tokens bill as output: Google's output price is "including thinking tokens". [1]
  • The Batch API runs at 50% of the standard cost, with a 24-hour target turnaround. The Flex tier lists the same half rate. [1][3]
  • Priority processing costs 1.8x the Standard rate on input, output and cached tokens, on every model in the table. [1]
  • Gemini 3.1 Pro Preview bills $4.00 / $18.00 per 1M input / output tokens once a prompt passes 200K tokens. [1]
  • Grounding with Google Search gives 5,000 free requests a month across Gemini 3 and newer models, then costs $14 per 1,000 requests. [1]

Are Gemini API prices changing?

Yes. Google has dated rises, an ended promotion and retired models that now route to newer ones [1][2].

ModelWhat changesWhen
Gemini 3.8 Flash and Gemini 3.6 FlashRises to $1.50 / $7.50 per 1M input / output tokens1 Jan 2027
Gemini 4 CarbonMoved from the $2.00 / $10.00 promotional rate to $4.00 / $20.001 Dec 2026
Gemini 4 ArgonMoved from the $2.00 / $10.00 promotional rate to $4.00 / $20.001 Dec 2026
Gemini 4 ArgonDeprecated; API calls route to Gemini 4 Carbon at Gemini 4 Carbon rates15 December 2026
Gemini 3.7 FlashRetired; API calls route to Gemini 3.8 FlashIn effect
Gemini 3.5 FlashRetired; API calls route to Gemini 3.6 FlashIn effect
Gemini 2.5 FlashRetired; API calls route to Gemini 3.5 Flash Lite at Gemini 3.5 Flash Lite rates1 December 2026
Gemini 2.5 ProRetired; API calls route to Gemini 3.8 Flash at Gemini 3.8 Flash rates1 December 2026

How do I get a Gemini API key?

From Google AI Studio, or as a Straitly key that calls Gemini and every other Straitly model. Either way the OpenAI SDK works with a base URL and key change [6][10].

StepGoogle Gemini APIStraitly
Get a keyCreate a key in Google AI Studio at aistudio.google.com/api-keys [1][5]Sign up, add prepaid credits [11], then create a key on the API keys page [9]
Environment variableGEMINI_API_KEY or GOOGLE_API_KEY [5]STRAITLY_API_KEY
OpenAI SDK base URLhttps://generativelanguage.googleapis.com/v1beta/openai/ [6]https://api.straitly.ai/v1
Request formatGemini API, plus an OpenAI-compatible endpoint [6]OpenAI Chat Completions and Anthropic Messages [10]
Models on one keyGoogle's own modelsAll 118 on /models [8]
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.straitly.ai/v1",
    api_key=os.environ["STRAITLY_API_KEY"],
)
reply = client.chat.completions.create(
    model="gemini-4-hydrogen",
    messages=[{"role": "user",
               "content": "Hello"}],
)

Questions people ask about Gemini API pricing

Ask a question
  • Google lists the 10 current Gemini models at $0.10 to $4.00 per 1M input tokens and $0.40 to $20.00 per 1M output tokens on its paid tier. Cached input, Batch, Priority, long prompts and Search grounding change the bill. List prices are from Google's pricing page, matched on 24 November 2026 and checked again on 2 December 2026. [1][7]
  • Partly. Google's free tier covers 7 of the 10 current Gemini models in the table (Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 3.5 Flash Lite, Gemini 3.6 Flash, Gemini 3.1 Flash Lite Preview, Gemini 3 Flash Preview and Gemini 2.5 Flash Lite), with lower rate limits; Gemini 4 Carbon, Gemini 4 Argon and Gemini 3.1 Pro Preview are paid only. Google's pricing page says free-tier content is "used to improve our products" and paid-tier content is not. [1]
  • Google bills cached input at its context caching price, a fraction of fresh input; its caching page says cache hits "cost 95% less on Gemini 4 models and up to 90% less on Gemini 3 and 2.5 models." Gemini 4 models support implicit caching only, a request needs at least 4,096 input tokens on Gemini 4 and Gemini 3 models, and an entry lives up to 24 hours. [1][4]
  • On Google, create a key in Google AI Studio (aistudio.google.com/api-keys) and set it as GEMINI_API_KEY; if GOOGLE_API_KEY is also set, it takes precedence. On Straitly, create a Straitly key, set the base URL to https://api.straitly.ai/v1 and use the model id gemini-4-hydrogen. The same Straitly key calls all 118 Straitly models. [5][9]
  • No. Zero data retention (ZDR) is the default on every Straitly account, on every key. Prompts and completions are never written to disk or logs, and never used to train models. Straitly keeps only the metadata needed for billing and the Activity page: timestamp, model, provider, and the key that made the request; token counts per bucket; latency, status code, and the amount charged. None of these fields contain prompt or completion text. [12] See data retention.

Sources

Last updated 2 December 2026. Prices change. If something here is out of date, tell us at straitly.ai/contact.

  1. [1]Gemini Developer API pricingGoogle AI for Developers, checked 2 December 2026
  2. [2]Gemini deprecationsGoogle AI for Developers, checked 2 December 2026
  3. [3]Batch APIGoogle AI for Developers, checked 2 December 2026
  4. [4]Context cachingGoogle AI for Developers, checked 2 December 2026
  5. [5]Using Gemini API keysGoogle AI for Developers, checked 2 December 2026
  6. [6]OpenAI compatibilityGoogle AI for Developers, checked 2 December 2026
  7. [7]Straitly model catalogStraitly, read 2 December 2026
  8. [8]Straitly modelsStraitly, read 2 December 2026
  9. [9]QuickstartStraitly docs, checked 2 December 2026
  10. [10]EndpointsStraitly docs, checked 2 December 2026
  11. [11]PricingStraitly, checked 2 December 2026
  12. [12]Data retentionStraitly docs, checked 2 December 2026
How this page was checked

The 10 Gemini models in the table are from Straitly's catalog, read on 2 December 2026. List prices are the ones matched on Google's pricing page on 24 November 2026; that page, the deprecations page, and the Batch, caching, OpenAI compatibility and API key pages were read again on 2 December 2026. Cached input is Google's context caching price for prompts in the first price tier. Release months are from Google's model pages, else from Straitly's catalog. Batch and Priority figures are Google's per-model tables, which apply the same 50% and 1.8x to every model listed here.

Call Gemini 4 Hydrogen on Straitly.

One OpenAI-compatible key for the Gemini models above and the rest of the 118.