Perplexity Sonar API

Perplexity's Perplexity Sonar, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.

Facts

Model name
perplexity-sonar
Maker
Perplexity
Context window
919.3K tokens
Input price
$2.400 per million tokens
Output price
$2.400 per million tokens
Providers
1 independent provider
Regions
global

Providers

Scores

Scores: Artificial Analysis (https://artificialanalysis.ai/)

Request

curl https://router.inference.ai.exchange/v1/chat/completions \
  -H "Authorization: Bearer $LIQUID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "perplexity-sonar",
    "messages": [{"role":"user","content":"Say hello."}]
  }'

Questions

What is Perplexity Sonar?
Perplexity Sonar is a model from Perplexity.
How much does Perplexity Sonar cost?
Offers now ask $2.400 per million input tokens and $2.400 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
What is the context length of Perplexity Sonar?
The largest offer takes 919,327 input tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
What can Perplexity Sonar do?
Its providers list Documents, Vision, Text.
What inputs and outputs does Perplexity Sonar support?
Text · Files · Images → Text.
Which providers serve Perplexity Sonar?
1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.
How do I call Perplexity Sonar?
Send "perplexity-sonar" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
When was Perplexity Sonar listed?
The exchange first listed it on 10/17/2026. This is not its release date.

Related pages