# CerebriumAI

> **Class** in `langchain_community`

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

CerebriumAI large language models.

To use, you should have the ``cerebrium`` python package installed.
You should also have the environment variable ``CEREBRIUMAI_API_KEY``
set with your API key or pass it as a named argument in the constructor.

Any parameters that are valid to be passed to the call can be passed
in, even if not explicitly saved on this class.

## Signature

```python
CerebriumAI()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import CerebriumAI
cerebrium = CerebriumAI(endpoint_url="", cerebriumai_api_key="my-api-key")

## Extends

- `LLM`

## Properties

- `endpoint_url`
- `model_kwargs`
- `cerebriumai_api_key`
- `model_config`

## Methods

- [`build_extra()`](https://reference.langchain.com/python/langchain-community/llms/cerebriumai/CerebriumAI/build_extra)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/cerebriumai/CerebriumAI/validate_environment)

---

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