# Aviary

> **Class** in `langchain_community`

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

Aviary hosted models.

Aviary is a backend for hosted models. You can
find out more about aviary at
http://github.com/ray-project/aviary

To get a list of the models supported on an
aviary, follow the instructions on the website to
install the aviary CLI and then use:
`aviary models`

AVIARY_URL and AVIARY_TOKEN environment variables must be set.

## Signature

```python
Aviary()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import Aviary
os.environ["AVIARY_URL"] = "<URL>"
os.environ["AVIARY_TOKEN"] = "<TOKEN>"
light = Aviary(model='amazon/LightGPT')
output = light('How do you make fried rice?')

## Extends

- `LLM`

## Properties

- `model`
- `aviary_url`
- `aviary_token`
- `use_prompt_format`
- `version`
- `model_config`

## Methods

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

---

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