frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Gemini AI Studio "Context Tax": How a 10-word prompt cost me £121

20•daitandojo•1d ago
I’ve been utilizing Google’s Gemini 1.5 Pro via the AI Studio front-end to develop a new platform. The 1M+ context window is, technically speaking, a game-changer for "stitching" together a 55,000-line codebase. However, I recently discovered a predatory billing architecture that I’m calling the "Context Tax."

If you use the AI Studio UI, you might be walking into a massive bill without a single warning.

Here is how it happened, and the UK/EU privacy "pro-tip" I found in the fine print.

In AI Studio, you start on the Free Tier. You upload your codebase (say, 700k tokens) and work for free until you hit the daily quota. At that point, the UI suggests adding an API key to "continue the conversation."

The Trap: Most users (myself included) assume that after adding the key, they will be billed for incremental usage (the 10-100 tokens they just typed).

The Reality: The AI Studio UI does not use Context Caching by default. Instead, it re-submits the entire 700k token history for every single "turn." Crucially, even though that history was built up for "free," you are now "back-taxed" for it at the Paid Tier rate on every subsequent message.

Message 1: (700k history + 10 new tokens) = Billed for 700,010 tokens. Message 2: (700k history + 20 new tokens) = Billed for 700,020 tokens.

Within 10-15 "turns," I was billed for 170,000,000 tokens. The total? £121.29.

The AI Studio UI is, frankly, deceptive about this, and subsequent communication with Google was not helpful. Instead, they updated the terms.

The Token Counter: The counter at the top of the page remains incremental (e.g., it goes from 700,000 to 700,010). It never warns: "Your next message will cost $5.00."

Batch Billing Lag: Google batches these charges and reports them hours later. You don't see the "bleeding" in real-time. By the time you get the notification, you’re already £100 in the hole. The Evidence Gap: In my support case, Google’s own itemized "evidence" showed only £0.25 of SKU-level usage, but a total subtotal of £121.29. They couldn't explain where 99% of the bill came from.

A Bonus Gimmick: The UK/EU Privacy Loophole While fighting this bill, I dug into the Gemini API Additional Terms of Service (Updated Dec 18, 2025, just after I submitted my dispute). I found a fascinating "Pro-tip" for those of us in the UK or EEA.

Under the new terms, Google has decoupled "Paid Service" status from spending money. The Clause instead reads: If you have an active Cloud Billing account linked to your project, your AI Studio usage is legally classified as a "Paid Service," even when you are using the free quota. The Benefit: "Paid Services" have a strict non-training policy. Google does not use your prompts to improve its models if you are in the Paid Tier.

The Loophole: If you are in the UK/EEA and link a billing account to your project, you get Enterprise-level privacy (No training) on your free-tier usage by default.

My Recommendation:

Link your account for privacy, but NEVER use the API key in the UI to extend an existing chat which reaches the free quota limit. If you hit the free quota limit, stop. Do not "upgrade" the existing session. If you must continue, start a fresh session to avoid the "Context Tax" on your history.

Use Context Caching via API: If you actually need to work on a 1M token codebase commercially, avoid the AI Studio UI entirely. Use the API with explicit context caching to avoid paying for the same 700k tokens 100 times over.

I am currently disputing the bill based on the lack of "Informed Consent" for the transaction and the retroactive application of the Dec 18 terms.

TL;DR: Google AI Studio's UI is a "Financial Biohazard" for long-context developers. It back-taxes your free history the moment you plug in a key, with zero real-time cost transparency.

Comments

sirnicolaz•22h ago
This should get +1000 upvotes, a gold mine of useful information . Thanks!
stuaxo•21h ago
This useful but has a big "written by claude" feel to it.
nateb2022•19h ago
Yup. Phrases like "The Trap", "The Reality", "The Token Counter", "Batch Billing Lag", "The Loophole" all indicate markdown style thought processes that divide up the meat and potatoes of the idea into H1/H2 sections; also quoting words that people wouldn't normally quote ("stitching" together a codebase) is another telltale.
segmondy•17h ago
what exactly does this mean? claude was sitting next to them watching them then wrote up the report? they put in lots of personal details and experience in the story, it's obviously not written by claude and it's very rude to accuse someone without evidence.
fckgw•17h ago
If you can't see that this post was obviously "enhanced" with AI then I don't know what to tell you. They had a small anecdote about their experience and then asked AI to flesh it out into a multi paragraph post.

I mean, the cute section titles are a dead giveaway.

Tell HN: Happy New Year

363•schappim•22h ago•187 comments

Semantica – Open-source semantic layer and GraphRAG framework

5•kaifahmad1•4h ago•0 comments

Ask HN: What is the best microVMs for AI agents?

5•zfoong•8h ago•2 comments

Ask HN: What skills do you want to develop or improve in 2026?

271•meridion•6d ago•413 comments

Ask HN: What did you read in 2025?

332•kwar13•5d ago•442 comments

Ask HN: Loneliness at 19, how to cope?

59•yresting•3d ago•104 comments

Ask HN: Any example of successful vibe-coded product?

76•sirnicolaz•1d ago•116 comments

Tell HN: Happy New Year!

4•realberkeaslan•16h ago•2 comments

Tell HN: Merry Christmas

1957•basilikum•1w ago•428 comments

The Gemini AI Studio "Context Tax": How a 10-word prompt cost me £121

20•daitandojo•1d ago•5 comments

Ask HN: How long before the first civilian cargo flights are AI piloted?

2•givemeethekeys•17h ago•8 comments

Happy New Year HN!

11•thunderbong•16h ago•3 comments

Ask HN: Does reading HN make you happy?

43•yakattak•1d ago•32 comments

Ask HN: How did you make yourself more marketable?

11•ronbenton•1d ago•9 comments

Ask HN: How to do a Personal Cybersecurity audit

24•preciousoo•2d ago•12 comments

A curated directory of open-source AI projects

12•doanbactam•2d ago•2 comments

TP-Link only works with a permanent internet connection

8•roscas•2d ago•7 comments

Ask HN: How to go back to listening to MP3s?

8•muratsu•4d ago•20 comments

Ask HN: What are you building as a side-project or side-hustle in 2026?

21•bayeslaw•3d ago•37 comments

Ask HN: What do you use to manage your coding projects?

5•SunshineTheCat•1d ago•10 comments

Tell HN: Merry Christmas

92•franze•1w ago•57 comments

Ask HN: How do you manage kids' accounts?

12•xfax•2d ago•6 comments

Ask HN: How are you sandboxing coding agents?

44•m-hodges•5d ago•31 comments

Tell HN: I am afraid AI will take my job at some point

24•funnyfoobar•5d ago•39 comments

Ask HN: Anyone still using RSS feeds?

6•lalithaar•21h ago•11 comments

Ask HN: How do you get visibility if you're suuuuper bad at marketing?

12•ClipNoteBook•3d ago•20 comments

Users decide which online platforms to trust in 2025

5•taka-dev•2d ago•3 comments

Ask HN: How many HN'ers Celebrate Christmas vs. ?

19•gist•1w ago•36 comments

Tell HN: No Scrollbar on Google Gemini UI

4•albert_e•2d ago•0 comments

Ask HN: What was the hardest bug you tracked down in 2025?

11•varshith17•5d ago•7 comments