> For the complete documentation index, see [llms.txt](https://docs.mindmac.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindmac.app/how-to.../add-api-key/create-mistral-ai-api-key.md).

# Create Mistral AI API Key

Create an account if you don't have one at <https://auth.mistral.ai/ui/registration>. However, you might be in the waitlist to use the platform. So you can contact [support@mistral.ai](<mailto:support@mistral.ai >) to ask for early access but not sure it always work, unfortunately.

<figure><img src="/files/7cNP4zhWRRH1bvZ7aPVR" alt=""><figcaption></figcaption></figure>

Once you have an active account, follow below steps to get the API key.

### Step 1: Add billing information

Go to <https://console.mistral.ai/billing/> and follow instructions to add billing information and add credit balance.

### Step 2: Create a API key

Go to <https://console.mistral.ai/user/api-keys/> and click "**Generate a new key**".

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

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

Please notice that you won't be able to view the key again for security reasons. If you lose this secret key, you'll need to generate a new one.

<figure><img src="/files/N3GcjzD6NkOoUmWsDU8U" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
