> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mistral AI - How do I link my account?

## Overview

To authenticate with Mistral AI, you need:

1. **Region** — the Mistral API host your requests go to.
2. **API Key** — a Mistral Studio API key or a service account API key.

This guide will show you how to get them.

### Prerequisites

* A Mistral AI account. You can sign up at [console.mistral.ai](https://console.mistral.ai/).

### Step 1: Choose your region

Mistral has a global API host and two regional ones. Select the value that matches where you want inference to run:

| Region | Value to select |
| - | - |
| Global (not region-specific) | `api.mistral.ai` |
| EU | `api.eu.mistral.ai` |
| US | `api.us.mistral.ai` |

Use the global host when you do not need a specific inference location. Agents, Batch and the Files API are not available on the regional hosts. See [Regional inference](https://docs.mistral.ai/inference/regional-inference) for details.

### Step 2: Create an API key

1. Sign in to [Mistral Studio](https://console.mistral.ai/), open [API Keys](https://console.mistral.ai/api-keys) and click **New key**.

![Mistral Studio API keys page with the New key button](https://mintcdn.com/nango/c67tAOkIOCvA3Pbg/api-integrations/mistral-ai/api_keys_page.png?fit=max\&auto=format\&n=c67tAOkIOCvA3Pbg\&q=85\&s=e76c103c3802adaac4f8a0b0c05a8688)

2. Enter a **Key name**, optionally set an **Expiration**, and choose the **Connector and connection access scope**. Then click **New key**.

![Mistral Studio Create new key panel with the Key name, Expiration and access scope fields](https://mintcdn.com/nango/c67tAOkIOCvA3Pbg/api-integrations/mistral-ai/create_key_dialog.png?fit=max\&auto=format\&n=c67tAOkIOCvA3Pbg\&q=85\&s=3111ba76d5e84e1b017d743a5648ec74)

3. Copy the key. It is shown only once and cannot be retrieved after you close the dialog.

![Mistral Studio API key created dialog with the button to copy the key](https://mintcdn.com/nango/c67tAOkIOCvA3Pbg/api-integrations/mistral-ai/api_key_created.png?fit=max\&auto=format\&n=c67tAOkIOCvA3Pbg\&q=85\&s=363a29e75eec855ab30e24a18acc38df)

The key works only in the workspace it was created in.

To connect as a service account instead, open the [Admin Console](https://admin.mistral.ai), go to **Workspaces**, open your workspace and select the **Service accounts** tab. Open the service account, click **Add new authentication**, choose **API key** and create the key, then click **Copy key**. A service account API key authenticates as the service account and has its roles.

![Mistral Admin Console API key created dialog for a service account with the Copy key button](https://mintcdn.com/nango/c67tAOkIOCvA3Pbg/api-integrations/mistral-ai/service_account_api_key_created.png?fit=max\&auto=format\&n=c67tAOkIOCvA3Pbg\&q=85\&s=831780fc0e92c226df0b59224b16ba05)

### Step 3: Enter your credentials in the Connect UI

1. Open the form where you need to authenticate with Mistral AI.
2. Select your **Region** and enter your **API Key** in the designated fields.
3. Submit the form, and you should be successfully authenticated.

![Mistral AI connection form in the Nango Connect UI](https://mintcdn.com/nango/c67tAOkIOCvA3Pbg/api-integrations/mistral-ai/form.png?fit=max\&auto=format\&n=c67tAOkIOCvA3Pbg\&q=85\&s=4436a0f018ead0961d728d6bdd4aae67)

You are now connected to Mistral AI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.