Perplexity: Sonar: AI model
Sonar is a lightweight, search-grounded question-answering model from Perplexity. Reachable from inside Iran through Hormouz.
- Context window:
- 127,072 tokens
- Input:
- $1/1M tokens
- Output:
- $1/1M tokens
- Type:
- text, image
- Vision
- Streaming
Sonar is Perplexity's fast, affordable answer engine: it pairs a compact language model with live web search and returns answers with inline citations. It is tuned for speed and low cost rather than deep reasoning, which makes it a natural fit for chat, help-desk and lightweight lookup features.
Sonar is a good fit for fast Q&A, chatbots with citations, and lightweight retrieval features. It supports image input. The model works with a context window of about 127K tokens, so it comfortably handles long inputs. It is served through Hormouz behind an OpenAI-compatible API. Just point your base URL at Hormouz and drop in a Hormouz key, and existing OpenAI SDK code runs unchanged.
Pricing is usage-based: $1 per million input tokens and $1 per million output tokens, billed only for what you use. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.
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...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity/sonar",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Perplexity |
|---|---|
| Type | Text, Image |
| Context window | 127,072 tokens |
| Pricing | $1.00/M in · $1.00/M out |
| API | Chat Completions |
| Capabilities | Streaming · Vision |
Benchmarks
Reasoning
Source: Artificial Analysis
Code example
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity/sonar",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="perplexity/sonar",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "perplexity/sonar",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Perplexity: Sonar API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Perplexity: Sonar and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Sonar cost?
- Billing is usage-based: $1 per million input tokens and $1 per million output tokens. There is no fixed monthly fee. You pay only for what you use.
- How do I access Sonar from inside Iran?
- Create a Hormouz account and generate an API key. Hormouz provides a stable path to the model from inside Iran, with no foreign credit card or circumvention tooling required.
- Is Sonar compatible with OpenAI code?
- Yes. Hormouz exposes an OpenAI-compatible API. Change the base URL to Hormouz and swap in your Hormouz key. Your existing SDKs and code run without a rewrite.
- What context window and capabilities does Sonar have?
- Sonar works with a context window of about 127K tokens. It also accepts image input. That makes it suitable for fast Q&A, chatbots with citations, and lightweight retrieval features.
- What is Sonar good for?
- It is best suited to fast Q&A, chatbots with citations, and lightweight retrieval features.
- Which provider serves Sonar on Hormouz?
- Hormouz is the provider you connect to and bill through. It routes your request to the model and handles access, billing and stable connectivity from inside Iran on your behalf.
Updated 2026-10-13