perplexity logo
perplexity

Perplexity: Sonar

Source description (English)

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...

Overview

Model specifications

Context
127,072 tokens
Maximum output
114,364 tokens
Architecture
text+image->text
Tokenizer
Other
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$1
per 1M tokens
Output
$1
per 1M tokens
Web search
$5
per 1,000 calls
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"perplexity/sonar","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
textimage
Output
text
API

Supported API parameters

frequency_penaltymax_tokenspresence_penaltytemperaturetop_ktop_pweb_search_options
Available providers

1 Provider

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Perplexity

Not provided
Context
127K
Maximum output
114K
Input
$1
Output
$1
Cache read
Not provided
Cache write
Not provided
perplexity

4 models

All models