Perplexity Sonar API pricing looks deceptively cheap on the surface. The base Sonar model bills at $1 per million input tokens and $1 per million output tokens, which reads like one of the cheapest ways to add real-time, cited web search to a product. It isn't the whole bill. Sonar, Sonar Pro, and Sonar Reasoning Pro all carry a separate per-request search fee, $5 to $14 per 1,000 requests depending on model and search depth, and on a short query that flat fee routinely outweighs the token cost several times over. We ran the real per-query math for every Sonar tier below, compared it against what a self-hosted Perplexica-style RAG stack costs on rented GPUs at 100,000 queries a month, and separated what Perplexity's API-level privacy policy actually promises from what a self-hosted search stack does and doesn't keep private.
Perplexity Sonar API Pricing in 2026: Per-Token and Per-Request Rates
Direct answer: Perplexity's Sonar family bills on two axes, not one: a per-million-token rate for input and output, and a separate per-request fee tied to how much web context the model pulls in (search_context_size: low, medium, or high). Sonar Deep Research is the exception, it drops the per-request fee for a different structure built around citation and reasoning tokens plus a per-1,000-searches charge.
Sonar, Sonar Pro, Sonar Reasoning Pro, and Sonar Deep Research Token Costs
| Model | Input | Output | Best for |
|---|---|---|---|
| Sonar | $1.00/M | $1.00/M | Quick factual queries, summaries, product comparisons |
| Sonar Pro | $3.00/M | $15.00/M | Complex queries with follow-ups, more citations |
| Sonar Reasoning Pro | $2.00/M | $8.00/M | Multi-step analysis with chain-of-thought |
| Sonar Deep Research | $2.00/M | $8.00/M | Exhaustive research reports |
Source: Perplexity Sonar API pricing docs.
Sonar Deep Research adds its own layer on top of that base rate: $2 per million citation tokens, $3 per million reasoning tokens, and $5 per 1,000 search queries, billed separately from the input/output tokens above (Perplexity pricing docs). That's a genuinely different cost model built for long, multi-step research jobs, not the high-volume single-turn lookups this post is centered on.
Sonar Pro's output rate, $15 per million tokens, is 15x the base Sonar rate and the single biggest driver of cost difference between the two tiers. If your app writes long, cited answers, that multiplier matters more than which search context tier you pick.
The Per-Request Search Fee Most Teams Miss (Low/Medium/High Context)
This is the part that catches teams off guard when they budget purely off the token price. Sonar, Sonar Pro, and Sonar Reasoning Pro each carry a flat fee per 1,000 requests, scaled by search_context_size:
| Model | Low context | Medium context | High context |
|---|---|---|---|
| Sonar | $5/1K requests | $8/1K requests | $12/1K requests |
| Sonar Pro | $6/1K requests | $10/1K requests | $14/1K requests |
| Sonar Reasoning Pro | $6/1K requests | $10/1K requests | $14/1K requests |
Source: Perplexity Sonar API pricing docs.
Per request, that's $0.005-$0.012 for base Sonar and $0.006-$0.014 for Sonar Pro and Sonar Reasoning Pro, charged regardless of how many tokens the query actually used. On a short factual lookup, where token cost might run a few tenths of a cent, this fee is usually the majority of what you're actually paying. Sonar Deep Research doesn't carry this fee structure at all; its cost scales with the $5-per-1,000-searches line instead.
Perplexity Sonar API Pricing Per Query: A Worked Example
Perplexity's Sonar API launched publicly in January 2025 as a developer product for embedding real-time, cited web search into applications (TechCrunch), and it was pitched from day one as the affordable option in the space. The per-token sticker price backs that up. The per-query total, once you add the search fee, tells a more nuanced story.
We modeled a typical grounded query: roughly 300 input tokens (the user's question plus a system prompt) and 400 output tokens (a short cited answer). Here's what that costs across models and context sizes:
| Model | Context | Token cost | Search fee | Total per query | Fee's share of cost |
|---|---|---|---|---|---|
| Sonar | Low | $0.0007 | $0.0050 | $0.0057 | 88% |
| Sonar | Medium | $0.0007 | $0.0080 | $0.0087 | 92% |
| Sonar | High | $0.0007 | $0.0120 | $0.0127 | 94% |
| Sonar Pro | Low | $0.0069 | $0.0060 | $0.0129 | 47% |
| Sonar Pro | Medium | $0.0069 | $0.0100 | $0.0169 | 59% |
| Sonar Pro | High | $0.0069 | $0.0140 | $0.0209 | 67% |
Token and fee rates from Perplexity's pricing docs; the 300-input/400-output token assumption and resulting totals are this post's own worked example, not a Perplexity-published figure.
The pattern holds across every row: on base Sonar, the search fee is 88-94% of the total cost of a query, not the token spend. That's the opposite of what a $1/M headline rate implies. Sonar Pro's picture looks better because its output tokens are priced at $15/M, so the token line grows fast enough to shrink the fee's relative share, but the fee is still close to half the bill even there. If your product fires short, high-frequency lookups (autocomplete-style search, quick fact checks, single-turn Q&A), you're paying disproportionately for the search infrastructure behind each call, not for the tokens it generates. Longer, more thorough sessions dilute that fixed cost across more tokens and look comparatively better on a per-token basis, which is worth knowing before you pick a model tier based on the token price alone.
Cost at Scale: 100K Queries a Month, Sonar API vs Self-Hosted RAG
At 100,000 queries a month, the per-query numbers above scale linearly for the API, while a self-hosted stack's cost is close to fixed regardless of how many of those queries you actually run.
| Model | Context | Monthly cost at 100K queries |
|---|---|---|
| Sonar | Low | $570 |
| Sonar | Medium | $870 |
| Sonar | High | $1,270 |
| Sonar Pro | Low | $1,290 |
| Sonar Pro | Medium | $1,690 |
| Sonar Pro | High | $2,090 |
| Sonar Reasoning Pro | Low | $980 |
| Sonar Reasoning Pro | Medium | $1,380 |
| Sonar Reasoning Pro | High | $1,780 |
Every one of those figures assumes the same 300-input/400-output-token query used above, so treat it as a directional worked example, not a quote for your specific workload.
What Self-Hosted RAG Actually Costs on GPU Cloud
In Spheron's own self-hosted AI search benchmark, an on-demand H100 PCIe instance running the full Perplexica stack, Llama 3.3 70B for synthesis, a BGE-M3 reranker, and an embedding model, cost about $1,447 a month at 100,000 queries a month, or $0.0145 per query, as of 07 May 2026 (self-host Perplexity-style AI search on GPU cloud). That's a close-to-fixed infrastructure cost: it doesn't change much whether the 100,000 queries are short lookups or long, multi-source syntheses, because you're paying for GPU-hours, not per-call fees. Adding semantic caching to that stack, with a 40-60% cache hit rate on repeated or rephrased queries, pushes effective capacity toward 250,000 queries a month on the same instance, which is the single biggest lever for cutting cost per query once you're running your own retrieval pipeline. The semantic caching for LLM inference guide covers the GPTCache and Redis vector-cache setup behind that number. If you want to size the reranker and embedding layer separately from the main LLM, the self-hosted embeddings and rerankers guide covers running TEI on its own process.
Where the Break-Even Falls
There's no single break-even query volume here; it shifts by a factor of roughly 3.5x depending on which Sonar tier and context size you're comparing against. We divided the fixed $1,447/month self-hosting cost by each model's per-query rate to get the volume at which self-hosting pulls even on pure infrastructure cost:
| Model / context | Per-query cost | Break-even volume vs $1,447/mo self-host |
|---|---|---|
| Sonar, low | $0.0057 | ~254,000 queries/month |
| Sonar, medium | $0.0087 | ~166,000 queries/month |
| Sonar Pro, medium | $0.0169 | ~86,000 queries/month |
| Sonar Pro, high | $0.0209 | ~69,000 queries/month |
Below its break-even line, the API is cheaper on pure infrastructure cost. Above it, self-hosting is. Base Sonar at low or medium context rarely loses to self-hosting on cost alone, since you'd need a quarter-million queries a month before the API costs more than a single H100 instance. Sonar Pro at medium or high context, the tier most teams reach for once they want thorough, well-cited answers, crosses over well inside a realistic production volume, somewhere in the 69,000-86,000 query range. That crossover point is also before semantic caching's effective-capacity boost is even factored in, so a cached self-hosted deployment pulls the real break-even in further still. Either way, run this math against your own model tier and query mix before assuming the API's low per-token sticker price settles the question. Live GPU pricing moves with availability; check current GPU pricing before sizing a cluster against these numbers.
Data Privacy: What Leaves Your Infrastructure With Each Sonar Query
Direct answer: Perplexity's Sonar API runs a genuine zero-data-retention policy: it doesn't store your prompts or completions and doesn't train on them, only billing metadata. A self-hosted Perplexica-style stack keeps the LLM synthesis step entirely on your own infrastructure, but the web-retrieval step still calls external search engines unless you explicitly lock it down to private sources.
Perplexity's Zero Data Retention Policy for the API
Perplexity's own documentation is direct about this: "We do not retain data sent through the Chat Completions API, and we do not use customer data to train our models or for any purpose beyond processing the immediate request" (Perplexity API Privacy & Security docs). The only data Perplexity retains from an API call is billing metadata, token counts, model used, request timestamp and duration, and API key identification, which explicitly excludes prompt and response content. That policy is backed by a SOC 2 Type II report, a 2025 HIPAA gap assessment, and a CAIQlite cloud-security questionnaire, all published at Perplexity's trust center (Perplexity API Privacy & Security docs).
It's worth being precise about scope here, because Perplexity's consumer plans work differently. On the Free, Pro, and Max tiers, AI training on your data is enabled by default and has to be manually turned off in account settings, a materially different default from the API's zero-retention-by-default policy (Strac: Perplexity data privacy). If your team is evaluating "Perplexity" for a sensitive workflow, confirm which product you're actually talking about. The API's privacy posture and the consumer app's are not the same thing, and conflating them is an easy way to misjudge your exposure.
What SearXNG/Self-Hosted Retrieval Sends Externally by Comparison
Self-hosting flips the privacy tradeoff rather than eliminating it. Run a Perplexica-style stack on your own GPU and the LLM synthesis step, the part that reads retrieved documents and writes a cited answer, never leaves your infrastructure. That's a stronger guarantee than any third-party API can make, because there's no vendor in the loop at all for that step, zero-retention policy or not.
The retrieval step is the part people assume is private and usually isn't. Perplexica's default search backend, SearXNG, is a meta-search aggregator: it forwards the user's expanded query out to Google, Bing, Brave, and DuckDuckGo and merges the results, unless you specifically configure it to use only local or private sources. So the query text itself, not the LLM's answer, still reaches those external search engines by default. It's a genuinely different exposure than the Sonar API's zero-retention policy: with Sonar, Perplexity itself doesn't retain your prompt, but the query still passes through Perplexity's infrastructure to do the search. With self-hosted SearXNG, no single vendor retains anything, but the query fans out to several external search engines you don't control the retention policy of. Neither setup is strictly more private than the other in every dimension; they're private in different places. Teams that need retrieval to stay fully internal generally point SearXNG at a private document index or an internal search API instead of the public web, which the agentic RAG infrastructure guide covers for building a retrieval layer beyond a public-web search wrapper.
When Self-Hosted RAG Beats Sonar on Answer Quality
Cost and privacy aside, there are workloads where self-hosting wins on capability, not just economics. A managed API gives you exactly the search sources and the model Perplexity chose to wire up. A self-hosted stack lets you point retrieval at your own document index (internal wikis, ticket history, proprietary datasets) instead of, or alongside, the public web, which the Sonar API has no equivalent for. You also control the reranker, the embedding model, and the exact chunking and context-window strategy, all of which matter more for domain-specific accuracy than the base LLM choice does in most RAG evaluations. And because self-hosted infrastructure cost is close to fixed rather than per-call, you can run aggressive multi-pass retrieval, re-ranking, or ensemble strategies on a query without the cost scaling with how much extra work you throw at it, something that gets expensive fast against a per-request-fee API. None of this makes self-hosting the right default; it's the right call specifically when your retrieval sources or ranking logic need to be something Sonar's fixed pipeline can't offer.
Decision Framework: Sonar API vs Self-Hosted RAG
| Use the Sonar API when | Self-host RAG when |
|---|---|
| Volume is comfortably under your model tier's break-even (roughly 70K-250K queries/month depending on tier and context size) | Volume clears that break-even for your chosen model and context size |
| You need results from the open web, not an internal document set | Retrieval needs to run against your own private index, not just public search |
| You have no infrastructure team to run and monitor a GPU-backed stack | You already operate GPU infrastructure or need one for other inference workloads anyway |
| The API's zero-retention policy and SOC 2/HIPAA documentation satisfy your compliance bar | You need retrieval itself, not just synthesis, to stay off third-party infrastructure entirely |
| You want the fastest path to shipping, with Perplexity's model and search backend already wired up | You need control over the reranker, embedding model, or chunking strategy for domain-specific accuracy |
Perplexity has scaled fast enough that this tradeoff now shows up at real volume: the company's combined products now serve more than 100 million monthly active users, per Sacra's April 2026 analysis (Sacra), it was processing roughly 780 million queries a month as of May 2025 and growing over 20% month-over-month at the time (TechCrunch), and its annualized revenue reached about $500 million by April 2026, that same Sacra analysis found. None of that changes the per-query math above, but we read it as a reasonable signal that the volumes where this decision actually matters aren't hypothetical anymore. If you're weighing a similar API-versus-self-host tradeoff against a different vendor, the Kimi API pricing vs self-hosted LLMs, GPT-6 API vs self-hosted LLMs, and Grok 4.5 API pricing vs self-hosted LLMs breakdowns run the same framework for chat and coding workloads rather than search. Spheron's docs cover instance provisioning if you're standing up your first retrieval cluster.
If your product is firing short, high-frequency Sonar queries and the per-request search fee is quietly outpacing your token spend, benchmark a Perplexica-style stack against your real query volume before your next Sonar invoice.
Frequently Asked Questions
It depends on the model and search_context_size you pick, not just the advertised per-token rate. For a typical 300-input/400-output-token query, base Sonar costs about $0.0057-$0.0127 per query depending on context size (low to high), and Sonar Pro costs about $0.0129-$0.0209 per query. The per-request search fee, not the token cost, is usually the bigger line item on short queries.
Sonar, Sonar Pro, and Sonar Reasoning Pro all charge a separate per-request search fee on top of token costs, scaled by search_context_size: $5-$12 per 1,000 requests for Sonar, and $6-$14 per 1,000 requests for Sonar Pro and Sonar Reasoning Pro. On a short query, that flat fee can be 5-10x the actual token cost, which the headline $1-$3 per million token price never signals.
At 100,000 queries a month, a Spheron H100 PCIe on-demand instance running the full Perplexica RAG stack (Llama 3.3 70B, reranker, embeddings) costs about $1,447/month, or $0.0145/query, as of 07 May 2026. Base Sonar at low or medium search context comes in cheaper than that per query, but Sonar Pro at medium or high context, or any Sonar tier at higher volume, crosses over into self-hosting being the cheaper option on pure infrastructure cost.
For the API specifically, yes: Perplexity states it does not retain prompts or responses sent through the Chat Completions API and does not use that data to train its models, backed by a SOC 2 Type II report and a 2025 HIPAA gap assessment. That is a materially stronger default than Perplexity's consumer Free/Pro/Max plans, where AI training on your queries is enabled by default and has to be manually turned off.






