Perplexity: Sonar Pro API
Access Perplexity: Sonar Pro from Perplexity using Puter.js AI API.
Get Startedperplexity/sonar-pro
Model Card
Sonar Pro is Perplexity's advanced search model with a 200K token context window, delivering 2x more citations and search results than standard Sonar for complex queries. It handles in-depth, multi-step queries with enhanced content understanding and supports longer, more nuanced follow-up conversations. Best for enterprise applications requiring deeper research and comprehensive source attribution.
Context Window
N/A
tokens
Max Output
8,000
tokens
Input Cost
$3
per million tokens
Output Cost
$15
per million tokens
API Usage Example
Add Perplexity: Sonar Pro to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "perplexity/sonar-pro"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Get started with Puter.js
Add Perplexity: Sonar Pro to your app without worrying about API keys or setup.
Read the Docs View Tutorials