Top
Best
New

Posted by speckx 12/10/2025

Getting a Gemini API key is an exercise in frustration(ankursethi.com)
845 points | 349 commentspage 3
vinhnx 12/11/2025|
A few months ago, I had a frustrating experience with the Gemini API while building an AI chat app as a side project. I registered through AI Studio and set up billing via Google Cloud Console, which offered a free trial with $200 in credits or 3 months of API usage. After deploying the Gemini API for my project, I navigated through the numerous settings in Google Cloud Console but forgot to set a billing limit. That month, I was charged over $250 on my credit card, well beyond the free trial allowance. It was entirely my fault for not setting a limit and not reviewing the free trial terms more carefully.

That said, while setting up the Gemini API through AI Studio is remarkably straightforward for small side projects, transitioning to production with proper billing requires navigating the labyrinth that is Google Cloud Console. The contrast between AI Studio's simplicity and the complexity of production billing setup is jarring, it's easy to miss critical settings when you're trying to figure out where everything is.

edoceo 12/11/2025||
It seems that billing here (and elsewhere) for cloud is intentionally opaque. Nearly every client (at scale) is having (one of) a service provider to help manage/audit these usage.

Variable costs are great, scale with the business; but visibility is a big (intentional?) challenge.

logankilpatrick 12/13/2025||
we are bringing billing into AI Studio and adding hard caps by default so you don't overspend
vinhnx 12/14/2025||
Thank you, Logan! It's a very welcome change! Glad my comment reached you.
rtaylorgarlock 12/10/2025||
Interesting perspective. I've mainly felt like i have 'American privilege' regarding the ease with which i open accounts of basically any sort on a whim, usually with little friction.
mrj 12/10/2025|
Oh no, this is just a Google thing. I've done the same verification bs for four different companies now, multiple times for each of them. I just keep an image of my license on my computer so I can upload it on demand. Google's payment verification is byzantine.

It'll trigger when you sign up.

It'll trigger if you create an Android developer account.

It'll trigger if you get a new phone.

It'll trigger if your card expires.

It'll trigger the month before your card expires. Why? Fuck you, that's why.

mrj 12/20/2025||
And it just happened to me again. I got a new phone and my personal payment account went into some verification status and I can't use my wallet. Even though Google itself moved the card. And I was able to add the card and use the wallet with my gmail account. Wtf.
ankit219 12/11/2025||
Think its a combination of factors.

- Google cloud is setup for big organizations. Not for individuals. All cloud providers are pretty much confusing in a similar way. - India has specific rules re cybersecurity and financial regulations that Google has to comply. (mandatory id verification and kyc compliance). Others have asked for an id check too.

From what confused me, if OP wanted to use a model, the easier way would have been to pay cursor/windsurf etc. and select that model. Usually that is how people try out a new model. Trying out a specific way means going through the norms every country imposes, and bloat in case of legacy products.

AWS and Azure have come up with their own models. If their future versions hit close to sota and people want to use it, many would end up in a similar loop (and woudl be easier to just use it from the aggregators).

rodolphoarruda 12/11/2025||
Using metaphors is dangerous, but I would dare to say that big tech AI is like cement suppliers. It's too low level of a service. In civil engineering you have the option to contract value added suppliers that will give you prefabricated pieces in concrete or steel you could be using to build your construction.

I'm seeing a lot of AI firms building value added services on top of big tech "foundational" AI offerings. Value addition can start very early at a clear plans/billing structure, going through rate limiting, documentation and extra features that will bring stability or consistency to our AI enhanced products.

Going the other way around (I tried) and building things on top of big tech AI is challenging starting at the fundamentals as the OP described well.

wongarsu 12/11/2025|
Openrouter is roughly at that level of value-add. With plenty of competition now, since being able to charge 5% on your AI spend just for having sane billing, spending controls (actually enforced per-api-token budget limits!) and easy sign-up is an insanely profitable business proposition

On the other hand I think it's fair to criticize the model hosts for not offering the same

numlocked 12/11/2025||
(I work at OpenRouter) Certainly for individual developers / hobby projects that's the primary value prop; super easy access to all of the models.

But there's a lot more functionality that becomes relevant when building in production. We do automatic fallbacks, route between providers based on data policies, syndicate your data to agent observability tools / your logging platform of choice, user-level and api-key-level budget management and model allow/block lists, programmatic API key management, etc, etc. More good stuff shipping all the time!

jpollock 12/10/2025||
There is a lot of fraud with UPI, specifically social engineering to obtain UPI OTP codes.

Since the card and the account haven't been previously associated, that's probably a risk model saying a human needs to verify the account before activation.

Indian cards also (I believe) have a mandatory 24 notice period prior to money being pulled - giving fraudsters a 24 hour starting gun to spend like crazy. That makes merchants that provide variable cost service on credit products twitchy.

https://support.stripe.com/questions/background-on-indian-go...

tigranbs 12/10/2025||
Yeah, then try adding more quotas to scale your usage; you will feel the pain! But, to be fair, it is way easier than the AWS Bedrock or Microsoft Azure!
semi-extrinsic 12/10/2025||
I recently had the distinct displeasure of being the first to set up a service in Azure on a new tenant at Microsoft.

Of course I first had to faff about adding the company credit card, which took five tries and two days. Then I found I had to create the appropriate resource group, before I could set up a service. Fair enough, it might make sense later to have costs divided up like that. After I got the resource group, I then thought to start simple and spin up a single VM.

This gave me an error message saying that my request exceeded the quota. Which quota? The built-in copilot in Azure chewed on the raw error in its JSONness, and helpfully told me I could find the Azure quota page by searching for it in the Azure portal.

Once I entered the quota page, I was greeted with a message saying that I was now in the new quota experience in public preview mode. After many clicks I found the appropriate line for the desired VM SKU in the desired region, where it said I had used 0 of the quota of 30. So why didn't it work? I tried to request an increased quota, just in case. That process spent five minutes on "please wait", then failed with a generic error message.

At that point I started googling around, and eventually in some forum thread I found the missing piece: my resource group did not yet have a subscription. After more faffing about, I got a subscription associated with my resource group. What is a subscription, you ask, and what is the relation between a tenant, a subscription and a resource group? I haven't the foggiest, but I've clicked enough buttons to make the errors go away. Por ahora.

cj 12/10/2025|||
Isn't OpenAI equally annoying?

I remember multiple waiting periods, and multiple requirements to cross spend thresholds to increase in tiers. I remember at one point spamming the OpenAI API with garbage just to consume credits in order to get to the next tier to increase rate limits.

More recently (couple months ago) I tried using a 3rd party client for ChatGPT which needed a OpenAI API key. I gave up after 20 mins.

ipaddr 12/11/2025||
The OpenAI api key generation was simple and using it no problem. No different from stripe.

The limits are annoying.

arielcostas 12/10/2025||
I'd say Bedrock is the easiest since you just log into your AWS account, get an AWS credential in the same way you would for any other service (if you're on EC2 it's even easier) and call the endpoints from the SDK. Azure though...
johny115 12/20/2025||
you should try figuring out all Google products where you can generate images and videos, even attempt to learn how they work, how does billing work, where it uses credits from or API costs charged to where, what are the differences between all the weirdly named products (AI Studio, Vertex, Whisk, ImageFX, Veo Studio, Flow, etc.) with seemingly overlaping purposes

the product description of Whisk at https://labs.google/fx/ for example is "Whisk - Create some magic" ... wow, so obvious what it does

lot of fun ... especially considering this would be meant usually for non-engineer user

Google is bonkers for this ... takes an engineering degree to generate 4K Nano Banana Image outside of Gemini or even to begin understanding why VEO videos look different from each of their different products and why

the 3rd party platforms that use their API are 10x easier, put in credit card, choose model and settings, prompt and hit enter

therealmarv 12/11/2025||
Try to get a Google Vertex API key working locally. It's even more complicated. Took me literally one full day to get the whole toolchain working (had to do some pauses out of frustration).

I only went through it because I got once 300 USD for free to spend on my Google Workspace account I/my business owns.

OpenAI API usage is so much easier.

Btw Google: Fix Google Console API usage dashboard... why is there a delay of 2+ days? Why cannot I see (and block!) the usage of the current day?

axi0m 12/10/2025||
Gosh, this story resonates so much with me... I had the exact same experience few days ago, desperately trying to get a small agent prototype working for a quick demo. I spent an good hour dealing with that pile of nonsense. Online payments and accounts management have been mastered for 20 years now, why do we still have to endure such things? It just kills me. The same goes with Azure (and all MS online-related services), if not even worse.
wg0 12/11/2025|
I love Google's product managers. I love product managers in general but Google's product managers are at a whole another level. And it shows.
More comments...