> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-cbfron-1772840960-d2a2597.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Perplexity integrations

> Integrate with Perplexity using LangChain Python.

> [Perplexity](https://www.perplexity.ai/pro) is the most powerful way to search
> the internet with unlimited Pro Search, upgraded AI models, unlimited file upload,
> image generation, and API credits.
>
> You can check a [list of available models](https://docs.perplexity.ai/docs/model-cards).

## Installation and setup

Install the Perplexity x LangChain integration package:

<CodeGroup>
  ```bash pip theme={null}
  pip install langchain-perplexity
  ```

  ```bash uv theme={null}
  uv add langchain-perplexity
  ```
</CodeGroup>

Get your API key from [here](https://docs.perplexity.ai/docs/getting-started).

## Chat models

See a variety of usage examples [here](/oss/python/integrations/chat/perplexity).

```python theme={null}
from langchain_perplexity import ChatPerplexity
```

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/perplexity.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
