Perplexity API
Add up-to-date AI to your app with Perplexity API.
Access Perplexity AI through a single API with Puter.js.
AI Search API
Real-Time Web Search
Answers grounded in live, up-to-date internet data - not stale training knowledge.
Built-In References
Every response includes source URLs so users can verify facts and trace where information came from.
Deep Research
Multi-step analysis that synthesizes results from multiple sources for complex queries.
Chain-of-Thought Reasoning
Advanced multi-step reasoning for complex problem-solving.
128K Context Window
Handle long documents, extended conversations, and detailed follow-up questions.
Ultra-Fast Responses
Blazing fast speeds at 1,200 tokens per second for near-instant answers.
Perplexity Models
Access all Perplexity AI models through a single API.
Sonar
General-purpose search model with real-time web access and citations.
perplexity/sonar
Sonar Pro
Enhanced model for professional research with deeper web analysis.
perplexity/sonar-pro
Sonar Pro Search
Optimized for search-heavy queries with comprehensive source coverage.
perplexity/sonar-pro-search
Sonar Deep Research
Multi-step research model for complex topics requiring synthesis from multiple sources.
perplexity/sonar-deep-research
Sonar Reasoning Pro
Advanced reasoning with extended thinking for complex problems.
perplexity/sonar-reasoning-pro
Add AI Search in Seconds
Add Perplexity AI 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("What are the latest developments in AI?", {
model: "perplexity/sonar"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Related Resources
Learn how to use Perplexity and other AI models with Puter.js.
Free, Unlimited Perplexity AI API
Complete guide to using Perplexity Sonar models for AI search with Puter.js.
Getting Started with Puter.js
Learn the basics of Puter.js and start building AI-powered apps.
Free, Unlimited Gemini API
Access Google's Gemini models for AI chat and reasoning with Puter.js.