Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-perplexity 1.8.1
File Size Uploaded
livekit_plugins_perplexity-1.8.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-perplexity 1.8.1
File Interpreter ABI Platform
livekit_plugins_perplexity-1.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / livekit_plugins_perplexity-1.8.1.tar.gz

Download URL livekit_plugins_perplexity-1.8.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c88fd85fd804f140c290ece3562bbc125ac836926c9e2de11357e6670e2956f6
BLAKE2b-256 checksum
How to use checksums
2de7f3af49adede463bb787a7d28c315c262b0af7ba636aa22d9e285d4eed61e
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 10, 2026.

Transparency log

Release files / livekit_plugins_perplexity-1.8.1-py3-none-any.whl

Download URL livekit_plugins_perplexity-1.8.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ff9524067ff2fe9d086877561dd0ee149685d1b2b5360e2ea2b4fe3040204d6
BLAKE2b-256 checksum
How to use checksums
6ec6a27513798bb2d116e16d24065da13245c1e3b141c4786fd20feff7077b45
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 10, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page