Sonar

Perplexity chatvisiontool_use

API ID: perplexity/sonar

Input Price
$1.00
/1M tokens
Output Price
$1.00
/1M tokens

About Sonar

Sonar is Perplexity's efficient search-augmented model, providing real-time web search capability at accessible pricing. As the standard tier of Perplexity's search models, it delivers accurate, cited responses for general queries while optimizing for cost and speed. Sonar actively searches the internet when needed, providing current information with source attribution. The model excels at factual queries, basic research, and questions requiring recent information. It features intelligent search triggering that balances accuracy with efficiency. Sonar is ideal for high-volume applications where search-augmented responses add value without premium pricing. For developers building AI assistants that need occasional access to current information, Sonar provides practical search capability without the cost of flagship models. It's particularly valuable for customer support, general knowledge assistants, and applications serving users who expect accurate, current responses.

๐Ÿ’ฐ
Price Ranking
#796 lowest price among 950 Chat models

Model Specifications

Context Length
127k
Max Output
โ€”
Release Date
2025-01-27
Capabilities
chat vision tool_use
Input Modalities
textimage
Output Modalities
text

Best For

  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.75
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$24.00
/month
1000 tickets/day, ~800 tokens each

Perplexity Model Lineup

Compare all models from Perplexity to find the best fit

Model Input Output Context Capabilities
Sonar Current Free Free 127k chat vision tool_use
Llama3 Sonar 70B Online Free Free 28k chat
Llama3 Sonar 70B Online Free Free 28k chat
Llama3 Sonar 8B Online Free Free 28k chat
Llama3 Sonar 8B Online Free Free 28k chat
Llama3 Sonar 8B Free Free 33k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Other Morph V3 Fast
Input: $0.80
Output: $1.20
Context: 82k
Other Llemma 7b
Input: $0.80
Output: $1.20
Context: 4k
Other CodeLLaMa 7B Instruct Solidity
Input: $0.80
Output: $1.20
Context: 4k
OpenAI GPT-3.5 Turbo
Input: $0.50
Output: $1.50
Context: 16k

๐Ÿš€ Quick Start

Get started with Sonar API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="perplexity/sonar",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)