Search-augmented answers. Sonar API for developers.
// At a glance
Free Tier
$5 credits · no card
// Free tier details
Available Models
SonarSonar Pro
Monthly Requests
$5 free credits
// Quick start
"text">-purple-400">curl https://api.perplexity.ai/chat/completions \
"text-amber-400">-H "Authorization: Bearer YOUR_PPLX_KEY" \
"text-amber-400">-H "Content">-Type: application/json" \
"text-amber-400">-d '{
"model": "sonar",
"messages": [{"role": "user", "content": "What happened in tech this week?"}]
}'
// Overview
Perplexity's Sonar API returns cited answers from the live web. Great for research agents and fact-checking.
// Pros
- Real-time web search
- Citations included
- Sonar model is fast
// Cons
- Credits expire
- Smaller context than full LLMs
// Score breakdown
Reliability (35%) (from 2m ago health check)100/100
Free Tier Generosity (30%) (computed from quota, no-CC, no-phone fields)85/100
Documentation (20%) (human rating)86/100
Popularity (15%) (GitHub stars (log-normalised), or manual baseline)88/100
Methodology: apivault.dev/methodology
// Best for
Research agentsNews summarizationFact-checking