Sonar

Perplexityperplexity/sonarProviders: 1
Inputi$1per 1M tokens
Outputi$1per 1M tokens
Contexti127K127,072 tokens
ReleasedJan 27, 2025Max output: 114K

About this model

Sonar is an AI model from Perplexity, made available through the API on January 27, 2025. It can read up to 127,072 tokens in one request, roughly 238 pages of text, and write up to 114,364 tokens in a single answer. Besides text, it accepts images as input.

Through the API it costs $1 per million input tokens and $1 per million output tokens. Its pricing sits in the middle of the market.

Quality scores

Rankings →

Not rated yet. Independent test results usually appear a few weeks after a model is released.

Benchmark data: Epoch AI, licensed CC BY 4.0

Where to use it

Companies that serve this model through an API: 1. Prices per million tokens, cheapest first.

ProviderInputiOutputiContextiUptime (24 h)i
PerplexityOfficial
$1$1127K100.0%

Availability and prices come from OpenRouter’s public API and are refreshed daily. Uptime is the share of successful requests over the last 24 hours. Some providers run a compressed version of open models (fp8, int4), which is cheaper but can be slightly less accurate.

Use it in your code

Call Sonar through OpenRouter’s OpenAI-compatible API: create a key on openrouter.ai, then run one of these examples.

curl 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! What can you do?"}]}'

The same code works with every model on this site: only the model ID changes. Many labs also offer their own API and SDK.

What it costs in practice

  • 1,000 chat replies
    ≈ 500 tokens in, 300 out each
    $0.80
  • Summarise a 100-page document
    ≈ 50,000 tokens in, 1,000 out
    $0.051
  • An app with 10,000 requests a day for a month
    ≈ 1,000 tokens in, 400 out each
    $420

Cost calculator →

Similar-priced alternatives

ModelInputiOutputiContexti
InklingThinking Machines Lab
$1$4.05512KCompare with ⇄
$1$2256KCompare with ⇄
$1$3256KCompare with ⇄
$1$5200KCompare with ⇄
Hermes 4 405BNous Research
$1$3128KCompare with ⇄
$1.03$6.16256KCompare with ⇄

News about Perplexity

See all →

Frequently asked questions

How much does Sonar cost?
Sonar costs $1 per million input tokens and $1 per million output tokens through the API. For example, 1,000 chat replies of about 500 tokens in and 300 out cost around $0.80.
What is the context window of Sonar?
Sonar can read up to 127,072 tokens in one request, about 238 pages of text. It can write up to 114,364 tokens in a single answer.
Is Sonar open source?
No. Sonar is a closed model: its weights are not published, so you use it through Perplexity’s own apps and API, or through cloud providers.
Who makes Sonar?
Sonar is made by Perplexity. It became available through the API on January 27, 2025.
Can Sonar read images?
Yes. Besides text, it accepts images as input.
What are the alternatives to Sonar?
Models with a similar price from other companies include Inkling, Grok Build 0.1 and Relace Search. You can compare them side by side on this page.