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

# Perplexity

> [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
```

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/perplexity.mdx)
</Callout>

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