Perplexity plugin for LiveKit Agents
Support for Perplexity LLMs via the OpenAI-compatible
chat completions endpoint at https://api.perplexity.ai.
See https://docs.livekit.io/agents/models/llm/perplexity/ for more information.
Installation
pip install livekit-plugins-perplexity
Pre-requisites
You'll need an API key from Perplexity. It can be passed directly or set as the
PERPLEXITY_API_KEY environment variable.
Usage
from livekit.plugins import perplexity
llm = perplexity.LLM(
model="sonar-pro",
# api_key picked up from PERPLEXITY_API_KEY if omitted
)
The plugin reuses the OpenAI plugin's chat completions transport with
base_url="https://api.perplexity.ai" and forwards an X-Pplx-Integration
attribution header on every outgoing request.
Agent API usage
Perplexity's Agent API is compatible with OpenAI's Responses API and is
available through the perplexity.responses submodule.
from livekit.plugins import perplexity
llm = perplexity.responses.LLM(
model="perplexity/sonar",
# api_key picked up from PERPLEXITY_API_KEY if omitted
)
The Responses LLM uses base_url="https://api.perplexity.ai/v1", disables
websocket transport, and sends the same X-Pplx-Integration attribution header
on its OpenAI-compatible client.
Release files for livekit-plugins-perplexity 1.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| livekit_plugins_perplexity-1.8.2.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| livekit_plugins_perplexity-1.8.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / livekit_plugins_perplexity-1.8.2.tar.gz
| Download URL | livekit_plugins_perplexity-1.8.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08f0f18a39f5c3441295add13c3e64ddf8c25d47a709fa79d9224ca218f54021
|
|
BLAKE2b-256 checksum How to use checksums |
fcb10953e368ad0dd84f0dc39e566988e91ea29d88a2a8bc1332173bca1a3279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / livekit_plugins_perplexity-1.8.2-py3-none-any.whl
| Download URL | livekit_plugins_perplexity-1.8.2-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01416dbc15e1516817c70e125e225cfc3497d8b8ddcb7e84b220f857baebd22e
|
|
BLAKE2b-256 checksum How to use checksums |
a3b26bc48a52185e6f936b4295682953fc8a584aa812c48f54a226e5cbdf730b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log