I was recently (vibe)-coding some games with my kid, and we wanted some basic text-to-speech functionality. We tested Google's Gemini models in-browser, and they worked great, so we figured we'd add them to the app. Some fun learnings: 1. You can access those models via three APIs: the Gemini API (which it turns out is only for prototyping and returned errors 30% of the time), the Vertex API (much more stable but lac…
Trying to implement their gRPC api from their specs and protobufs for Live is an exercise in immense frustration and futility. I wanted to call it from Elixir, even with our strong AI I wasted days then gave up.
Getting a Gemini API key is an exercise in frustration
341–350 of 361 posts
Re: Getting a Gemini API key is an exercise in frustration
#342I was recently (vibe)-coding some games with my kid, and we wanted some basic text-to-speech functionality. We tested Google's Gemini models in-browser, and they worked great, so we figured we'd add them to the app. Some fun learnings: 1. You can access those models via three APIs: the Gemini API (which it turns out is only for prototyping and returned errors 30% of the time), the Vertex API (much more stable but lac…
Oh man let me add onto that! 4. If you read about a new Gemini model, you might want to use it - but are you using @google/genai, @google/generative-ai (wow finally deprecated) or @google-ai/generativelanguage? Silly mistake, but when nano banana dropped it was highly confusing image gen was available only through one of these. 5. Gemini supports video! But that video first has to be uploaded to "Google GenAI Drive"…
Yeah, I hear you, open to suggestions to make this more clear, but it is google/genai going forward. Switching packages sucks.
> Gemini supports video! But that video first has to be uploaded to "Google GenAI Drive" which will then splices it into 1 FPS images and feeds it to the LLM. No option to improve the FPS, so if you want anything properly done, you'll have to splice it yourself and upload it to generativelanguage.googleapis.com which is only accessible using their GenAI SDK. Don't ask which one, I'm still not sure.
We have some work ongoing (should launch in the next 3-4 weeks) which will let you reference files (video included) from links directly so you don't need to upload to the File API. We do also support custom FPS: https://ai.google.dev/gemini-api/docs/video-understanding#cu...
> 6. Nice, it works. Let's try using live video. Open the docs, you get it mentioned a bunch of times but 0 documentation on how to actually do it. Only suggestions for using 3rd party services. When you actually find it in the docs, it says "To see an example of how to use the Live API in a streaming audio and video format, run the "Live API - Get Started" file in the cookbooks repository". Oh well, time to read badly written python.
Just pinged the team, we will get a live video example added here: https://ai.google.dev/gemini-api/docs/live?example=mic-strea... should have it live Monday, not sure why that isn't there, sorry for the miss!
> 7. How about we try generating a video - open up AI studio, see only Veo 2 available from the video models. But, open up "Build" section, and I can have Gemini 3 build me a video generation tool that will use Veo 3 via API by clicking on the example. But wait why cant we use Veo 3 in the AI studio with the same API key?
We are working on adding Veo 3.1 into the drop down, I think it is being tested by QA right now, pinged the team to get ETA, should be rolling out ASAP though, sorry for the confusing experience. Hoping this is fixed by Monday EOD!
> 8. Every Veo 3 extended video has absolutely garbled sound and there is nothing you can do about it, or maybe there is, but by this point I'm out of willpower to chase down edgy edge cases in their docs.
Checking on this, haven't used extend a lot but will see if there is something missing we can clarify.
On some of the later points, I don't have enough domain expertise to weight in but will forward to folks n the Android / Play side to see what we can do to streamline things!
Thank you for taking the time to write up this feedback : ) hoping we can make the product better based on this.
Re: Getting a Gemini API key is an exercise in frustration
#343I wasted several hours this week going around in the exact same circles. We have a billing account, but kept hitting a gemini quota. Fine. But then on the quota page, every quota said 0% usage. And our bill was like $5. Some docs said check AI studio, but then the "import project from google cloud to AI studio" button kept silently failing. This was a requests per minute quota, which was set at 15 (not a whole lot...…
pls send feedback if this is helpful!
Re: Getting a Gemini API key is an exercise in frustration
#344Earlier quoted context omitted.
Exactly the same for me. Quote usage is something like 2%, but constantly experience the quota limit error.
The trick here is that they describe internal loadshedding as quota limits. There’s a quote for your general class of query, and there’s a quota for how many can be in flight on a given server. It’s not necessarily about you specifically.
Re: Getting a Gemini API key is an exercise in frustration
#345> The “Set up billing” link kicked me out of Google AI Studio and into Google Cloud Console, and my heart sank. Every time I’ve logged into Google Cloud Console or AWS, I’ve wasted hours upon hours reading outdated documentation, gazing in despair at graphs that make no sense, going around in circles from dashboard to dashboard, and feeling a strong desire to attain freedom from this mortal coil. 100% agree
Re: Getting a Gemini API key is an exercise in frustration
#346I don't understand the multiple posts / comments I've seen about this. 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 (Ma…
Re: Getting a Gemini API key is an exercise in frustration
#347Earlier quoted context omitted.
As the article states, generating the key itself is easy. But getting credit and billing are the issues.
I have it running and calling but it's not showing the usage and I set it up the day gemini 3 came out
Re: Getting a Gemini API key is an exercise in frustration
#348I don't understand the multiple posts / comments I've seen about this. 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 (Ma…
As the other comments pointed out, that's not covering billing... 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 ther…
Re: Getting a Gemini API key is an exercise in frustration
#349I don't understand the multiple posts / comments I've seen about this. 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 (Ma…
Every aspect is at least partially broken several times a day, and even when there isn't a temporary outage of something somewhere, there are nonsensical "blocks" for things that ought to just work. 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…
Passing along this feedback to the CLI team, no clue why this would be the case.
Re: Getting a Gemini API key is an exercise in frustration
#350Hey! Very valid feedback on setting up a billing account. This is something I have been pushing for over the last 2 years at Google. The good news: setting up billing directly in AI Studio tested internally and will be shipped in January : ) Will follow up on some of the other threads in here!
Will that change also allow paying upfront ($250 or whatever) to bump up a tier? I want to release a service using computer-use but am worried about 429 quota errors if I have actual users.