Text model
Sonar
perplexity/sonar
perplexity/sonar is a language model from Perplexity you can call on the OceanToken API at $1.00 per 1M input tokens and $1.00 per 1M output tokens, with a 127K-token context window and up to 114K output tokens; it supports image input.
At a glance
| Model ID | perplexity/sonar |
|---|---|
| Type | Text |
| Publisher | Perplexity |
| Context window | 127,072 tokens |
| Max output | 114,364 tokens |
| Input price | $1.00 per 1M tokens |
| Output price | $1.00 per 1M tokens |
| Capabilities | image input |
| Endpoint | /v1/chat/completions, /v1/responses |
| API shape | OpenAI-compatible |
| In the catalog since | 2025-01-27 |
Call it
Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.
curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "perplexity/sonar", "messages": [{"role": "user", "content": "Hello"}]}'
Compared with similar models
Text models on OceanToken closest to perplexity/sonar in price. Every price is what you pay, in US dollars, with no platform fee on top.
| Model | Publisher | Context | Price (per 1M tokens) |
|---|---|---|---|
| Sonar | Perplexity | 127,072 | $1.00 / $1.00 |
DeepSeek Chat V3 0324deepseek/deepseek-chat-v3-0324 | DeepSeek | 164K | $0.25 / $1.00 |
DeepSeek V3.1 Terminusdeepseek/deepseek-v3.1-terminus | DeepSeek | 164K | $0.27 / $1.00 |
Hermes 3 Llama 3.1 405Bnousresearch/hermes-3-llama-3.1-405b | Nous Research | 131K | $1.00 / $1.00 |
More from Perplexity
- Pplx Embed V1 0.6b
perplexity/pplx-embed-v1-0.6b - Pplx Embed V1 4B
perplexity/pplx-embed-v1-4b - Sonar Deep Research
perplexity/sonar-deep-research - Sonar Pro
perplexity/sonar-pro - Sonar Pro Search
perplexity/sonar-pro-search - Sonar Reasoning Pro
perplexity/sonar-reasoning-pro
All Perplexity models on OceanToken
Use it
Create an account All models and prices
Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.