---
title: "Gemini API Pricing per 1M Tokens (2026) | Straitly"
description: "Gemini API pricing per 1M tokens for each current Gemini model: Google list rates, cached input, free tier, Batch and Priority, and dated price changes."
url: https://straitly.ai/gemini-api-pricing
updated: 2026-12-02
publisher: Straitly (https://straitly.ai)
---

# Gemini API pricing

Google bills the Gemini API per 1M tokens of input, cached input and output, and thinking tokens count as output [\[1\]](#src-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\]](#src-1) One Straitly key calls the 9 Gemini models linked in the table at `https://api.straitly.ai/v1` [\[8\]](#src-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\]](#src-1) [\[8\]](#src-8)

Updated 2 December 2026

[Get an API key](https://straitly.ai/signup) [See Gemini prices ](#prices)

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\]](#src-1) [\[8\]](#src-8).

## How much does the Gemini API cost per million tokens?

USD per 1M tokens, input / output

| Model                                                                                                   | Context | Released       | Google list price |
| ------------------------------------------------------------------------------------------------------- | ------- | -------------- | ----------------- |
| [Gemini 4 Hydrogen](https://straitly.ai/models/gemini-4-hydrogen) gemini-4-hydrogen                     | 1.05M   | November 2026  | $1.50 / $7.50     |
| Gemini 4 Carbon gemini-4-carbon                                                                         | 1.05M   | November 2026  | $4.00 / $20.00    |
| [Gemini 4 Argon](https://straitly.ai/models/gemini-4-argon) gemini-4-argon                              | 1.05M   | October 2026   | $4.00 / $20.00    |
| [Gemini 3.8 Flash](https://straitly.ai/models/gemini-3.8-flash) gemini-3.8-flash                        | 1.05M   | September 2026 | $0.75 / $3.75     |
| [Gemini 3.5 Flash Lite](https://straitly.ai/models/gemini-3.5-flash-lite) gemini-3.5-flash-lite         | 1.05M   | July 2026      | $0.30 / $2.50     |
| [Gemini 3.6 Flash](https://straitly.ai/models/gemini-3.6-flash) gemini-3.6-flash                        | 1.05M   | July 2026      | $0.75 / $3.75     |
| [Gemini 3.1 Flash Lite Preview](https://straitly.ai/models/gemini-3.1-flash-lite) gemini-3.1-flash-lite | 1.05M   | May 2026       | $0.25 / $1.50     |
| [Gemini 3.1 Pro Preview](https://straitly.ai/models/gemini-3.1-pro-preview) gemini-3.1-pro-preview      | 1.05M   | February 2026  | $2.00 / $12.00    |
| [Gemini 3 Flash Preview](https://straitly.ai/models/gemini-3-flash-preview) gemini-3-flash-preview      | 1.05M   | December 2025  | $0.50 / $3.00     |
| [Gemini 2.5 Flash Lite](https://straitly.ai/models/gemini-2.5-flash-lite) gemini-2.5-flash-lite         | 1.05M   | July 2025      | $0.10 / $0.40     |

Newest first. Rows are the catalog's Gemini models on 2 December 2026 [\[7\]](#src-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\]](#src-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\]](#src-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\]](#src-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](https://straitly.ai/llm-api-price-index).

[See all models ](https://straitly.ai/models)

## 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\]](#src-4). The free tier has lower rate limits, and Google uses free-tier content to improve its products [\[1\]](#src-1).

USD per 1M cached input tokens

| Model                                                                             | Cached input | Free tier |
| --------------------------------------------------------------------------------- | ------------ | --------- |
| [Gemini 4 Hydrogen](https://straitly.ai/models/gemini-4-hydrogen)                 | $0.075       | Yes       |
| Gemini 4 Carbon                                                                   | $0.20        | No        |
| [Gemini 4 Argon](https://straitly.ai/models/gemini-4-argon)                       | $0.20        | No        |
| [Gemini 3.8 Flash](https://straitly.ai/models/gemini-3.8-flash)                   | $0.075       | Yes       |
| [Gemini 3.5 Flash Lite](https://straitly.ai/models/gemini-3.5-flash-lite)         | $0.03        | Yes       |
| [Gemini 3.6 Flash](https://straitly.ai/models/gemini-3.6-flash)                   | $0.075       | Yes       |
| [Gemini 3.1 Flash Lite Preview](https://straitly.ai/models/gemini-3.1-flash-lite) | $0.025       | Yes       |
| [Gemini 3.1 Pro Preview](https://straitly.ai/models/gemini-3.1-pro-preview)       | $0.20        | No        |
| [Gemini 3 Flash Preview](https://straitly.ai/models/gemini-3-flash-preview)       | $0.05        | Yes       |
| [Gemini 2.5 Flash Lite](https://straitly.ai/models/gemini-2.5-flash-lite)         | $0.01        | Yes       |

## 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\]](#src-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\]](#src-1) [\[3\]](#src-3)
- Priority processing costs 1.8x the Standard rate on input, output and cached tokens, on every model in the table. [\[1\]](#src-1)
- Gemini 3.1 Pro Preview bills $4.00 / $18.00 per 1M input / output tokens once a prompt passes 200K tokens. [\[1\]](#src-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\]](#src-1)

## Are Gemini API prices changing?

Yes. Google has dated rises, an ended promotion and retired models that now route to newer ones [\[1\]](#src-1) [\[2\]](#src-2).

| Model                                 | What changes                                                                     | When             |
| ------------------------------------- | -------------------------------------------------------------------------------- | ---------------- |
| Gemini 3.8 Flash and Gemini 3.6 Flash | Rises to $1.50 / $7.50 per 1M input / output tokens                              | 1 Jan 2027       |
| Gemini 4 Carbon                       | Moved from the $2.00 / $10.00 promotional rate to $4.00 / $20.00                 | 1 Dec 2026       |
| Gemini 4 Argon                        | Moved from the $2.00 / $10.00 promotional rate to $4.00 / $20.00                 | 1 Dec 2026       |
| Gemini 4 Argon                        | Deprecated; API calls route to Gemini 4 Carbon at Gemini 4 Carbon rates          | 15 December 2026 |
| Gemini 3.7 Flash                      | Retired; API calls route to Gemini 3.8 Flash                                     | In effect        |
| Gemini 3.5 Flash                      | Retired; API calls route to Gemini 3.6 Flash                                     | In effect        |
| Gemini 2.5 Flash                      | Retired; API calls route to Gemini 3.5 Flash Lite at Gemini 3.5 Flash Lite rates | 1 December 2026  |
| Gemini 2.5 Pro                        | Retired; API calls route to Gemini 3.8 Flash at Gemini 3.8 Flash rates           | 1 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\]](#src-6) [\[10\]](#src-10).

| Step                 | Google Gemini API                                                                                | Straitly                                                                                                                             |
| -------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| Get a key            | Create a key in Google AI Studio at aistudio.google.com/api-keys [\[1\]](#src-1) [\[5\]](#src-5) | [Sign up](https://straitly.ai/signup), add prepaid credits [\[11\]](#src-11), then create a key on the API keys page [\[9\]](#src-9) |
| Environment variable | GEMINI\_API\_KEY or GOOGLE\_API\_KEY [\[5\]](#src-5)                                             | STRAITLY\_API\_KEY                                                                                                                   |
| OpenAI SDK base URL  | https://generativelanguage.googleapis.com/v1beta/openai/ [\[6\]](#src-6)                         | https://api.straitly.ai/v1                                                                                                           |
| Request format       | Gemini API, plus an OpenAI-compatible endpoint [\[6\]](#src-6)                                   | OpenAI Chat Completions and Anthropic Messages [\[10\]](#src-10)                                                                     |
| Models on one key    | Google's own models                                                                              | All 118 on [/models](https://straitly.ai/models) [\[8\]](#src-8)                                                                     |

Copy

```
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](https://straitly.ai/contact)

- ### How much does the Gemini API cost?
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\]](#src-1) [\[7\]](#src-7)
- ### Is the Gemini API free?
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\]](#src-1)
- ### How much does Gemini context caching cost?
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\]](#src-1) [\[4\]](#src-4)
- ### How do I get a Gemini API key?
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\]](#src-5) [\[9\]](#src-9)
- ### Does Straitly keep my Gemini prompts?
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\]](#src-12) See [data retention](https://straitly.ai/docs/data-retention).

## Sources

Last updated 2 December 2026\. Prices change. If something here is out of date, tell us at [straitly.ai/contact](https://straitly.ai/contact).

1. \[1\] [Gemini Developer API pricing](https://ai.google.dev/gemini-api/docs/pricing) Google AI for Developers, checked 2 December 2026
2. \[2\] [Gemini deprecations](https://ai.google.dev/gemini-api/docs/deprecations) Google AI for Developers, checked 2 December 2026
3. \[3\] [Batch API](https://ai.google.dev/gemini-api/docs/batch-mode) Google AI for Developers, checked 2 December 2026
4. \[4\] [Context caching](https://ai.google.dev/gemini-api/docs/caching) Google AI for Developers, checked 2 December 2026
5. \[5\] [Using Gemini API keys](https://ai.google.dev/gemini-api/docs/api-key) Google AI for Developers, checked 2 December 2026
6. \[6\] [OpenAI compatibility](https://ai.google.dev/gemini-api/docs/openai) Google AI for Developers, checked 2 December 2026
7. \[7\] [Straitly model catalog](https://straitly.ai/api/catalog) Straitly, read 2 December 2026
8. \[8\] [Straitly models](https://straitly.ai/models) Straitly, read 2 December 2026
9. \[9\] [Quickstart](https://straitly.ai/docs/quickstart) Straitly docs, checked 2 December 2026
10. \[10\] [Endpoints](https://straitly.ai/docs/endpoints) Straitly docs, checked 2 December 2026
11. \[11\] [Pricing](https://straitly.ai/pricing) Straitly, checked 2 December 2026
12. \[12\] [Data retention](https://straitly.ai/docs/data-retention) Straitly 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.

Read next: [LLM API Price Index](https://straitly.ai/llm-api-price-index) , [Prompt caching](https://straitly.ai/prompt-caching-savings) , [OpenAI API pricing](https://straitly.ai/openai-api-pricing) , [Grok API pricing](https://straitly.ai/grok-api-pricing).

## Call Gemini 4 Hydrogen on Straitly.

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

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/gemini-api-pricing.
