Perplexity: Sonar · fastrouter
Sonar is a lightweight, cost-effective non-reasoning search model built for delivering fast, grounded answers through real-time web search. With a context length of 128k, it is optimized for quick lookups and straightforward Q&A tasks, making it ideal for users who need immediate, reliable information without extensive processing. Sonar provides answers backed by citations, ensuring transparency while maintaining speed and low cost. Typical use cases include summarizing books, TV shows, or movies, looking up definitions or quick facts, and browsing up-to-date content across categories like news, sports, health, and finance. Its efficiency and accuracy make it well-suited for everyday information needs.
Input, $/1M $1.00
Output, $/1M $1.00
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://go.fastrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "perplexity/sonar", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://go.fastrouter.ai/api/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "perplexity/sonar",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://go.fastrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "perplexity/sonar",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Request (JSON)
{
"model": "perplexity/sonar",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Response (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "perplexity/sonar",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Afastrouter%7Cperplexity/sonar, prices checked 2026-11-04; seller's page: https://fastrouter.ai/models/perplexity/sonar
Technical details
ID: offer:fastrouter|perplexity/sonar