The Perplexity API provides access to a variety of AI models designed for different tasks, primarily focusing on information retrieval, synthesis, reasoning, and chat capabilities. Here's a breakdown of the models available:
Search Models: These models are designed to efficiently retrieve and synthesize information, often incorporating grounding with search results.
- sonar-pro: This is Perplexity's advanced search model. It supports complex queries, follow-ups, and provides grounding (citations). It has a large context length (200k tokens) but a maximum output limit of 8k tokens. It's suitable for long-form content and complex reasoning.
- sonar: A lighter, more cost-effective search model, also with grounding. It has a 128k token context length and is good for general-purpose, search-augmented responses.
Research Models:
- sonar-deep-research: An expert-level model designed for conducting exhaustive searches and generating comprehensive, detailed reports. It has a 128k token context length.
Reasoning Models: These models excel at complex, multi-step tasks.
- sonar-reasoning-pro: The premier reasoning model, powered by DeepSeek R1 with Chain of Thought (CoT) capabilities for systematic problem-solving. It has a 128k token context length.
- sonar-reasoning: A faster, real-time reasoning model designed for quick problem-solving, integrated with search. It also has a 128k token context length.
Offline Chat Models: These models function as standard chat models without using Perplexity's search subsystem.
- r1-1776: A version of DeepSeek R1, post-trained for uncensored, unbiased, and factual information. It has a 128k token context length.
Older/Other Mentioned Models (Potentially Phased Out or Renamed):
- Some sources mention models based on Llama 3.1 architecture like
Llama 3.1 Sonar 405B Online, Llama 3.1 Sonar 70B Online, Llama 3.1 Sonar 70B (Offline), and Llama 3.1 Sonar Small 128k (Online and Offline). These likely correspond to or have been replaced by the current "sonar" series.
- Earlier documentation and videos also reference models like
pplx-7b-online, pplx-70b-online, pplx-7b-chat, pplx-70b-chat, codellama-34b-instruct, llama-2-70b-chat, mistral-7b-instruct, and mixtral-8x7b-instruct. It's best to refer to the current official Perplexity API documentation for the most up-to-date list.
Key Features Across Models:
- Search Integration: Many models automatically search the internet and cite sources, with options to filter domains and recency.
- Context Length: Several models boast large context windows (up to 200k for sonar-pro, 128k for many others), allowing for analysis of large documents or long conversations.
- Structured Output: The
sonar model (in Beta) supports generating responses in specific formats using JSON Schema or Regex patterns.
- API Compatibility: The Perplexity API follows OpenAI's chat completion format, making it easier to integrate if you're familiar with OpenAI's API.
To choose the right model, consider your specific needs: use online/search models for tasks requiring up-to-date information, reasoning models for complex problem-solving, and offline models for standard chat interactions where real-time search isn't necessary.