Perplexity
Perplexity is an AI-powered search and answer engine that provides real-time, cited answers using large language models. It's designed for knowledge discovery and in-depth research.
What this package is
One is a unified API for third-party platforms: connect an account once, then call any of its actions through one client with the credentials, retries and routing handled for you. withone-perplexity holds the 30 typed Perplexity actions, each taking exactly the input that action needs and checked when you build. The client itself lives in withone, which every platform package shares.
Install
Quick start
- Create a secret key in the One dashboard and export it as
ONE_SECRET. - Connect a Perplexity account in the dashboard and copy its connection key.
- Run an action on that connection:
use One;
use withone_perplexity as perplexity;
async
Actions
This package carries 30 typed actions, among them:
create_embeddingsget_async_chat_completion_responsesearch_weblist_async_chat_completions_authenticated_usercreate_contextualized_embeddingscreate_agent_responsecreate_chat_completioncreate_async_chat_completion_sonardownload_file_contentdelete_filecancel_batchcreate_batch
Every action, with its inputs, outputs and behaviour, is on Perplexity on One.
Links
- One and its documentation
withone, the client this package builds on@withone/platform-perplexity, the same actions for the other language
License
MIT