Description
Note: Sonar Pro pricing includes Perplexity search pricing. See [details here](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like double the number of citations per search as Sonar on average. Plus, with a larger context window, it can handle longer and more nuanced searches and follow-up questions.
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: Perplexity: Sonar Pro (perplexity/sonar-pro)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "perplexity/sonar-pro",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the Perplexity: Sonar Pro model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'
Supported Modalities
- Text
- Images
API Pricing
- Input: 3$ / 1M tokens
- Output: 15$ / 1M tokens
Token Limits
- Max Output: 8,000 tokens
- Max Context: 200,000 tokens
Subscription Tiers
- free
- pro
- ultimate