1# Google Provider
 2
 3This document describes how to get an API keys for Google Gemini and Vertex.
 4
 5## Gemini
 6
 7Simply navigate to [this page](https://aistudio.google.com/apikey) in the
 8Google AI Studio and create a new API key.
 9
10## Vertex
11
12### Install `gcloud`
13
14Install the `gcloud` command line tool. Install via Homebrew, Nix, or download
15it from [here](https://cloud.google.com/sdk/docs/install).
16
17```bash
18# Homebrew
19brew install --cask google-cloud-sdk
20
21# Nix
22nix-env -iA nixpkgs.google-cloud-sdk
23```
24
25### Authenticate
26
27Then authenticate with your Google account:
28
29```bash
30gcloud auth login
31```
32
33### Create And Setup Project
34
35Navigate here to create a new project if you haven't already:
36https://console.cloud.google.com/projectcreate
37
38Alternatively, you can create a new project via the command line:
39
40```bash
41gcloud projects create {YOUR_PROJECT_ID} --name="{YOUR_PROJECT_NAME}"
42```
43
44Set the project on your machine:
45
46```bash
47gcloud config set project {YOUR_PROJECT_ID}
48```
49
50Enable the Vertex AI API:
51
52```bash
53gcloud services enable aiplatform.googleapis.com
54```
55
56### Setup Env
57
58Finally, you need to run this command to ensure that libraries will be able to
59find your credentials.
60
61```bash
62gcloud auth application-default login
63```