# EdenAI

> **Class** in `langchain_community`

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

EdenAI models.

To use, you should have
the environment variable ``EDENAI_API_KEY`` set with your API token.
You can find your token here: https://app.edenai.run/admin/account/settings

`feature` and `subfeature` are required, but any other model parameters can also be
passed in with the format params={model_param: value, ...}

for api reference check edenai documentation: http://docs.edenai.co.

## Signature

```python
EdenAI()
```

## Extends

- `LLM`

## Properties

- `base_url`
- `edenai_api_key`
- `feature`
- `subfeature`
- `provider`
- `model`
- `temperature`
- `max_tokens`
- `resolution`
- `params`
- `model_kwargs`
- `stop_sequences`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/edenai/EdenAI/validate_environment)
- [`build_extra()`](https://reference.langchain.com/python/langchain-community/llms/edenai/EdenAI/build_extra)
- [`get_user_agent()`](https://reference.langchain.com/python/langchain-community/llms/edenai/EdenAI/get_user_agent)

---

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