# Create Google AI API key

### Step 1: Create API key

Go to <https://makersuite.google.com/app/apikey> and click **Create API key in existing project**

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FBgPFulYNpRggrlTwqT4r%2Fgoogleai1.jpg?alt=media&#x26;token=6b366101-ba63-4a9d-a0c9-78037d060c65" alt=""><figcaption></figcaption></figure>

### Step 2: Select a project and click Create new API key

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FmveDNhjDr4dRyfl4nd5m%2Fgoogleai2.jpg?alt=media&#x26;token=39d51d5f-d096-4980-b1b4-542e6407026c" alt=""><figcaption></figcaption></figure>

### Step 3: Copy the API key. Keep it secret.

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FgU7VkXkYilGg33yjQDfT%2Fgoogleai3.jpg?alt=media&#x26;token=76c969b8-992e-4865-9112-17149773706d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FGv5BHVdXQsRv5UFxyWUi%2Fgoogleai4.jpg?alt=media&#x26;token=1e774435-1b2e-4b08-9cdf-5e67576b4916" alt=""><figcaption></figcaption></figure>

Now go to [](https://docs.mindmac.app/how-to.../add-api-key "mention") and use copied API key to create new endpoint.
