I’m trying to set up the Google Colab Gemini API for the first time. I created a fresh Gemini API key, but the Google Colab sheet keeps rejecting it, giving an error that it is not a legitimate API. I have authorized the API and authorized myself to use it, but nothing is happening.
Are you able to provide a bit more detail?
Are you accessing the API via AI studio? If so, have you followed this authentication example?
Authentication.ipynb - Colab (google.com)
If you are accessing via Vertex AI, the process is a little different as you have to specify the project you are using as explained in the quickstart here: Quickstart: Send requests to the Vertex AI API for Gemini | Generative AI on Vertex AI | Google Cloud
Also, are you able to share the code and error?
Thanks Patrick my query is solved!