Perplexity

App · AI Models · 1 action

Connect Perplexity's AI models to answer questions with responses backed by web search.

Generate a response with Perplexity

Sends a prompt to Perplexity and returns the generated response text.

Inputs

PromptprompttextRequired
The question or instructions to send to Perplexity.
Modelmodeltext
Choose which Perplexity Sonar model answers your prompt. All models search the web before answering.One of: sonar (Sonar (fast web search answers, recommended)), sonar-pro (Sonar Pro (deeper research, more sources)), sonar-reasoning-pro (Sonar Reasoning Pro (advanced reasoning)), sonar-deep-research (Sonar Deep Research (long, in-depth reports)). Default: sonar.

Outputs

modeltext
Model.
response_texttext
Response text.
Example output
{
  "model": "sonar",
  "response_text": "Here is a web-researched answer to your question."
}

On this page