What can you do with it?
The/perplexity
command gives you access to real-time web research powered by Perplexity’s AI. You can get current news, analyze market trends, find academic papers, research any topic with up-to-date information, and even process files (PDFs, Word docs, Excel sheets) as part of your research queries.
How to use it?
Basic Command Structure
Parameters
Required:query
- Your research question or topic (e.g., “latest AI developments”, “climate change policy updates”)
-
model
- AI model to use:sonar
(default, fast),sonar-pro
(advanced),sonar-reasoning
(fast reasoning),sonar-deep-research
(comprehensive) -
max_tokens
- Maximum response length (default: 1000) -
temperature
- Response creativity level (0-1, default: 0.7) -
search_domain_filter
- Include or exclude specific websites (e.g.,["wikipedia.org", "cnn.com"]
or["-pinterest.com"]
) -
search_recency_filter
- Time period for results:"day"
,"week"
,"month"
,"year"
-
return_images
- Include images in results (true/false, default: false) -
return_related_questions
- Include related questions (true/false, default: false) -
search_context_size
- Amount of search context:"low"
,"medium"
,"high"
-
response_format
- Structure output as JSON schema or regex pattern -
file_urls
- Array of file URLs to process (supports PDF, DOCX, XLSX, PPTX, CSV)
Response Format
Sample response:Examples
Basic Research
Advanced Research with Filters
Structured Data Research
See LLM File Type Support for detailed information about file formats supported by Perplexity and other models. Note that Perplexity has no native file support and relies on preprocessors for document handling.
Supported Models
Choose the appropriate model based on your research needs:Search Models
sonar
(default) - Lightweight search model for quick factual queries and topic summariessonar-pro
- Advanced search model with better grounding for complex queries (200k context)This model can take longer to process. Use only when enhanced accuracy is critical.sonar-deep-research
- Expert-level research model for comprehensive reportsThis model may take 30+ minutes. Use async endpoints for this model.
Reasoning Models
sonar-reasoning
- Fast reasoning model with search capabilitiessonar-reasoning-pro
- Premier reasoning model powered by DeepSeek R1 with Chain of Thought
Offline Model
r1-1776
- Offline chat model (no search) for creative content and traditional LLM tasks