# ForefrontAI

> **Class** in `langchain_community`

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

ForefrontAI large language models.

To use, you should have the environment variable ``FOREFRONTAI_API_KEY``
set with your API key.

## Signature

```python
ForefrontAI()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import ForefrontAI
forefrontai = ForefrontAI(endpoint_url="")

## Extends

- `LLM`

## Properties

- `endpoint_url`
- `temperature`
- `length`
- `top_p`
- `top_k`
- `repetition_penalty`
- `forefrontai_api_key`
- `base_url`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/forefrontai/ForefrontAI/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/llms/forefrontai.py#L12)