Perplexity Sonar is a real-time web search API provided by Perplexity AI for developers and is part of the Perplexity API platform. Its core purpose is to add real-time, web-wide research and question-answering capabilities to products. The related materials also introduce that the Perplexity API platform includes APIs such as Orchestrator, Agent, Search, Embeddings, Decisions, Monitor, and Context.
Purpose and positioning
- Add real-time web search, web-grounded question answering, and citation capabilities to products.
- Enable proprietary models or agents to read ranked web results and page text.
- Build developer workflows such as semantic search, retrieval-augmented generation (RAG), content decisions, page scoring, and scheduled monitoring.
- Call frontier models or open-weight models through a unified API, with model routing and automatic failover.
Main capabilities
- Model invocation: Use frontier models and open-weight models with one API key, compatible with OpenAI or Anthropic request formats; supports model routing and automatic failover.
- Web-grounded question answering: Get answers with citations; models can use tools such as search, page fetching, and code execution.
- Search: The Search API returns ranked web results and extracted page text in JSON for proprietary models or agents to read; this interface does not generate answers and is billed per request.
- Embeddings: The Embeddings API supports text, document chunk, and image embeddings for semantic search and retrieval-augmented generation; text and images can be retrieved within the same vector space.
- Decisions: The Decisions API can obtain probabilities for yes/no, multiple-choice, and rubric questions about text, JSON, or images; it can find matching text snippets or use web grounding to obtain page URLs.
- Monitoring: The Monitor API can schedule web searches, page checks, or Agent API tasks.
- Context: The Context API can obtain Markdown, HTML, links, query highlights, and page metadata from existing URLs, and score each page against yes/no criteria.
Usage
- Access the Perplexity API platform with one API key; requests can use OpenAI or Anthropic formats.
- Developers can visit https://docs.perplexity.ai/ to view the documentation; the documentation index is at /llms.txt and can be used to discover all pages.
- The materials mention that API pricing can be compared and rate limits and usage tiers can be viewed; specific values and plans are not provided.
- The materials do not provide SDK installation commands, code examples, or specific integration steps.
Applicable scenarios
- Products that need to provide real-time web research, question answering, and citation display within the application.
- Automated processes that need agents to read web search results and continue processing.
- Semantic search or RAG systems that need unified vector retrieval for text and images.
- Workflows that need probabilistic decisions, content filtering, and page scoring for text, JSON, and images.
- Monitoring scenarios that need to schedule web searches, page checks, or agent tasks.
- Developer platforms that need to route between multiple models and have automatic failover.
Limitations and not yet provided
- The materials do not provide parameters such as specific pricing, free quota, rate limit values, usage tiers, list of available models, context length, regional availability, or SLA.
- The Search API explicitly does not generate answers and is billed per request; specific billing amounts are not provided.
- The materials are mainly aimed at developer API integration and do not provide graphical interface operation instructions for ordinary users.
- Installation commands, SDK download addresses, code examples, or complete quick-start steps are not provided.
- Some capabilities (such as code execution and page fetching) are mentioned only as tools; the specific scope of support and invocation methods are not provided.