Skip to the page

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.

The whole change: one base URL
- 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 keyStep 1Sign up with no card. A new account gets $2 of credit.
  • Change the base URLStep 2Replace https://api.perplexity.ai with https://api.specstream.ai/perplexity and send the SpecStream key as the Bearer token.
  • Keep your requestStep 3Send the same messages and the same Sonar model name you use today.
  • Read the replyStep 4choices[0].message.content holds the answer and citations lists its source URLs, as in Sonar. Each item of search_results carries title, url and read_at.
  • Set the timeoutStep 5An answer reads the live web before it writes, so allow up to 10 minutes, or send stream: true to 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.

Before: Perplexity Sonar with curl
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?"}]}'
Before: Perplexity Sonar in Python
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?"}],
)
Before: Perplexity Sonar in TypeScript
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?" }],
});
After: the same request body, a new address and key
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.

Model you send
What runs
Price
sonar
Quick answer
$0.10 an answer
sonar-pro, sonar-reasoning, sonar-reasoning-pro
Standard answer
$0.30 an answer
sonar-deep-research
Deep research report
$1 a report

Every Perplexity route, and where it moves

Read on the Perplexity docs and the SpecStream API on December 4, 2026.

Perplexity
SpecStream
SpecStream price
Sonar Chat Completions
POST /chat/completions, Sonar models
POST /perplexity/chat/completions, the same body
A flat price per answer, from $0.10
Agent API
POST /v1/agent with effort
POST /perplexity/v1/agent or /perplexity/v1/responses
A flat price per answer, from $0.10
Search API
POST /search
POST /perplexity/search
$1 per 1,000 searches of up to 10 results, $5 with specstream_speed=default
Page text
fetch_url tool
POST https://api.specstream.ai/v1/extract
$0.80 per 1,000 pages

What you get after the move

Start now

Start on free credit, or prepay for production.

More on Perplexity

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 card

Enterprise 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 card

Need 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?
On September 27, 2026. Perplexity no longer supports asynchronous Sonar requests, and it is rewriting synchronous and streaming ones into Agent API requests model by model, billed per token plus a fee for each tool call.
What changes in my code?
The base URL and the key. 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?
Send the same body to 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?
One flat price per answer, charged when it is delivered: $0.10 quick, $0.30 standard and $1 deep, with no token billing. Ranked results on /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?
Each cited sentence carries its source URL, the passage it cites, the time the page was read, and whether the passage supports the sentence, in the research field of the reply.
Where is the data processed?
SpecStream SAS is a French company under the GDPR. Requests and answers are stored in the European Union, and the data processing agreement applies when you accept the terms. The details are in the trust center.

Keep your Sonar calls answering

One base URL changed. A flat price per answer from $0.10, and $2 of credit to start.