# PipelineAI

> **Class** in `langchain_community`

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

PipelineAI large language models.

To use, you should have the ``pipeline-ai`` python package installed,
and the environment variable ``PIPELINE_API_KEY`` set with your API key.

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
PipelineAI()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import PipelineAI
pipeline = PipelineAI(pipeline_key="")

## Extends

- `LLM`
- `BaseModel`

## Properties

- `pipeline_key`
- `pipeline_kwargs`
- `pipeline_api_key`
- `model_config`

## Methods

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

---

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