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

# MistralAI

> [Mistral AI](https://docs.mistral.ai/api/) is a platform that offers hosting for their powerful open source models.

## Installation and Setup

A valid [API key](https://console.mistral.ai/users/api-keys/) is needed to communicate with the API.

You will also need the `langchain-mistralai` package:

<CodeGroup>
  ```bash pip theme={null}
  pip install langchain-mistralai
  ```

  ```bash uv theme={null}
  uv add langchain-mistralai
  ```
</CodeGroup>

## Chat models

### ChatMistralAI

See a [usage example](/oss/python/integrations/chat/mistralai).

```python theme={null}
from langchain_mistralai.chat_models import ChatMistralAI
```

## Embedding models

### MistralAIEmbeddings

See a [usage example](/oss/python/integrations/text_embedding/mistralai).

```python theme={null}
from langchain_mistralai import MistralAIEmbeddings
```
