pe
Perplexity: Sonar
perplexity/sonar
AvailablePerplexitytext inimage intext out
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...
Context
127K
tokens in
Max output
114K
tokens out
Price
$1.00 / $1.00
per 1M in / out
Quick start
curl https://api.token265.com/v1/chat/completions \
-H "Authorization: Bearer ${OPENROUTER_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity/sonar",
"messages": [{"role": "user", "content": "hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.token265.com/v1", api_key="sk-...")
client.chat.completions.create(
model="perplexity/sonar",
messages=[{"role": "user", "content": "hello"}],
)Supported parameters
frequency_penaltymax_tokenspresence_penaltytemperaturetop_ktop_pweb_search_options