# Moonshot

> **Class** in `langchain_community`

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

Moonshot large language models.

To use, you should have the environment variable ``MOONSHOT_API_KEY`` set with your
API key. Referenced from https://platform.moonshot.cn/docs

## Signature

```python
Moonshot()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms.moonshot import Moonshot

moonshot = Moonshot(model="moonshot-v1-8k")

## Extends

- `MoonshotCommon`
- `LLM`

## Properties

- `model_config`

---

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