# Minimax

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/minimax/Minimax)

Minimax large language models.

To use, you should have the environment variable
``MINIMAX_API_KEY`` and ``MINIMAX_GROUP_ID`` set with your API key,
or pass them as a named parameter to the constructor.
Example:
 . code-block:: python
     from langchain_community.llms.minimax import Minimax
     minimax = Minimax(model="<model_name>", minimax_api_key="my-api-key",
      minimax_group_id="my-group-id")

## Signature

```python
Minimax()
```

## Extends

- `MinimaxCommon`
- `LLM`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/llms/minimax.py#L123)