Back to Models

Sonar

perplexityperplexity/sonar

Perplexity's search-augmented model. Cost-effective grounded answers with web citations.

Context Length
128K
Max Output
8K
Input Price
$1.20/ 1M tokens
Output Price
$1.20/ 1M tokens

Modalities

texttext

Pricing Breakdown

TypeRate
Input$1.20 / 1M tokens
Output$1.20 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_pstop

API Usage Examples

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "perplexity/sonar",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'