Learning resourcesReviewed · Perplexity

Perplexity with LiveKit Agents (integration guide)

This is a short Perplexity documentation page that shows Python developers how to use Perplexity's Agent API as the language model inside a LiveKit voice agent. It includes code blocks for installation, setting the API key as an environment variable, a Quick Start and configuration, and the Quick Start also sets up speech-to-text, text-to-speech and voice activity detection. It does not cover speech-service credentials, starting the room or session, pricing, or any demonstrated results. The technique is to point the OpenAI plugin's openai.responses.LLM class at the base URL [https://api.perplexity.ai/v1], pass a Perplexity API key explicitly, and then attach a web search tool to the Agent. The page says to use this route instead of the livekit-plugins-perplexity plugin or openai.LLM.with_perplexity(), which it says call the legacy Chat Completions endpoint.

Researched 13 Nov 2026

In short.

This is a short Perplexity documentation page for developers who want to build a realtime voice agent with LiveKit Agents and use Perplexity's Agent API as its language model. It gives code blocks for installation, setting the API key as an environment variable, a Quick Start and configuration, and the Quick Start sets up speech-to-text, text-to-speech and voice activity detection. The main gaps are that it does not say which credentials the speech services need, does not show how to start the LiveKit room or session, gives no pricing, and shows no demonstrated results. The page says Perplexity's Agent API is compatible with the OpenAI Responses API, so the openai.responses.LLM class from livekit-plugins-openai can be pointed at the base URL [https://api.perplexity.ai/v1] with an api_key passed explicitly. It also shows attaching openai.tools.WebSearch() to the Agent as Perplexity's built-in web_search tool, and it warns against two older routes that use the legacy Chat Completions endpoint. Nothing here was executed or tested; every statement comes from the captured page.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the complete selected documentation page at [https://docs.perplexity.ai/docs/getting-started/integrations/livekit.md], captured on 13 November 2026 as one file. Linked pages were excluded, including the Agent API Quickstart, Agent API Models, FAQ, LiveKit Agents documentation and the OpenAI plugin source, so pricing, model lists, licences, service terms and the plugin's actual behaviour were not examined. Nothing was executed, so the code snippets, the model name and the API compatibility claim are untested.

The overview

What this resource is

The resource is one documentation page titled Perplexity with LiveKit Agents, published on Perplexity's documentation site at [https://docs.perplexity.ai/docs/getting-started/integrations/livekit.md]. Its stated purpose is to use Perplexity's Agent API as the LLM brain of a LiveKit voice agent.

It is a how-to guide rather than a software package, plugin or tool of its own. The code it describes comes from two other projects: LiveKit Agents, which the page calls an open-source framework for realtime voice and multimodal AI agents, and the livekit-plugins-openai package. The page does not name an author or a version, and it carries no date.

Overall assessment

The page is narrow but concrete. It gives an install command, an environment variable, a complete constructor call with the exact base URL, a quick-start code block and a clear recommendation about which integration route to use. For someone who already knows they want Perplexity behind a LiveKit voice agent, it answers the central question of how to wire the two together.

It is also thin. It shows no full runnable program, no entrypoint code, no troubleshooting and no sample output. Nothing was run for this review, so whether the snippet works as written with current package versions is not assessed.

Who it is for

The page is aimed at Python developers building voice agents with LiveKit Agents who want Perplexity's models and web search as the reasoning layer. It assumes some familiarity with LiveKit concepts such as AgentSession, Agent and a room entrypoint, because it does not explain them and only links to the LiveKit Agents documentation.

It is less suitable for complete beginners to voice agents, because it does not walk through creating a LiveKit project, connecting a client or running the agent worker. It also does not suit people who want a different language, since only Python is shown.

What it enables

According to the page, the integration lets an AgentSession use a Perplexity Agent API model as its llm. The page says any model exposed through the Agent API works, addressed as provider/model, with openai/gpt-5.6-sol as its example. The list of available models is on a separate page that was not captured.

The Quick Start also attaches openai.tools.WebSearch() to the Agent, described as Perplexity's built-in web_search tool, with instructions telling the agent to use web search for up-to-date answers. The same snippet configures speech-to-text with openai.STT(), text-to-speech with openai.TTS() and voice activity detection with silero.VAD.load().

Using it

Requirements

The page states these requirements: the Python packages livekit-agents and livekit-plugins-openai, a Perplexity API key supplied through the PERPLEXITY_API_KEY environment variable, and an explicit api_key argument because the constructor does not read that variable itself. It links to [https://console.perplexity.ai/project/keys] for generating a key.

The page does not state a Python version, package version pins, a LiveKit server or LiveKit Cloud account, LiveKit credentials, or the credentials that openai.STT() and openai.TTS() need. The Quick Start imports silero from livekit.plugins, but the install command lists only livekit-agents and livekit-plugins-openai, and the page does not say where the silero plugin comes from. These gaps are unknown from the evidence.

How it works

The page says Perplexity's Agent API is compatible with the OpenAI Responses API. Because of that, LiveKit's OpenAI plugin class openai.responses.LLM can talk to Perplexity if its base URL is set to [https://api.perplexity.ai/v1]. A code comment explains that the SDK appends /responses, so requests go to POST /v1/responses. The page says no other changes are needed.

Tools attach to the Agent rather than to the LLM object. The page presents openai.tools.WebSearch() as Perplexity's built-in web_search tool. How that tool class maps onto Perplexity's server-side tool is stated only as a claim on the page and was not verified here.

Setup steps

The documented sequence is: install the two packages with pip install "livekit-agents" "livekit-plugins-openai"; export PERPLEXITY_API_KEY with your key; build an openai.responses.LLM with model, base_url and api_key; pass it as llm to AgentSession together with stt, tts and vad; create an Agent with instructions and tools; and run the session inside your LiveKit room entrypoint.

The last step is only a comment in the code. The page does not show how to define the entrypoint, start the session, pass the agent to the session or connect to a room, so that part must come from the LiveKit documentation it links to.

Worked example

The Quick Start builds an AgentSession whose llm is an openai.responses.LLM configured with the model openai/gpt-5.6-sol, the base URL [https://api.perplexity.ai/v1] and an API key read from the PERPLEXITY_API_KEY environment variable. The session also uses openai.STT() for speech-to-text, openai.TTS() for text-to-speech output and silero.VAD.load() for voice activity detection. The example then defines an Agent instructed to be a helpful voice assistant that uses web search for up-to-date information, and gives it openai.tools.WebSearch() as its only tool.

This is a fragment, not a finished program. No spoken conversation, transcript or output is shown, and the example was not run for this review. The model name is copied from the page and its current availability was not checked.

Assessment & evidence

Limitations and risks

The page covers one integration path with a short Quick Start and configuration example. It does not discuss latency, interruption handling, streaming behaviour, tool-call limits, error handling, rate limits, or how web search results are spoken aloud. Those matters are not assessed.

The example reads the key with os.environ["PERPLEXITY_API_KEY"], which fails if the variable is missing. The Quick Start leaves out the call that starts the session and has the silero plugin install gap noted above. The page says the integration rests on compatibility with the OpenAI Responses API, but it does not document any cases where actual behaviour differs from that compatibility.

Because the model name and integration route are time-sensitive and the page is undated, the snippet may drift from current package or API behaviour.

Why this is useful

The most valuable content is the explicit guidance on which route to take. The page tells new integrations to use the Perplexity Agent API through openai.responses.LLM and not the livekit-plugins-perplexity plugin or openai.LLM.with_perplexity(), both of which it says call the legacy Chat Completions endpoint. That saves a developer from picking an older path by default.

The page also records two easy-to-miss details: the base URL (the SDK adds /responses) and the need to pass api_key explicitly because the constructor does not read PERPLEXITY_API_KEY. Both come directly from the page and would otherwise take trial and error to find.

Alternatives

The page itself names two alternatives and recommends against them for new work: the livekit-plugins-perplexity plugin and openai.LLM.with_perplexity(), both on the legacy Chat Completions endpoint. It does not compare other model providers or other voice-agent frameworks.

For a broader view, the page links to the LiveKit Agents documentation at [https://docs.livekit.io/agents/] and the OpenAI plugin source on GitHub. The evidence does not cover which other LLM providers LiveKit supports or how they compare on cost or quality.

Evidence base

The only evidence is the Perplexity integration guide at [https://docs.perplexity.ai/docs/getting-started/integrations/livekit.md]. It includes an overview, the pip installation command, the API key environment-variable setup, the Quick Start code, a separate configuration code block, a note on available models, and a list of links.

No plugin or package source code, repository contents, package metadata, release notes, test results or independent reviews were inspected. No code was run, so statements about behaviour are the page's claims, not results from running it.

Access & freshness

Costs

The page states no prices. It says a separate Agent API Models page covers available models and pricing, but that page is outside the captured scope, so Perplexity usage costs are unknown here.

Other costs are also unknown from this evidence: the speech-to-text and text-to-speech services used by openai.STT() and openai.TTS(), any LiveKit hosting or usage charges, and whether web search carries a separate fee. Voice agents can involve several billed services at once, so check each provider's pricing before relying on this setup.

Rights and licence

The captured page contains no licence or reuse statement for the documentation or the code snippets, so the terms for copying or redistributing them are unknown from this evidence. The page describes LiveKit Agents as open source, but it does not name a licence for LiveKit Agents or the OpenAI plugin, and it grants no redistribution permissions.

The page requires a Perplexity API key but supplies no applicable service terms; those terms remain unknown from this page.

Freshness

The page was captured on 13 November 2026. It shows no publication date, last-updated date or package version numbers, so how recently it was revised is unknown.

The model identifier openai/gpt-5.6-sol and the recommendation about legacy routes may change as Perplexity and LiveKit release updates. Re-check against the current Agent API models page and the LiveKit plugin source before building on it.

Suggested next steps

Before adopting this, read the linked Perplexity Agent API Quickstart and Models pages for the request contract, current model names and pricing, and the LiveKit Agents documentation for entrypoint and session startup. Confirm which credentials openai.STT() and openai.TTS() need and where the silero plugin is installed from.

Try the snippet in a throwaway project with pinned package versions, keep the Perplexity key in an environment variable or secret store rather than in code, and check the usage costs of every service in the voice pipeline. Treat the page as a starting point, not as proof that the combination works in production.

Evidence for this report

selected-page.txtselected · checked 2026-11-13