# ChatMistralAI

> **Class** in `langchain_mistralai`

📖 [View in docs](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI)

A chat model that uses the Mistral AI API.

## Signature

```python
ChatMistralAI()
```

## Extends

- `BaseChatModel`

## Properties

- `client`
- `async_client`
- `mistral_api_key`
- `endpoint`
- `max_retries`
- `timeout`
- `max_concurrent_requests`
- `model`
- `temperature`
- `max_tokens`
- `top_p`
- `random_seed`
- `safe_mode`
- `streaming`
- `model_kwargs`
- `model_config`
- `lc_secrets`

## Methods

- [`build_extra()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/build_extra)
- [`completion_with_retry()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/completion_with_retry)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/validate_environment)
- [`bind_tools()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/bind_tools)
- [`with_structured_output()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/with_structured_output)
- [`is_lc_serializable()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/is_lc_serializable)
- [`get_lc_namespace()`](https://reference.langchain.com/python/langchain-mistralai/chat_models/ChatMistralAI/get_lc_namespace)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/fb6ab993a73180538f6cca876b3c85d46c08845f/libs/partners/mistralai/langchain_mistralai/chat_models.py#L460)