Perplexity API provides access to a variety of advanced AI models, including both proprietary and open-source options. These models are designed for diverse use cases such as real-time data access, reasoning, and conversational AI. Below is an overview of the models available through the Perplexity API:
Proprietary Perplexity Models
-
Sonar Models:
- Sonar: Built on the LLaMA 3.1 70B open-source model, optimized for seamless integration with Perplexity’s search engine.
- Sonar Pro: Enhanced version for advanced reasoning and search tasks.
- Sonar Reasoning and Sonar Reasoning Pro: Specialized for logical inference and complex reasoning.
- Sonar Deep Research: Tailored for in-depth research and analysis[[1]][[5]].
-
Baseline and Reasoning Models:
- Default Model: Optimized for speed and web browsing, delivering fast and accurate answers.
- GPT-4 Omni: OpenAI’s latest model, excelling in reasoning and natural language processing.
- Claude 3.5 Sonnet: A model from Anthropic, known for handling nuanced language tasks with a balance of speed and accuracy.
- Grok-2: A model from x-AI, designed for general-purpose tasks but does not support image generation[[3]][[8]].
Open-Source Models
Perplexity API also supports several state-of-the-art open-source models, including:
- Mistral 7B
- Llama 2 (13B and 70B)
- Code Llama (34B)
- Replit-code-v1.5-3b[[2]][[5]].
Key Features of the Perplexity API
- Real-Time Internet Access: Models like Sonar provide real-time access to the internet for up-to-date information.
- Large Context Windows: Most models support up to 32,000 tokens, enabling detailed and extended interactions.
- Customizability: Developers can integrate these models into their projects using a REST API, with support for both synchronous and streaming responses.
- Ease of Use: The API is compatible with OpenAI client libraries, making it easy to integrate into existing workflows[[1]][[2]][[6]].
Use Cases
- Quick Searches: For fast, concise answers using the Default model.
- In-Depth Research: Using Sonar Deep Research or Pro Search for detailed analysis.
- Conversational AI: Leveraging models like GPT-4 Omni or Claude 3.5 Sonnet for high-quality dialogue.
- Custom Applications: Open-source models can be used for coding, reasoning, or domain-specific tasks[[3]][[5]][[8]].
The Perplexity API is a versatile tool for developers and businesses, offering a range of models to suit various needs, from casual use to advanced research and enterprise applications.