Pricing+7% bonus
Contact sales
// Gemini API pricing

Gemini API pricing, 30% under list, in one table

Eight Gemini API text models and three image models on one key, quoted per million tokens. Every text row bills 30% under Google’s published sheet, and the cache lines sit on this page instead of on your invoice.

From $15 — one-time top-up, nothing renews List column read from Google’s own sheet
8 Gemini API text models behind one key, from 3.1 Flash-Lite up to 4 Carbon
−30% Against Google’s list on every text row in the table below
1.05M Context window on all eight rows, so the window is never what you trade away
// The bill

Why a Gemini API bill lands above the quote

The Gemini API pricing sheet is one page and four billing lines: input, output, cache write, cache read. The estimate you built almost always took the input number and left the other three out.

On Gemini 3.1 Pro, input bills $1.40 per million and output $8.40 — six times more for the half of the request nobody can predict in advance.

01 / OUTPUT

Output bills six times the input rate

On the Gemini API, 3.1 Pro charges $8.40 out against $1.40 in. A 200K diff that returns 8K of review spends $0.28 reading and $0.067 answering, so max_tokens is the only brake you hold per call.

That split is also why a model cheaper on input can lose on the invoice: 4 Carbon reads at $2.80 but answers at $14.00.

02 / CACHE WRITE

A cache write can cost more than the text it stores

A Gemini API cache write on a 1M prefix bills $3.15 against $1.40 for sending the same tokens uncached. Store something you re-read once and you have paid 2.25× for nothing.

The same write on 3.8 Flash is $0.70 against $1.05 of input, so the storage is cheaper than the read it replaces from the first call.

03 / THINKING

Reasoning tokens land on the output line

Google meters Gemini’s thinking as output, so a reasoning-heavy answer bills at the $8.40 rate even when the visible reply is two sentences long.

A Gemini API estimate built from prompt length alone misses this entirely, which is why two runs of the same prompt can differ by more than the prompt costs.

04 / RETRIES

The 429 costs more than the token it blocks

A rate-limited call that retries four times bills once and still holds a worker for four round trips. At 300ms each, that is 1.2 seconds of a queue you paid to build.

No line on any Gemini API pricing table shows this, and it is the number that turns a $0.35 review into a stalled pipeline.

// Token rates

Gemini API pricing, eight current rows per 1M tokens

Eight rows, one table, and each row is the newest model at its rate. 3.6 and 3.7 Flash bill the same $1.05 as 3.8 Flash, so neither gets its own row.

That makes this the whole of Gemini API pricing for the current line: Google’s published sheet, this key’s rate beside it, then the two cache columns.

Model Context List in / out Here in / out Cache write Cache read Save
4 Carbon 1.05M$4.00 / $20.00$2.80 / $14.00—$0.14−30%
4 Argon 1.05M$4.00 / $20.00$2.80 / $14.00—$0.14−30%
4 Hydrogen 1.05M$1.50 / $7.50$1.05 / $5.25—$0.0525−30%
3.8 Flash 1.05M$1.50 / $7.50$1.05 / $5.25$0.70$0.105−30%
3.5 Flash 1.05M$1.50 / $9.00$1.05 / $6.30$0.70$0.105−30%
3.1 Pro 1.05M$2.00 / $12.00$1.40 / $8.40$3.15$0.14−30%
3.5 Flash-Lite 1.05M$0.30 / $2.50$0.21 / $1.75$0.70$0.021−30%
3.1 Flash-Lite 1.05M$0.25 / $1.50$0.175 / $1.05$0.70$0.0175−30%
Per million tokens, USD. List is Google’s published Gemini API sheet; here is the catalog rate on this key before any top-up bonus. A dash means the model has no cache-write tier. Cache read bills a prefix the model has already processed.

A 1M-in, 1M-out run on 3.1 Pro costs $9.80 here against $14.00 at list.

On 3.5 Flash-Lite the same run is $1.96 against $2.80, which is the row to check before deciding that Gemini API pricing is expensive.

// Cache math

Cache reads bill 10% of input — when that pays off

On the Gemini API, every model reads a cached prefix at 10% of its own input rate.

Writing the cache is the part that varies: on 3.1 Pro it costs 2.25× the input, on 3.8 Flash it costs less than the input itself.

Filled reads before break-even · Empty still losing on the write · one square = one re-read of the same prefix
3.8 Flash — write $0.70, input $1.05, read $0.105. The write is cheaper than the input, so the first re-read already wins.1 read
3.1 Pro — write $3.15, input $1.40, read $0.14. Break-even is $1.75 ÷ $1.26, or 1.4 reads.2 reads
3.5 Flash-Lite — write $0.70, input $0.21, read $0.021. The write costs 3.3× the input it stores.3 reads
4 Carbon — read $0.14, and no separately published write rate, so there is no write to earn back. That is why the chart stops at three rows.n/a

The formula is (write − input) ÷ (input − read), and it is the only formula on this page that changes model by model.

Long system prompts and repo context clear it easily; a 400-token instruction you send twice does not.

Below break-even the cache is a loss that looks like an optimization on the invoice, which is why the write column is on the table above rather than in a footnote.

// Per call

What one Gemini API call actually costs

Gemini API pricing per million tokens is hard to feel. These three shapes are ordinary request sizes, priced at the Gemini API pricing above with no top-up bonus applied to any of them.

Support reply
$0.000951.2K in, 400 out · 3.5 Flash-Lite

One ticket answered with the policy and the order context inside 1.2K tokens of input. At 2,000 tickets a day this is $1.90 of tokens a day.

At list$0.00136
Pull request review
$0.347200K in, 8K out · 3.1 Pro

A 200K diff read against the repo conventions with thinking left on. Sixty of these a week is $20.83, and the answer is 19% of that bill.

At list$0.496
Contract re-read
$0.193900K in, 800K cached · 3.8 Flash

The second pass over a 900K contract with the prefix already cached. The same read with no cache is $0.949, which is what the cache column buys.

At list, no cache$1.36

The ratio is what to plan against: a support reply is a tenth of a cent, a code review lands near a third of a dollar, and a cache turns a 900K re-read into nineteen cents.

Fix the prompt shape before you shop the Gemini API for a cheaper row. Model choice moves this bill less than output length and cache hits do.

// At volume

What 100M tokens a month costs on Gemini

Gemini API pricing stops being a rounding error at this size. One model, 3.8 Flash, at an 80/20 input-to-output split, which is where chat and agent traffic usually lands. Cache reads are excluded.

Tokens per month At list Here Saved
10M$27.00$18.90$8.10
100M$270.00$189.00$81.00
500M$1,350.00$945.00$405.00
80% input, 20% output at Gemini 3.8 Flash rates from the Gemini API pricing table above. Cache reads and the top-up bonus are excluded, so a cached or prepaid month lands below both columns.

The saving is a flat 30% at every volume, because the discount sits on the Gemini API token rather than on the invoice.

The same 100M on 3.1 Pro is $400.00 at list and $280.00 here; on 3.5 Flash-Lite it is $74.00 and $51.80.

// Row selection

Which Gemini row carries your workload

Four workloads cover most of the traffic on this key. Each lands on a different Gemini API pricing row, and the wrong one costs 13× on output.

01 / EXTRACTION

Extraction lands on the $0.21 row

A field, a label or a JSON object comes back short, so output barely moves the bill. 3.5 Flash-Lite answers at $1.75 per million against $8.40 on 3.1 Pro.

A million extraction calls at 800 tokens in and 60 out is $273 a month, and $168 of it is the input side.

02 / CHAT

Chat and support sit on 3.8 Flash

3.8 Flash bills $1.05 in and $5.25 out, a 5× ratio, and most chat traffic belongs on that row. Output is the line that decides it.

Two thousand tickets a day at 1.2K in and 400 out is $6.72 a day on this row, and $4.20 of that is the replies.

03 / LONG READ

Long reads and review go to 3.1 Pro

Reasoning over a 200K diff or a 900K contract needs the 6× output ratio and the cache line. 3.1 Pro writes cache at $3.15 and reads it at $0.14.

Under two re-reads the write never pays back, and the same job is cheaper on 3.8 Flash at $5.25 out.

04 / LOOP

Agent loops bill the context every turn

A tool loop re-sends its whole context on each turn, so a 12-turn run reads the same 20K prefix 12 times. That is 240K input tokens for one answer.

On 3.8 Flash the cache write is $0.70 per million against $1.05 for sending it plain, so turn two is already cheaper than turn one.

// Your numbers

Price your own Gemini API month on these rates

Two token counts and one row are enough to price a month. The result uses the rates above, cache reads included, with no top-up bonus applied.

Model row
// Cross-vendor

Gemini API pricing against GPT and Claude

Three vendors on one Gemini API key, six rows. Every figure is the catalog rate before bonus, and the context windows sit within 5% of each other, so the rate is what separates them.

Model Context In / out per 1M vs list
Gemini 3.5 Flash-Lite 1.05M$0.21 / $1.75−30%
Gemini 3.1 Pro 1.05M$1.40 / $8.40−30%
Gemini 4 Carbon 1.05M$2.80 / $14.00−30%
GPT-6.2 Sol 1.05M$1.60 / $8.00−20%
Claude Sonnet 5.5 1M$1.80 / $9.00−10%
Claude Opus 5.5 1M$3.60 / $18.00−10%
USD per million tokens. Gemini rows bill 30% under list here, GPT 20%, Claude 10% — the one place this page is not uniform, and worth knowing before you compare two invoices line by line.

Gemini API pricing for 3.1 Pro beats GPT-6.2 Sol on input, $1.40 against $1.60, and loses on output, $8.40 against $8.00, at the same 1.05M context.

If the job is extraction rather than reasoning, 3.5 Flash-Lite bills output 4.8× lower than 3.1 Pro.

// Image rows

Gemini image models bill per image, not per token

Image lanes sit outside the per-token Gemini API pricing above.

Nano Banana and the Gemini image models price by completed run and by resolution, so the number to plan against is dollars per image rather than per million tokens.

Model Resolution Per image here vs list
Nano Banana 2.1 1K / 2K$0.0235 / $0.0353−30%
Gemini 3.1 Flash Image 1K / 2K$0.0469 / $0.0707−30%
Gemini 3 Pro Image 1K – 2K$0.0804−40%
Per completed run, USD, on the Gemini API image lanes. Resolution sets the tier, so the same prompt at 2K costs 1.5× the 1K run on Nano Banana 2.1. Gemini 3 Pro Image bills one rate across both tiers.

A 500-image batch on Nano Banana 2.1 at 1K is $11.76 here against $16.80 at list.

The same batch on 3 Pro Image is $40.20, which is why model choice on this lane moves the invoice more than the Gemini API pricing discount does.

// Model strings

The model strings, and what changes when you switch

Every Gemini API model takes a provider prefix in front of its name, and nothing else moves. These are the six strings most jobs need, with the rate each one bills on this key.

google/gemini-3.5-flash-lite — the $0.21 text row, 1.05M context, image input accepted$0.21 / $1.75
google/gemini-3.8-flash — the default for chat, extraction and support traffic$1.05 / $5.25
google/gemini-3.1-pro-preview — reasoning and long-context reads, 6× output rate$1.40 / $8.40
google/gemini-4-hydrogen — 1.05M context at the 3.8 Flash input rate$1.05 / $5.25
google/gemini-4-carbon — the top rate in this table, $14.00 per million out$2.80 / $14.00
google/gemini-nano-banana-2.1 — image lane, billed per completed 1K or 2K run$0.0235 / image

Two values change: base_url and the model name. gemini-3.1-pro-preview becomes google/gemini-3.1-pro-preview, the Gemini API takes the same request body, and the SDK is the one you already installed.

Keep the old string in a comment if you want a rollback path. Nothing else on this page moves a production call — the Gemini API pricing above is the same rate whichever SDK sends it.

// Setup

How to cut your Gemini API bill in 3 steps

You need an account and one key, and the Gemini API pricing above is what that key bills. Only two values change, base_url and the model string, and the smallest first top-up is $15.

  1. 01

    Create the key and add $15

    The dashboard issues a key bound to your account. $15 is the smallest first top-up, it is a one-time payment, and nothing renews behind you.

    You end this step holding a key that already reaches eight text models and three image models.

  2. 02

    Point base_url at gptproto.com

    One line in your client config. The provider prefix goes in the model string and the rest of the payload stays untouched.

    # OpenAI-compatible client
    base_url = "https://gptproto.com/v1"
    model    = "google/gemini-3.1-pro-preview"
  3. 03

    Send the request you already send

    Streaming, tool calls and JSON mode behave as they did before, so existing prompts and evals run unchanged.

    Check one invoice line against the Gemini API pricing above before moving production traffic, so the meter and this page agree to the cent.

// Credits

Simple pricing: pay per result, no subscription

Credit is bought once and spent across every model on the account, at the Gemini API pricing listed above. No subscription, no auto-renew, and the balance does not expire.

These three top-ups cost $1.000, $0.971, $0.962 per dollar of credit, respectively.

No bonus

$15

Receive $15.00

About 29M 3.5 Flash-Lite tokens at an 80/20 split. Enough for a smoke test and a week of light traffic.

Cost per $1 of credit$1.000
Get my Gemini key
+3% bonus

$50

Receive $51.50

About 99M tokens at the same split. For a small product in production, or a month of agent traffic at 3M tokens a day.

Cost per $1 of credit$0.971
Get my Gemini key
+4% bonus

$100

Receive $104.00

About 201M tokens. For batch jobs and whole-repo reads, where the monthly bill runs into three figures.

Cost per $1 of credit$0.962
Get my Gemini key

Higher top-up bonuses: +5% from $500 · +6% from $1,000 · +7% from $5,000.

The bonus stacks on a rate already 30% under Google’s list, so $100 buys $104.00 of credit while Gemini API tokens still bill at the table above.

// Reviews

What teams running Gemini API workloads say

4 public posts from people routing Gemini API traffic through this key, quoted as written. The line under each is the setup the post describes leaving.

“I used to switch between different AI tools just to compare results. Now I just use GPTProto. GPT-5, Claude, Gemini, Kimi, and more — all in one workspace.”

Alice The Ai Expert X (Twitter) · @AliceInfoAi · #Models Replaced: a separate account per model Early user · public post

“What worked for me was pointing the cloud connections at GPTProto so the frontend only sees one endpoint and I just change the model name to swap. I am not rebuilding a connection from scratch every time.”

Many-Operation2625 Reddit · r/LLMDevs · #Integration Replaced: one provider integration per model Early user · public post

“I route the calls through GPTProto so a fallback is a config switch instead of a weekend rewrite when a model disappears. It turns ‘my default model just got export controlled’ from an incident into a config change.”

obxsurfer06 Reddit · r/singularity · #Resilience Replaced: a hardcoded single-provider client Early user · public post

“The call layer underneath the router is GPTProto, so swapping a model does not require provisioning a new provider integration. Changing models becomes cheap enough that the question stops being ‘should we change’.”

Any-Farm-1033 Reddit · r/EngineeringManagers · #Teams Replaced: a new integration for every model swap Early user · public post
// Boundaries

Three cases where this key is the wrong buy

A Gemini API pricing page that only points one way is not much of a pricing page. These 3 workloads are better served elsewhere, and it costs less to say so here than to refund you later.

Schedulable batch

Traffic that can wait in a queue

Google’s batch tier takes 50% off list, deeper than the 30% this Gemini API pricing gives you. A nightly re-index across 200 files can wait for that queue; a chat endpoint cannot.

Evaluation

You need free tokens to try a model

No trial quota exists on the Gemini API, and the smallest first top-up is $15. The playground on each model page runs the same endpoint, which is the closest this gets to a look before you pay.

Procurement

You need a signed SLA or a purchase order

No uptime percentage is published, and a paper SLA is not part of this. Calls spread across upstream channels and a failed request returns the upstream reason instead of a bare 500.

// FAQ

Frequently Asked Questions

What people ask before a first top-up, answered with the five numbers that decide it.

01

How much does the Gemini API cost per million tokens?

Between $0.175 and $2.80 for input and $1.05 to $14.00 for output, depending on the row.

The eight-row table above carries the exact Gemini API pricing for each model, all of it 30% under Google’s list.

The smallest first top-up is $15 charged once, and that $15 is credit rather than a fee — it is spent on tokens at those rates.

02

Does Gemini API pricing include thinking tokens?

Yes. Google meters reasoning tokens on the output line, so thinking bills at the output rate of whichever model you call.

On 3.1 Pro that is $8.40 per million, which is why a two-sentence answer can bill like a long one when the reasoning is long.

03

Will my existing Gemini or OpenAI code run unchanged?

Yes — the Gemini API accepts the OpenAI request shape.

Set base_url to https://gptproto.com/v1 and put the provider prefix in the model name, so gemini-3.1-pro-preview becomes google/gemini-3.1-pro-preview.

Tool calls, JSON mode and streaming behave as before, so existing prompts, evals and curl calls run unchanged.

04

What happens to the prompts I send?

They are forwarded to Google’s endpoint to produce the answer, so they are handled under Google’s data terms as well as ours.

We do not publish a zero-retention guarantee, and we will not claim one we cannot document. If your workload needs that commitment in writing, ask before you top up.

05

Do credits expire, and can I get a refund?

Credits do not expire, and nothing auto-renews after a top-up.

Top-ups are generally non-refundable, and credit spent on completed requests cannot be returned.

Duplicate payments are reviewed one by one: send the account email and the transaction details and we will sort it out.

// Start

Gemini API pricing without the four-line bill

Gemini API pricing for eight text models at 30% under Google’s list, one table, one key. Add $15, keep the key, and the model string is the only line you change.

Get my Gemini key From $15 · one-time · credits do not expire