# 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="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FvgrtwggGVvZrnOEnkv7g%2Faddapikey1.jpg?alt=media&#x26;token=4e6137d8-dc53-40b4-afbf-da0691aa3bd4" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FbXZtBhlHYY0x7oBx9CvD%2Faddapikey2.jpg?alt=media&#x26;token=e7cdc385-a565-45a5-8554-cc56256b0fab" 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](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](https://docs.mindmac.app/how-to.../add-api-key/create-google-cloud-vertex-ai-api-key "mention").

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

* OpenAI: [create-openai-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-openai-api-key "mention")
* Azure OpenAI: [create-azure-openai-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-azure-openai-api-key "mention")
* Google AI: [create-google-ai-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-google-ai-api-key "mention")
* Google Vertex AI: [create-google-cloud-vertex-ai-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-google-cloud-vertex-ai-api-key "mention")
* OpenRouter: [create-openrouter-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-openrouter-api-key "mention")
* Mistral AI: [create-mistral-ai-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-mistral-ai-api-key "mention")
* Perplexity: [create-perplexity-api-key](https://docs.mindmac.app/how-to.../add-api-key/create-perplexity-api-key "mention")
