← Tools Reference

Perplexity

Perplexity integration (AI). Imported from open-connector.

API key4 toolshttps://api.perplexity.ai
GET
perplexity_list_models
List the models currently available from Perplexity.

/v1/models

POST
perplexity_search
Search the web and return ranked raw results from Perplexity without LLM synthesis.

/search

7 parameters
ParamTypeRequiredDescription
querystringrequiredOne or more raw web search queries.
countrystringoptionalThe ISO 3166-1 alpha-2 country code used to localize search results.
max_resultsintegeroptionalThe maximum number of search results to return.
search_after_datestringoptionalOnly return content published after this date, for example 01/15/2024.
search_before_datestringoptionalOnly return content published before this date, for example 12/31/2024.
max_tokens_per_pageintegeroptionalThe maximum number of tokens to retrieve from each webpage.
search_domain_filterarrayoptionalOnly return search results from these domains or URL prefixes.
POST
perplexity_create_chat_completion
Create a Perplexity Sonar chat completion grounded by web search when enabled.

/v1/sonar

14 parameters
ParamTypeRequiredDescription
modelstringrequiredThe Sonar model to use for the chat completion.
messagesarrayrequiredThe ordered conversation messages.
max_tokensintegeroptionalThe maximum number of tokens to generate.
temperaturenumberoptionalThe sampling temperature for generation.
top_pnumberoptionalThe nucleus sampling threshold.
top_kintegeroptionalThe number of top tokens to consider per step.
streambooleanoptionalWhether to stream the response. This connector only accepts false or an omitted…
return_imagesbooleanoptionalWhether to include image references in the response.
return_citationsbooleanoptionalWhether to include citations in the response.
disable_searchbooleanoptionalWhether to disable web search grounding for this request.
search_domain_filterarrayoptionalOnly search within these domains or URL prefixes.
search_recency_filterstringoptionalA recency filter such as day, week, month, or year.
presence_penaltynumberoptionalThe penalty applied to tokens that have already appeared.
frequency_penaltynumberoptionalThe penalty applied based on token frequency.
POST
perplexity_create_embeddings
Generate vector embeddings for one or more input strings with Perplexity.

/v1/embeddings

4 parameters
ParamTypeRequiredDescription
modelstringrequiredThe embedding model identifier.
inputstringrequiredOne or more input strings to embed.
dimensionsintegeroptionalThe target embedding dimension count.
encoding_formatstringoptionalThe output encoding format for embeddings.