Enabling APIs and Fetching API Keys¶
Logging into Console¶
One of my favorite ways to gather information about any project setups and enabled APIs is to go to Google Cloud Console, this is easy and you can simply visit it by going to console.cloud.google.com.
Remember we are using the username and password provided to us for this hackathon and not your personal login. For now all of these accounts have been linked to a single project and you should be able to click on projects and select it if the project hasn't already been selected for you.
Checking out Enabled APIs¶
It's good practice to make sure that your account has Earth Engine APIs enabled, and you can do that by making use of the search bar and starting to type in APIs and click on "Enabled APIs and Services" this pulls in a nice list with all the details. We are not changing anything here just verifying you are good to go.
Note
While I am making everyone do this I do want to point that that APIs are enabled at a Project level so if we are all using the same project we should be good to go. But it is good practice if you would like to continue using this setup after the hackathon ends using your own credentials and APIs
Creating a Generative Language API Key/Gemini API Key¶
This part is unique to every user and can be created by simply visiting Google AI Studio. This allows you to play with Gemini APIs and more and is an amazing place to get started apart from simply using Google Gemini. Getting to a Key is easy, if you are logging in for the first time you will be greeted with a page that offers you an API key and once you click yes to terms and conditions you will be taken to that page. Next up:
- Click on Create API Key
- Select your Google Cloud Project (Since we gave you a login that's linked to a Google Cloud Project you should only have one project listed)
- Next click Create API key in Existing Project and copy your key
If you have already created your API key or have mostly used the prompt window just go to the Create API Key button on the top left hand corner and follow the same instructions as above.
Your API keys are your treat them securely, if you are in doubt feel free to delete the key and make a new one.