Skip to content

Specs

Model IDperplexity/sonar
Context window127K tokens
Max output114K tokens
Input price$1.00 / 1M tokens
Output price$1.00 / 1M tokens
Inputs → outputsText, Image → Text
Open weightsNo

How to use Sonar in your app

The quickest way is through an API gateway such as OpenRouter, which uses the same format as the OpenAI API. Create a key, then send a request with the model ID perplexity/sonar:

curl https://openrouter.ai/api/v1/chat/completions \ -H "Authorization: Bearer $OPENROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "perplexity/sonar", "messages": [{"role": "user", "content": "Explain this in simple words..."}] }'

Prefer no code? Many tools in our AI tools directory run on models like this one.

More models from Perplexity

Sonar Pro SearchPerplexity

Exclusively available on the OpenRouter API, Sonar Pro's new Pro Search mode is Perplexity's most advanced agentic search system. It is designed for deeper reasoning and analysis. Pricing is based...

Context 200KIn $3.00 · Out $15.00 /1M
Sonar Reasoning ProPerplexity

Note: Sonar Pro pricing includes Perplexity search pricing. See [details here](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) Sonar Reasoning Pro is a premier reasoning model powered by DeepSeek R1 with Chain of Thought (CoT). Designed for...

Context 128KIn $2.00 · Out $8.00 /1M
Sonar ProPerplexity

Note: Sonar Pro pricing includes Perplexity search pricing. See [details here](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like...

Context 200KIn $3.00 · Out $15.00 /1M
Sonar Deep ResearchPerplexity

Sonar 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...

Context 128KIn $2.00 · Out $8.00 /1M

Questions about Sonar

What is Sonar?

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...

How big is the context window of Sonar?

Sonar can read up to 127,072 tokens in one request, roughly 95,304 words.

How much does Sonar cost?

Through OpenRouter, Sonar costs about $1.00 / 1M tokens for input and $1.00 / 1M tokens for output. Prices change, so check before large jobs.

Is Sonar open source?

Sonar does not have downloadable weights. You use it through Perplexity or an API provider.

What can Sonar take as input?

Sonar accepts text, image and produces text.

Latest AI models

MiniMax: MiniMax M3.1 Flash (free)Minimax

MiniMax-M3.1-Flash is a multimodal model from MiniMax. Compared with M3, it delivers significant improvements across multiple benchmarks, particularly in complex agentic tasks, coding, and cybersecurity. It is built for complex,...

Context 1M
New
DeepSeek: DeepSeek V4.1 Flash 1017Deepseek

DeepSeek V4.1 Flash 1017 is the October 17, 2026 snapshot of DeepSeek V4.1 Flash, served by DeepSeek under the `deepseek-flash` API model name. V4.1 Flash is a sparse mixture-of-experts model...

Context 1MIn $0.15 · Out $0.60 /1M
NewOpen weights
Elorian: GlimpseElorian

Glimpse is a multimodal visual reasoning model from Elorian, built for visual understanding and complex visual reasoning in the physical world. It reasons directly over images and video rather than...

Context 262KIn $0.60 · Out $3.00 /1M
New
XingChen: Xing4.0 29B A4B (free)Xingchen Agi

Xing4.0-29B-A4B is an open-weight mixture-of-experts language model from China Telecom's AI team (TeleAI) and the successor to the TeleChat series. It has 29B total parameters with 4B active per token...

Context 262K
NewOpen weights
Reflection: Beam 1.0 501B A23BReflection

Beam 1.0 is Reflection's open-weight reasoning model for coding and long-horizon agentic workflows. It uses a sparse mixture-of-experts architecture with 501B total and 23B active parameters per token, and a...

Context 1MIn $0.30 · Out $1.00 /1M
NewOpen weights
Inception: Mercury 3Inception

Mercury 3 is a diffusion-based language model from Inception, and the lab's most capable model to date. It is suited for agentic workflows and real-time applications where latency compounds, such...

Context 1MIn $0.10 · Out $0.35 /1M
New

Specs and prices come from OpenRouter and the provider, and are refreshed daily. Last checked 27 Jan 2025.

Type what you want to do — e.g. “edit video”, “write emails”, “Claude”. Press Enter to see all results.

Suggest an AI

Paste a name and a website. The autopilot checks it isn't listed yet, scans it for safety, reads the site and sorts it into the right category.

Chat with us