logoalt Hacker News

krat0sprakharyesterday at 7:27 PM21 repliesview on HN

Can you help me understand how it is hard to get an API key from Google? You just head on over to http://aistudio.google.com/api-keys and create a key... not any different from platform.openai.com?

Disclaimer: I work in Google so it might be that this link is not publicly well known


Replies

jjcmyesterday at 7:39 PM

Disclaimer that I haven't tried this since January, so things may have changed in the last 7mo, but this was my experience at that time: https://x.com/pwnies/status/2010523020629274723

At a high level though, as a rule of thumb Google assumes that they're serving companies at Google scale first, and at a human scale second. For other companies it's the opposite. Generally what that means is the first experience you get with a Google product will route you through 8 different dashboards to set up ACLs before you've hired your 2nd employee.

show 6 replies
surfmiketoday at 2:08 AM

Personally I went to https://console.cloud.google.com since I already had some GCP projects. Then I searched for Gemini API Key. It brought me to https://console.cloud.google.com/agent-platform/studio/setti.... Then, there was a banner saying "Enable APIs to access full platform capabilities." Then, I did that, which took quite a while (minutes). Finally, I was able to see the way to create an API key.

The fact that there's two ways to get keys is also very confusing.

show 2 replies
1bmyesterday at 7:42 PM

You need to create a Google Cloud project to create an api key and when you try to create one you very often get error messages like:

“Failed to create project, The request is suspicious. Please try again” or “ You do not have permission to create a key in this project”. You can then navigate multiple screens in GCP to make it work but it’s a hassle compared to any other provider (OAI/Ant/OpenRouter or any of the Chinese labs).

show 1 reply
pantsforbirdstoday at 5:45 PM

I have a Google account that I had tied to a domain I originally purchased from google (when they had the .dev offerings), and now that it's been purchased by square space my ability to use AI through that account is in a bizarre state. Even my free gmail account has more AI offerings, and I'm not allowed to pay for improved AI offerings on my custom domain & google workspace account.

I know this is probably a pretty small edge case, but it is a bit frustrating. Any other provider lets you sign up with an email and give them a payment processor/card, but because google wants me to only use their unified workspace for signing up, I'm completely locked out now.

nxdmumtoday at 5:07 PM

Simple question - can i use Gemini 3.7 flash with a subscription in my own harness and not in agy client ? You're from Google so the question.

By the way - I love Gemini's personality . it's phenomenal to work with

The reason i want my own harness - is the custom tools that i provide vs the low tier tools that come with the custom harnesses.

You'll would really benefit , if we could use Gemini in our own harness and not be forced to use it via agy . i've tried using gemini to circumvent - but not been successful.

If you see this - please reply here

fiejtoday at 1:17 AM

I tried to use Gemini for one of my projects a month ago. Immediately after signing up and paying for credits, I got an email saying, “Action required: your billing account {redacted} is past due or has invalid payment information.” I have no idea why it says this. My credit card on file works. My balance updated with a new amount from that card. 11 days later, my account was terminated. I still don’t understand what went wrong or how to fix it.

I do pay for OpenAI, Anthropic, and ElevenLabs keys.

sireatyesterday at 8:32 PM

Maybe things have changed but it was a big mess trying to getting an API key from Google as an individual a few years ago. Way too much conflicting documentation.

Eventually I gave up and run a few hundred million tokens (edit a few billion) through openrouter.ai using Gemini Flash 1.5 to Flash 2.5

Every since price increases on Flash 3.0 I've stopped using Gemini, too expensive for basic classification, sentiment detection, ocr etc.

As other posters said Google assumes you are some bigcorp trying to use their products. The Vertex versus AI studio confusion did not help.

uname0891yesterday at 9:03 PM

We have probably 10+ years old account with Google cloud etc. We recently had a production deployment, I went over to AI studio to get new keys and it kept failing saying "Failed to generate API key, The request is suspicious. Please try again" - It was through my standard browser, same geo-ip. And it just worked after 2 days.

the_bigfatpandatoday at 10:58 AM

As someone who has been running Gemini models in production for a year, recently (last 2 months), I have been actively moving away from it.

The primary reason for me has been that Google autonomously decides to downgrade usage tiers and then upgrade them again - and does this incorrectly.

Over the last week itself, in the span of two days, our account for first downgraded and then upgraded. This is despite matching the criteria to remain at the tier we operate at throughout.

Google Support (when you finally get to a human) has accepted that these are potentially bugs, but the first time it happened, we were rate limited so severely for ~4 hours that I find it really difficult to continue trusting Google.

strobeyesterday at 7:49 PM

it worked for me okay when I needed it for myself in my personal account. But when I tried setup this for a company I spent almost a day solving lot of small puzzles in GCE like how to tell CEO that he have to connect billing account created for other purposes (and he not even remember at time that it exist) to new project and all other things that others talking about.

Saline9515yesterday at 7:46 PM

On top of being the hardest website to navigate, Google console a) doesn't have real time billing (!) b) doesn't allow you to set a budget limit.

Sorry but it's not worth waking up with a 100k$ bill, fix your platform first.

show 3 replies
bobkbtoday at 2:17 AM

Same experience. It took minutes to find the API key from the console.

Now following up with Google support team without luck to find the logs. Prompts send to the model and the responses including the thinking was available in the ai studio. But it’s unclear where to find the same in console.

To make matters worse there is vertex api and rebranded to Gemini something and making it very confusing.

dogomaticyesterday at 7:39 PM

GCP/vertex is a maze

japborsttoday at 6:15 AM

The problem is that this doesn’t work for enterprise. The rate limits of that is super low. Then you need to migrate to Vertex and that is just a pain. Who ever thought of using JSON instead of an api key…

jgoodhcgyesterday at 7:58 PM

That is easy but I’ve also found myself in account setup dashboards that were obviously geared toward enterprise trying to set up access to tinker with something AI related. It might have been TTS but it’s been a little while and I can’t quite remember.

desmosxxxtoday at 2:32 AM

I just asked Gemini how to do it and that's exactly what it sent me. Was up and running in a few minutes.

n8m8yesterday at 7:40 PM

I haven’t tried in about a year, but I could never do any meaningful work outside 1P Google apps (antigravity) due to such fast throttling.

ur-whaleyesterday at 8:16 PM

> Can you help me understand how it is hard to get an API key from Google?

Using Google products in general is an effing nightmare as soon as you have to give them money.

The one thing you want in a business is to remove friction when people want to give you money, a concept Google has never been able to understand.

show 2 replies
throwaway894345today at 2:37 AM

I even know the link existed but forgot what it was specifically and couldn’t remember what AI* property it was offered under and it took me a long time to figure it out.

philtartoday at 4:06 AM

[dead]