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 the Perplexity getting started guide.

Chat models

See a variety of Perplexity usage examples.
from langchain_perplexity import ChatPerplexity