> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/migrate/perplexity-sonar. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

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

[Get an API key](https://specstream.ai/signup?src=migrate-perplexity-sonar&returnTo=%2Fworkspace%2Fsearch)[See the code](https://specstream.ai/migrate/perplexity-sonar.md#code)

A new account gets $2 of credit, no card. [Or buy 80,000 fast searches for $49, paid once.](https://specstream.ai/deals.md#packs)

The whole change: one base URLCopy

```
- 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 4`choices[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 curlCopy

```
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 PythonCopy

```
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 TypeScriptCopy

```
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?" }],
});
```

curlPythonTypeScriptSearch API

After: the same request body, a new address and keyCopy

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

-   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.](https://specstream.ai/trust-center.md)

## Start now

Start on free credit, or prepay for production.

-   [Start with $2 of creditNo card. It covers 2,000 fast searches, and the key works on the API and over MCP.](https://specstream.ai/signup?src=migrate-perplexity-sonar&returnTo=%2Fworkspace%2Fsearch)
-   [$1,000 prepay packPay once by card and get $1,200 of credit. It does not expire.](https://buy.stripe.com/7sY3cn57l0jxedO9EmbAs0c)
-   [$5,000 prepay packFor production volume. Pay once by card and search from the same balance.](https://buy.stripe.com/aFadR12Zd1nB4De8AibAs0b)

## More on Perplexity

-   [Perplexity Search API migrationEvery parameter and reply field of POST /search on SpecStream.](https://specstream.ai/migrate/perplexity.md)
-   [Sonar Deep Research after September 27Deep research reports on POST /v1/research, with a webhook when each one ends.](https://specstream.ai/migrate/sonar-deep-research.md)
-   [Perplexity Sonar alternativesPrices and benchmark scores side by side.](https://specstream.ai/alternatives/perplexity-sonar.md)
-   [All migration guidesDrop in routes for the search and scraping APIs your code calls today.](https://specstream.ai/migrate.md)

## 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](https://buy.stripe.com/7sY3cn57l0jxedO9EmbAs0c)

### 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](https://buy.stripe.com/cNi8wHbvJ0jxglW9EmbAs0d)

Need a signed order or an invoice to pay by transfer? [Talk to sales](https://specstream.ai/talk-to-a-human?kind=sales)

## Questions

Something we didn't answer? [Talk to a human](https://specstream.ai/talk-to-a-human.md)

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.

[Get an API key](https://specstream.ai/signup?src=migrate-perplexity-sonar&returnTo=%2Fworkspace%2Fsearch)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
