SuperAPI AI Directory

Sonar - The real-time search API launched by Perplexity

Author: AI小集 · Original source: AI工具集

What is Sonar

Sonar is an artificial intelligence search API launched by Perplexity , providing enterprises and developers with an efficient, low-cost search solution. Through real-time internet search, it obtains answers from trustworthy sources, supports customized data sources, and can optimize search results according to user needs. Sonar's core advantages lie in its powerful context processing capabilities and flexible output formats, while also providing citations to enhance the credibility of answers. Sonar offers two services: a basic version and an advanced version. The basic version is suitable for fast, low-cost search needs, while the advanced version can handle more complex queries, providing more detailed answers and more citations. It features automatic rate limit scaling and structured output, making it suitable for a variety of application scenarios, including IT service management, supply chain, finance, and other fields.

Sonar

Sonar's main features

  • Real-time internet search: Sonar can connect to the internet in real time, ensuring that the answers returned are based on the latest information and improving the relevance and reliability of the results.
  • Citations and customized data sources: It provides citations for each answer and supports restricting the search scope to specific trusted domains, ensuring the authority of the results.
  • Structured output: It supports structured output in JSON format, making it easy for developers to integrate into applications that require formatted data.
  • Scalability: Sonar can handle high-traffic requests, and its low-latency design makes it suitable for enterprise-level applications.
  • Advanced customization options: Developers can adjust data sources and language model parameters (such as "Top P" and "presence penalty") to optimize the relevance and uniqueness of search results.
  • High accuracy and factuality: In the SimpleQA benchmark test, Sonar Pro achieved an F-score of 0.858, demonstrating its high performance in generative search.

How to use Sonar

  • Register and obtain an API Key: Visit the Perplexity API official websiteto register an account and obtain an API Key.
  • Make a request: Call the Sonar API through an HTTP request (such as using curl or Python), specifying the model (such as sonar-pro) and the query content.
  • Configure parameters: Set search domain filtering, language model parameters, etc. as needed to optimize search results.
  • Process the response: Receive and parse the JSON-formatted data returned by the API, and extract search results and citations.
  • Note the limits: Monitor rate limits to avoid exceeding the usage quota.

Sonar version pricing

  • Basic version Sonar:
    • Suitable for fast, low-cost search needs.
    • Provides a 127,000-token context window.
    • Priced at $5 per 1,000 searches, $1 for 750,000 words of input (about 1 million input tokens), and $1 for 750,000 words of output (about 1 million output tokens).
  • Advanced version Sonar Pro:
    • Suitable for handling complex queries, providing more detailed answers and more citations.
    • Provides a 200,000-token context window.
    • Priced at $5 per 1,000 searches, $3 for 750,000 words of input, and $15 for 750,000 words of output.

Sonar's application scenarios

  • Basic Q&A and mobile applications: Sonar provides fast, instant web search results, along with references to improve information credibility.
  • Enterprise-grade complex queries: Sonar Pro is the advanced version of Sonar, capable of handling multi-step queries and long contexts, combining data retrieval from multiple sources to provide deeper, more reliable answers.
  • Video conferencing and real-time collaboration: Zoom has already integrated Sonar Pro to provide instant query capabilities for its video conferencing platform. Users can get answers based on real-time web search without leaving the video conference interface, greatly improving meeting efficiency and user experience.
  • Sales and customer service: Sonar can be integrated into sales and customer service systems to provide enterprises with instant, accurate information support.