Skip to main content
Perplexity 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.

Installation and Setup

Install the Perplexity x LangChain integration package:
pip install langchain-perplexity
Get your API key from here.

Chat models

See a variety of usage examples here.
from langchain_perplexity import ChatPerplexity
I