# 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="/files/PqGJrAZkXfIRZvnKqza5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/f9XIHrsh6q0z4EMSLcjH" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/8D6pxmmLQvJXzEFItFaF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bR8VqjZvmMenH3piKdlp" alt=""><figcaption></figcaption></figure>

Now go to [Add API key](/how-to.../add-api-key.md) and use copied API key to create new endpoint.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mindmac.app/how-to.../add-api-key/create-google-ai-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
