Perplexity Sonar API
Tool : A precise action the AI can call · requires perplexity-api
Cited, ready-to-use answers for an agent.
Web search with a written answer in one call.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Getting reliable, sourced answers from the web in a single API call is often complex: you need to query a search engine, retrieve pages, parse them, and then write a summary. Perplexity Sonar API consolidates these steps into one request.
Concretely, the API exposes several endpoints: an Agent API that returns written answers with built-in citations, a Search API that provides raw ranked web results with advanced filtering and real-time data, and access to third-party models (OpenAI, Anthropic, Google, xAI) augmented with web search tools and presets. Everything is OpenAI-compatible, making integration into existing pipelines straightforward.
This service targets developers and technical teams building agents, assistants, or applications that require recent and verifiable web data, without having to assemble a search pipeline themselves.
It is not suited for non-technical users looking for a consumer-facing interface, nor for projects with a fixed budget, since billing is usage-based according to the number of requests and tokens consumed.
What it offers
- ·Agent API: returns a written answer with built-in web citations in a single call. (paid)
- ·Search API: provides raw, ranked, and filterable web results in real time. (paid)
- ·Router API: unified access to open-weight models hosted by Perplexity through one OpenAI-compatible endpoint. (paid)
- ·Access to third-party models (OpenAI, Anthropic, Google, xAI) augmented with web search tools and presets. (paid)
- ·Embeddings API: generates high-quality embeddings for semantic search and RAG pipelines. (paid)
- ·OpenAI-compatible format to ease integration into existing architectures. (paid)
In practice
- Price
- Paid · from 5 €
- Commercial use
- Commercial use: yes
- Available on
- api
- Host
- perplexity-api
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Capabilities
- readswritesexecutesnetwork
- Your data
- Data with the vendor
- Maintenance
- Active
Links and repository checked on 25 October 2026 · added on 1 January 2025
How to install Perplexity Sonar API
model="sonar"