For Agents
Generate search-enhanced LLM responses using Perplexity AI models with real-time web search capabilities.
Use for: I need to generate responses with current web information, How do I use Perplexity AI for search-enhanced generation, Generate an answer with real-time search results, Get citations for AI-generated content
Not supported: Provides access to perplexity.ai resources and operations as documented in the OpenAPI specification.
Perplexity AI is a search-enhanced large language model API that combines real-time web search with LLM generation. The API provides a chat completions endpoint compatible with OpenAI's format, allowing developers to build applications that leverage both search and generation capabilities. Perplexity models can search the web for current information and synthesize results into coherent responses, making them ideal for knowledge-intensive tasks that require up-to-date information.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Perplexity API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Perplexity API.
Generate chat completions with real-time web search integration
Access multiple Perplexity models including sonar-small, sonar-medium, and sonar-pro
Stream responses for real-time user experiences
GET STARTED
Retrieve search citations and sources alongside generated content
Use OpenAI-compatible API format for easy integration
Patterns agents use Perplexity API for, with concrete tasks.
★ Search-Enhanced Q&A
Build question-answering systems that combine LLM reasoning with real-time web search. The chat completions endpoint searches the web for relevant information and generates comprehensive responses with citations. Ideal for customer support, research assistants, and knowledge base systems that need current information.
POST /chat/completions with a user question to generate a search-enhanced response with citations and sources from the web.
Real-Time Research Assistant
Create AI assistants that can research topics using current web information. Perplexity searches across multiple sources, synthesizes findings, and provides citations. Use streaming for progressive response delivery as the model searches and generates.
POST /chat/completions with stream=true to get progressive search results and generation as the model researches the topic.
AI Agent with Search Tools
Integrate Perplexity as a search-enhanced reasoning tool for AI agents built with frameworks like LangChain or custom agent systems. Through Jentic, the agent can discover and invoke the Perplexity API when tasks require current web information, without hardcoding the integration.
Search Jentic for 'perplexity search' to find POST /chat/completions, load its schema, and execute when the agent needs current web information.
1 endpoints — perplexity ai is a search-enhanced large language model api that combines real-time web search with llm generation.
METHOD
PATH
DESCRIPTION
/chat/completions
Generate search-enhanced chat completions with citations
/chat/completions
Generate search-enhanced chat completions with citations
Three things that make agents converge on Jentic-routed access.
Credential isolation
perplexity.ai credentials are stored encrypted in the Jentic vault and injected at execution time. Raw credentials never appear in agent prompts, transcripts, or response payloads.
Intent-based discovery
Agents search by intent and Jentic returns the matching endpoint with its schema and any required parameters.
Time to first call
Direct perplexity.ai integration: days to weeks to model all resources and operations. Through Jentic: under 1 hour — search, load schema, execute.
Specific to using Perplexity API through Jentic.
What authentication does the Perplexity API use?
The Perplexity API uses bearer authentication. Through Jentic, credentials are stored encrypted and injected at execution time so they never enter the agent's context.
How many endpoints does the Perplexity API have?
The Perplexity API exposes 1 endpoints across its surface area.