perplexity/sonar/Released Jan 2025

Perplexity Sonar

Fast web-grounded search, built on Llama

Text
Token-based
Input$2.00 / 1M tokens
Output$2.00 / 1M tokens

Ready to build with Perplexity Sonar?

Sign in to grab your API key and start making requests.
bash
curl -sSf -X POST https://hub.oxen.ai/api/ai/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OXEN_API_KEY" \
    -d '{
  "model": "sonar",
  "messages": [
    {
      "role": "user",
      "content": "Try sending a message."
    }
  ]
}'