Try Sonar
Generate with Sonar right here. Verify your email to start with free credits.
Specifications
Context window
127K tokens
Max output
114K tokens
Input price
$1.50 / 1M tokens
Output price
$1.50 / 1M tokens
Benchmarks
How Sonar scores on public benchmarks. Each card links to the benchmark explainer and to the original source.
Compare against every model in the full benchmark matrix.
Capabilities
Vision input
Accepts images alongside text, so you can prompt with pictures and screenshots.
Use Sonar through the API
The model id is perplexity/sonar. Requests bill your GenMagic balance at the price above, and each response reports what it cost.
curl https://genmagic.co/api/v1/chat/completions \
-H "Authorization: Bearer $GENMAGIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity/sonar",
"messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
}'from openai import OpenAI
client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")
resp = client.chat.completions.create(
model="perplexity/sonar",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)From an AI agent, call generate_text with "model": "perplexity/sonar" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.
Use Sonar in n8n
- In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
- Set Resource to Text and Operation to Generate.
- In Model Name or ID, pick Perplexity: Sonar, or enter
perplexity/sonaras an expression. - Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.
Ready-to-import workflows that already use the node are on GenMagic for n8n.
Similar-priced text models from other providers
Other text models GenMagic runs at a comparable price, on the same balance and API key.
| Model | Provider | Price | Context |
|---|---|---|---|
| Perplexity: Sonar (this model) | Perplexity | $1.50 in / $1.50 out per 1M tokens | 127K |
| Mistral: Mistral Large 3 2512 | Mistral AI | $0.75 in / $2.25 out per 1M tokens | 262K |
| Morph: Morph V3 Fast | Morph | $1.20 in / $1.80 out per 1M tokens | 262K |
| OpenAI: GPT-4.1 Mini | OpenAI | $0.60 in / $2.40 out per 1M tokens | 1M |
| Qwen: Qwen3.8 27B | Qwen | $0.23 in / $2.81 out per 1M tokens | 1M |
| Relace: Relace Apply 3 | Relace | $1.27 in / $1.88 out per 1M tokens | 256K |
More from Perplexity
All 5 Perplexity modelsPerplexity: Sonar Pro Search
TextSonar Pro's new Pro Search mode is Perplexity's most advanced agentic search system. It is designed for deeper reasoning and analysis.
View modelPerplexity: Sonar Reasoning Pro
TextSonar Reasoning Pro is a premier reasoning model powered by DeepSeek R1 with Chain of Thought (CoT). Designed for...
View modelPerplexity: Sonar Pro
TextFor enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like...
View modelPerplexity: Sonar Deep Research
TextSonar Deep Research is a research-focused model designed for multi-step retrieval, synthesis, and reasoning across complex topics. It autonomously searches, reads, and evaluates sources, refining its approach as it gathers...
View modelPrice and listing history
Every change GenMagic has recorded for Sonar since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.
| Date | Change | Before | After |
|---|---|---|---|
| Nov 1, 2026 | Price up 36% | $1.10 in / $1.10 out per 1M tokens | $1.50 in / $1.50 out per 1M tokens |
Where these figures come from
- Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
- Specs and description: as Perplexity publishes them, checked daily.
- Benchmarks: 1 scores from Epoch AI, re-read daily. Each score above links to its source.
- Changes: the data on this page last changed on Nov 1, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.
Generate with Sonar today
One GenMagic plan unlocks Sonar and every other model across text, image, audio, and video.