Sonar Chat Completions support ended. Keep your Sonar code.
Perplexity ended support for Sonar Chat Completions on September 27, 2026. Change https://api.perplexity.ai to https://api.specstream.ai/perplexity and the same request keeps working, with model: "sonar" as you send it today, at one flat price per answer from $0.10.
A new account gets $2 of credit, no card. Or buy 80,000 fast searches for $49, paid once.
- https://api.perplexity.ai + https://api.specstream.ai/perplexity
- $0.10
- an answer for model sonar, with no token billing
- $1
- per 1,000 searches on /perplexity/search
- $0.80
- per 1,000 pages of text
- EU
- SpecStream SAS, France, with the GDPR terms in writing
Move in five steps
About ten minutes for one call site.
- Create a SpecStream keySign up with no card. A new account gets $2 of credit.
- Change the base URLReplace
https://api.perplexity.aiwithhttps://api.specstream.ai/perplexityand send the SpecStream key as the Bearer token. - Keep your requestSend the same
messagesand the same Sonar model name you use today. - Read the reply
choices[0].message.contentholds the answer andcitationslists its source URLs, as in Sonar. Each item ofsearch_resultscarriestitle,urlandread_at. - Set the timeoutAn answer reads the live web before it writes, so allow up to 10 minutes, or send
stream: trueto show its progress as it reads.
Before and after
Sonar code written with the openai SDK, or with plain HTTP, keeps its request. The reply keeps choices and citations, and each search_results item carries title, url and read_at.
curl https://api.perplexity.ai/chat/completions \ -H "Authorization: Bearer $PERPLEXITY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "sonar", "messages": [{"role": "user", "content": "Which AI agent startups raised a seed round in November 2026?"}]}'
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["PERPLEXITY_API_KEY"],
base_url="https://api.perplexity.ai",
)
reply = client.chat.completions.create(
model="sonar",
messages=[{"role": "user", "content": "Which AI agent startups raised a seed round in November 2026?"}],
)import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.PERPLEXITY_API_KEY, baseURL: "https://api.perplexity.ai", }); const reply = await client.chat.completions.create({ model: "sonar", messages: [{ role: "user", content: "Which AI agent startups raised a seed round in November 2026?" }], });
curl https://api.specstream.ai/perplexity/chat/completions \ -H "Authorization: Bearer $SPECSTREAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "sonar", "messages": [{"role": "user", "content": "Which AI agent startups raised a seed round in November 2026?"}]}'
Each Sonar model, as it runs on SpecStream
Send the model name you use today. The price is fixed per answer and charged when it is delivered.
Every Perplexity route, and where it moves
Read on the Perplexity docs and the SpecStream API on December 4, 2026.
What you get after the move
- Every sentence traced to its pageEach cited sentence carries its source URL, the passage it cites, the read time and whether the passage supports it.
- One price per answer$0.10, $0.30 or $1, charged at delivery. No input tokens, output tokens or tool fees to add up.
- EU company and EU hostingSpecStream SAS is a French company under the CNIL, and the GDPR data processing agreement applies when you accept the terms.
Start now
Start on free credit, or prepay for production.
More on Perplexity
- Perplexity Search API migrationEvery parameter and reply field of POST /search on SpecStream.
- Sonar Deep Research after September 27Deep research reports on POST /v1/research, with a webhook when each one ends.
- Perplexity Sonar alternativesPrices and benchmark scores side by side.
- All migration guidesDrop in routes for the search and scraping APIs your code calls today.
High volume prepay and enterprise packs
Pay by company card in one Stripe checkout, at any hour, in US dollars. Each checkout takes your billing address and tax ID and sends a receipt.
Prepay $1,000
$1,200 of API credit
20% more credit than you pay, spent at list price on the Search API, the Extract API, the link graph, and Deep Search. Up to 1,200,000 fast searches. Credit never expires.
Pay $1,000 by cardEnterprise Search API pack
$3,000 for 1,000,000 searches
$3 per 1,000 searches, 40% under the $5 list price. Paid once, and Search API calls draw on the pack before your credit.
Pay $3,000 by cardNeed a signed order or an invoice to pay by transfer? Talk to sales
Questions
Something we didn't answer? Talk to a human
When did Perplexity end support for Sonar Chat Completions?
What changes in my code?
https://api.specstream.ai/perplexity takes the same POST /chat/completions body, with model: "sonar" as you send it today, and returns choices and citations as Sonar did. Each search_results item carries title, url and read_at, so code that read a result's snippet or date reads title and read_at instead.My code calls the /v1/sonar path. Where does it go?
https://api.specstream.ai/perplexity/chat/completions. Clients of the Agent API move to https://api.specstream.ai/perplexity/v1/agent or https://api.specstream.ai/perplexity/v1/responses, where effort fast and low run a quick answer, medium a standard one, and high and xhigh a deep report.How is it priced?
/perplexity/search cost $1 per 1,000 on the fast tier and $5 on the standard tier, and page text $0.80 per 1,000 pages. The search pack is 80,000 fast searches for $49, paid once, never expiring.How do I check what an answer says?
research field of the reply.Where is the data processed?
Keep your Sonar calls answering
One base URL changed. A flat price per answer from $0.10, and $2 of credit to start.