Perplexity Sonar API
The Sonar API provides access to Perplexity's Sonar family of models including sonar, sonar-pro, sonar-reasoning-pro, and sonar-deep-research via an OpenAI-compatible chat completions endpoint with built-in web search grounding.
Documentation
Documentation
https://docs.perplexity.ai/docs/sonar/quickstart
APIReference
https://docs.perplexity.ai/api-reference/chat-completions-post
Authentication
https://docs.perplexity.ai/guides/api-key-management
Specifications
OpenAPI
https://raw.githubusercontent.com/api-evangelist/perplexity/refs/heads/main/openapi/perplexity-openapi.json
AsyncAPI
https://raw.githubusercontent.com/api-evangelist/perplexity/refs/heads/main/asyncapi/perplexity-asyncapi.yml