Back to Models

Perplexity: Sonar

perplexity/sonar

Description

Sonar is lightweight, affordable, fast, and simple to use — now featuring citations and the ability to customize sources. It is designed for companies seeking to integrate lightweight question-and-answer features optimized for speed.

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Perplexity: Sonar (perplexity/sonar)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "perplexity/sonar",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Perplexity: Sonar model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text
  • Images

API Pricing

  • Input: 1$ / 1M tokens
  • Output: 1$ / 1M tokens

Token Limits

  • Max Output: 127,072 tokens
  • Max Context: 127,072 tokens

Subscription Tiers

  • free
  • pro
  • ultimate