by obmelvin · 11mo ago · 0 comments
I google `gemini API key` and the first result* is this docs page: https://ai.google.dev/gemini-api/docs/api-key
That docs page has a link in the first primary section on the page. Sure, it could be a huge CTA, but this is a docs page, so it's kinda nice that it's not gone through a marketing make over.
* besides sponsored result for AI Studio
(Maybe I misunderstood and all the complaints are about billing. I don't remember having issues when I added my card to GCP in the past, but maybe I did)
If you bring it up to Logan he'll just brush it off — I honestly don't know if they test these UX flows with their own personal accounts, or if something is buggy with my account.
But somehow personally even though I'm a paying Google One subscriber and have a GCP billing account with a credit card, I get confusing errors when trying to use the Gemini API
I feel his team is really hitting a wall now in terms of improvements, because it involves Google teams/products outside of their control, or require deep collaboration.
But also the (theoretical) production platform for Gemini is Vertex AI, not AI Studio.
And until pretty recently using that took figuring out service accounts, and none of Google's docs would demonstrate production usage.
Instead they'd use the gcloud CLI to authenticate, and you'd have to figure out how each SDK consumed a credentials file.
-
Now there's "express mode" for Vertex which uses an API Key, so things are better, but the complaints were well earned.
At one point there were even features (like using a model you finetuned) that didn't work without gcloud depending on if you used Vertex or AI Studio: https://discuss.ai.google.dev/t/how-can-i-use-fine-tuned-mod...
I did edit my message to mention I had GCP billing set up already. I'm guessing that's one of the differences between those having trouble and those not.
I've been using the AI Studio with my personal Workspace account. I can generate an API key. That worked for a while, but now Gemini CLI won't accept it. Why? No clue. It just says that I'm "not allowed" to use Gemini Pro 3 with the CLI tool. No reason given, no recourse, just a hand in your face flatly rejecting access to something I am paying for and can use elsewhere.
Simultaneously, I'm trying to convince my company to pay for a corporate account of some sort so that I can use API keys with custom tools and run up a bill of potentially thousands of dollars that we can charge back to the customer.
My manager tried to follow the instructions and... followed the wrong ones. They all look the same. They all talk about "Gemini" and "Enterprise". He ended up signing up for Google's equivalent of Copilot for business use, not something that provides API keys to developers. Bzzt... start over from the beginning!
I did eventually find the instructions by (ironically) asking Gemini Pro, which provided the convenient 27 step process for signing up to three different services in a chain before you can do anything. Oh, and if any of them trigger any kind of heuristic, again, you get a hand in face telling you firmly and not-so-politely to take a hike.
PS: Azure's whatever-it-is-called-today is just as bad if not worse. We have a corporate account and can't access GPT 5 because... I dunno. We just can't. Not worthy enough for access to Sam Altman's baby, apparently.
Passing along this feedback to the CLI team, no clue why this would be the case.
Excuse me? If you mean AI Studio, are you talking about the product where you can’t even switch which logged in account you’re using without agreeing to its terms under whatever random account it selected, where the ability to turn off training on your data does not obviously exist, and where it’s extremely unclear how an organization is supposed to pay for it?
Hint: you can often avoid some of this mess by adding the authuser=user@domain to the URL.
Def use multiple chrome profiles if you aren't. You can color code them to make visual identification a breeze
Python is the primary implementation, Java is there, Go is relatively new and aiming for parity. They could have contributed the Typescript implementation and built on common, solid foundation, but alas, the hydra's heads are not communicating well
These other "frameworks" are (1) built by people who need to sell something, so they are often tied to their current thinking and paid features (2) sit at the wrong level. ADK gives me building blocks for generalized agents, whereas most of these frameworks are tied to coding and some peculiarities you see there (like forcing you to deal with studio, no thanks). They also have too much abstraction and I want to be able to control the lower level knobs and levers
ADK is the closest to what I've been looking for, an analog to kubernetes in the agentic space. Deal with the bs, give me great abstractions and building blocks to set me free. So many of the other frameworks want to box you into how they do things, today, given current understanding. ADK is minimal and easy to adjust as we learn things
Like the OP others I didn't use the API for gemini and it was not obvious how to do that -- that said it's not cost effective to develop without a Sub vs on API pay-as-you-go, so i do no know why you would? Sure you need API for any applications with built-in LLM features, but not for developing in the LLM assisted CLI tools.
I think the issue with cli tools for many is you need to be competent with cli like a an actual nix user not Mac first user etc. Personally I have over 30 years of daily shell use and a sysadmin and developer. I started with korn and csh and then every one you can think of since.
For me any sort of a GUI slows me down so much it's not feasible. To say nothing of the physical aliments associated with excessive mousing.
Having put approaching thousands of hours working with LLM coding tools so far, for me claude-code is the best, gemini is very close and might have a better interface, and codex is unusable and fights me the whole time.
My spend is lower, so I conclude otherwise
> I think the issue with cli tools for many is...
Came from that world, vim, nvim, my dev box is remote, homelab
The issue is not that it is a CLI, it's that you are trying to develop software through the limited portal of a CLI. How do you look at multiple files at the same time? How do you scroll through that file
1. You cannot through a tool like gemini-cli
2. You are using another tool to look at files / diffs
3. You aren't looking at the code and vibe coding your way to future regret
> or me any sort of a GUI slows me down so much it's not feasible.
vim is a "gui" (tui), vs code has keyboard shortcuts, associating GUI with mouse work
> Having put approaching thousands of hours working with LLM coding tools so far, for me claude-code is the best, gemini is very close and might have a better interface, and codex is unusable and fights me the whole time.
Anecdotal "vibe" opinions are not useful. We need to do some real evals because people are telling stories like they do about their stock wins, i.e. they don't tell you about the losses.
Thousands of hours sounds like your into the vibe coding / churning / outsourcing paradigm. There are better ways to leverage these tools. Also, if you have 1000+ hours of LLM time, how have you not gone below the prepackaged experience Big AI is selling you?
Paying is hard. And it is confusing how to set it up: you have to create a Vertex billing account and go through a cumbersome process to then connect your AIStudio to it and bring over a "project" which then disconnects all the time and which you have to re-select to use Nano Banana Pro or Gemini 3. It's a very bad process.
It's easy to miss this because they are very generous with the free tier, but Gemini 3 is not free.
I often see coworkers offload their work of critical thinking to an AI to give them answers instead doing the grunt work nessecary to find their answers on their own.
> [They seemingly] can't think on their own without an AI [moderating]
They _literally_ can think on their own, and they _literally_ did think up a handful of prompts.
A more constructive way to make what I assume to be your point would be highlighting why this shift is meaningful and leaving the appeal to ego for yourself.
I've edited my post to be more charitable
Low energy afternoons you might be able to come up with a prompt but not the actual solution.
There are people offloading all thoughts into prompts instead of doing the research themselves and some have reached a point where they lost the ability to do something because of over AI use.