# Add API key

Go to **MindMac** -> **Settings...** -> **Account** or press <mark style="color:purple;">**⌘**</mark> + <mark style="color:purple;">**,**</mark> to open Account Setting.

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

Select AI API provider, enter name, URL and API key, then click **Save** to finish.

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

URL will be filled by default but for some providers like Azure OpenAI or Google Cloud Vertex AI, you might need to bring your own custom URL. For example, with Google Cloud Vertex AI, URL has format <https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/google/models>, where LOCATION and PROJECT\_ID is your own information. Check more on how to get API key and how to add Vertex AI key at [Create Google Cloud Vertex AI API Key](/how-to.../add-api-key/create-google-cloud-vertex-ai-api-key.md).

Check below articles to know how to get API key from AI providers.

* OpenAI: [Create OpenAI API Key](/how-to.../add-api-key/create-openai-api-key.md)
* Azure OpenAI: [Create Azure OpenAI API Key](/how-to.../add-api-key/create-azure-openai-api-key.md)
* Google AI: [Create Google AI API key](/how-to.../add-api-key/create-google-ai-api-key.md)
* Google Vertex AI: [Create Google Cloud Vertex AI API Key](/how-to.../add-api-key/create-google-cloud-vertex-ai-api-key.md)
* OpenRouter: [Create OpenRouter API Key](/how-to.../add-api-key/create-openrouter-api-key.md)
* Mistral AI: [Create Mistral AI API Key](/how-to.../add-api-key/create-mistral-ai-api-key.md)
* Perplexity: [Create Perplexity API Key](/how-to.../add-api-key/create-perplexity-api-key.md)


---

# 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.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.
