Google Provider
This document describes how to get an API keys for Google Gemini and Vertex.
Gemini
Simply navigate to this page in the Google AI Studio and create a new API key.
Vertex
Install gcloud
Install the gcloud command line tool. Install via Homebrew, Nix, or download
it from here.
# Homebrew
brew install --cask google-cloud-sdk
# Nix
nix-env -iA nixpkgs.google-cloud-sdk
Authenticate
Then authenticate with your Google account:
gcloud auth login
Create And Setup Project
Navigate here to create a new project if you haven't already: https://console.cloud.google.com/projectcreate
Alternatively, you can create a new project via the command line:
gcloud projects create {YOUR_PROJECT_ID} --name="{YOUR_PROJECT_NAME}"
Set the project on your machine:
gcloud config set project {YOUR_PROJECT_ID}
Enable the Vertex AI API:
gcloud services enable aiplatform.googleapis.com
Setup Env
Finally, you need to run this command to ensure that libraries will be able to find your credentials.
gcloud auth application-default login