# Perplexity: Sonar

Sonar is a language model from Perplexity. It reads and writes text.

- **Model id:** `opencheap/sonar`
- **Price per 1M tokens:** $1.05 input / $1.05 output
- **Context:** 127K tokens, 114K max output

## Providers

1 provider. Prices are per 1M tokens. As of 2026-12-04 12:05 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Perplexity · quantization unknown | $1.05 | $1.05* | $1.05 | 1.58 s | 96 tok/s | 100 % | 127K | 114K |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Perplexity:** `temperature`, `top_p`, `top_k`, `frequency_penalty`, `presence_penalty` (stop, tools not confirmed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/sonar#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/sonar`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/sonar", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/sonar",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/sonar",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Sonar

Sonar costs from $1.05 per 1M input tokens and $1.05 per 1M output tokens on OpenCheap. Its list price is $1.00 per 1M input tokens and $1.00 per 1M output tokens; on a typical 1 : 3 input-to-output mix it costs 5 % more here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.012, and 1,000 such requests about $11.55. Prices as of 2026-12-04 12:01 UTC.

One provider serves Sonar on OpenCheap today. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 127K tokens (127,072), room for roughly 95,000 words of English in one request.

Sonar is one of [7 Perplexity models](https://opencheap.si/models/lab/perplexity) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Sonar API cost per 1M tokens?

Sonar costs from $1.05 per 1M input tokens and $1.05 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 12:01 UTC.

### What does one Sonar request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.012, and 1,000 such requests about $11.55. Every answer reports its own cost in usage.cost.

### Is Sonar cheaper on OpenCheap than its list price?

Its list price is $1.00 per 1M input tokens and $1.00 per 1M output tokens; on a typical 1 : 3 input-to-output mix it costs 5 % more here.

### Which providers serve Sonar?

One provider serves Sonar on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Sonar?

Its context window is 127K tokens (127,072), room for roughly 95,000 words of English in one request.

### How do I call the Sonar API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/sonar. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Perplexity

- [Sonar Deep Research](https://opencheap.si/models/sonar-deep-research) (`sonar-deep-research`): $2.10 / $8.40 per 1M · 128K context
- [Sonar Pro](https://opencheap.si/models/sonar-pro) (`sonar-pro`): $3.15 / $15.75 per 1M · 200K context
- [Sonar Pro Search](https://opencheap.si/models/sonar-pro:search) (`sonar-pro:search`): $3.15 / $15.75 per 1M · 200K context
- [Sonar Reasoning Pro](https://opencheap.si/models/sonar-reasoning-pro) (`sonar-reasoning-pro`): $2.10 / $8.40 per 1M · 128K context
- [Decider Flash V1.2](https://opencheap.si/models/pplx-decider-flash-v1.2) (`pplx-decider-flash-v1.2`): $0.012 per 1M input · 262K context
- [Decider V1.2](https://opencheap.si/models/pplx-decider-v1.2) (`pplx-decider-v1.2`): $0.023 per 1M input · 262K context

[All 7 Perplexity models](https://opencheap.si/models/lab/perplexity)

## Similar models

- [Kimi K2.6](https://opencheap.si/models/kimi-k2.6): Moonshot · 262K context · $0.32 / $1.57 per 1M · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-kimi-k2.6)
- [Kimi K3](https://opencheap.si/models/kimi-k3): Moonshot · 1M context · $1.57 / $0.94 per 1M · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-kimi-k3)
- [Aion-2.0](https://opencheap.si/models/aion-2.0): AionLabs · 131K context · $0.75 / $1.50 per 1M · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-aion-2.0)
- [GLM 5 Turbo](https://opencheap.si/models/glm-5-turbo): Zhipu · 204K context · $0.36 / $1.20 per 1M, 6 % cheaper · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-glm-5-turbo)
- [ERNIE 4.5 Turbo VL](https://opencheap.si/models/ernie-4.5-turbo-vl): Baidu · 139K context · $0.40 / $1.20 per 1M · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-ernie-4.5-turbo-vl)
- [DeepSeek V3.1 Terminus](https://opencheap.si/models/deepseek-v3.1-terminus): DeepSeek · 163K context · $0.28 / $1.05 per 1M, 18 % cheaper · [Compare with Sonar](https://opencheap.si/compare/sonar-vs-deepseek-v3.1-terminus)

[Compare Sonar with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/sonar · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
