Top
Best
New

Posted by speckx 1 day ago

Getting a Gemini API key is an exercise in frustration(ankursethi.com)
811 points | 318 commentspage 3
vinhnx 1 day ago|
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 1 day ago|
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.

happyopossum 1 day ago||
The underlying issue here is that 3.0 is still in preview. Once it’s a GA model, you can just use your $20 consumer Ai pro sub and skip all the GCP stuff…
ankit219 1 day ago||
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).

rtaylorgarlock 1 day ago||
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 1 day ago|
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.

therealmarv 22 hours ago||
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?

Arubis 19 hours ago||
Similarly to DeepSeek, this—more than dealing with different APIs and routing—is the problem OpenRouter actually solves for me.
jpollock 1 day ago||
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...

happyopossum 17 hours ago||
There are plenty of ways to get access to gemini - a single google search took me directly to the simplest way (subscribe to Google AI Ultra) in one click: https://one.google.com/intl/en/about/google-ai-plans/

The author apparently found himself on a much more difficult path, one designed for enterprises who are already on google cloud, already have billing set up, etc. The fact that an individuals experience with an enterprise platform isn't great is predictable... That's why there are individual/consumer plans for this stuff.

Alifatisk 17 hours ago||
The url you sent, when signing up, just sends me to my homepage where I get a overview of my subscription at one.google.com, I can't see where to access a api key
85392_school 17 hours ago||
Does it let you use Gemini 3 in Gemini CLI?
tigranbs 1 day ago||
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 1 day ago||
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 1 day ago|||
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 1 day ago||
The OpenAI api key generation was simple and using it no problem. No different from stripe.

The limits are annoying.

arielcostas 1 day ago||
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...
wg0 1 day ago|
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...