Skip to the page

Perplexity Search API compatible

Change the address, keep the code.

SpecStream answers Perplexity's POST /search at https://api.specstream.ai/perplexity in Perplexity's own JSON, at $1 per 1,000 fast searches ($0.001 a call for up to 10 results; $5 per 1,000 default Search API) against Perplexity's $5 per 1,000. SpecStream is state of the art on the live web, setting a new bar in research, extraction and search. On WideSearch it outscores every search API at under a tenth of the cost, with 64.0 item F1 on all 200 tasks against 57.6 for Parallel and 56.1 for Exa (published scores, Sep 9, 2026). It scores 99 on SimpleQA Verified, and its other published scores include AA-Omniscience 82.67% (ahead of Keenable and Exa at 73% and Perplexity at 72%), SurfBench v2 84.6 (ahead of Perplexity at 80.4, Exa at 77.9 and Parallel at 76.6), webcode-highlights 87.15% (ahead of Parallel at 85.6%), WideSearch 200x4 (7.00% Avg@4 success rate, 57.32% Avg@4 item F1), 66.7% on Seal-0, 71.26% on Seal-Hard, 60.7% on FinSearchComp Global T3, 88.51% on TRACE Extract v6, 0.7812 on search-provider-bench Extract, 0.914 on WCXB, 0.971 on Scrapinghub, and 40 of 40 on scrapingbench (benchmarks). It ties for first on cloro FreshQA at 84.9% and scores 90.78% on FRAMES, ahead of Tongyi DeepResearch.

Every line below was measured on production on November 10, 2026 with the perplexityai Python SDK 0.46.1.

The switch is one line: base_url="https://api.specstream.ai/perplexity" in place of https://api.perplexity.ai, and a SpecStream key as the Bearer token. Your code reads results[].title, url, snippet and date as before.

A page text budget costs nothing extra, and new accounts get $2 of credit.

New accounts get $2 of credit, no card. It covers 2,000 searches.

Monthly credit plans with higher RPM and invoice receipts: Starter ($49/mo), Growth ($199/mo), or Scale ($499/mo). Try the 1-line converter and savings calculator.

Perplexity Search API to SpecStream, parameter by parameter and field by field

SpecStreamPerplexity Search API
AddressPOST https://api.specstream.ai/perplexity/searchPOST https://api.perplexity.ai/search
The keyA SpecStream key as Authorization: BearerA Perplexity key as Authorization: Bearer
`max_results`1 to 20 for web search, 10 when you send none, and up to 50 with search_type people. 21 on a web search gets Perplexity's 4221 to 20, default 10
`query`A string, or a list that holds one query. A list of two or more gets a 422 that asks for one query per callA string or an array of strings
Filterssearch_domain_filter (a - before a domain leaves it out), search_recency_filter, search_after_date_filter and search_before_date_filter as MM/DD/YYYY. Another date form gets a 422The same filters, with dates as MM/DD/YYYY
Page textmax_tokens_per_page and max_tokens fill each snippet with the page's text, cut to the budget, at no extra costmax_tokens and max_tokens_per_page leave the price as it is
The replyid, results[] with title, url, snippet and date when the page has one, and server_time with display_server_time. last_updated is always nullresults[] with title, url, snippet, date and last_updated, plus id and server_time
ErrorsPerplexity's 422 body {"detail": [{"loc", "msg", "type"}]}. An empty balance answers 402. A busy call answers 429 with Retry-AfterBilled per successful request. An empty balance can return 402
Price per 1,000 searches$1 for up to 10 results, with page text. 20 results cost $0.0022 a call$5.00 per 1,000 successful requests, and Fast Search $1.00 per 1,000. A reply with no results is billed
Calls a minuteNo limit per key and no daily limit50 query units per second, the same on every usage tier
Free to start$2 of credit, no card, which covers 2,000 searchesPrepaid credits, with auto top-up when the balance runs low

The Perplexity Search API reference, on SpecStream

What else Perplexity Search API users price

How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

3-line swap from Perplexity Search API to SpecStream

1. Create a key in the workspace. New accounts get $2 of credit, no card (2,000 fast searches or 400 default searches).

2. Swap the base address in curl (https://api.perplexity.ai to https://api.specstream.ai/perplexity):

# Before (Perplexity Search API)
curl https://api.perplexity.ai/search \
  -H "Authorization: Bearer $PERPLEXITY_API_KEY" -H "Content-Type: application/json" \
  -d '{"query": "open source vector databases", "max_results": 10}'

# After (SpecStream: $1 per 1,000 fast searches)
curl https://api.specstream.ai/perplexity/search \
  -H "Authorization: Bearer $SPECSTREAM_API_KEY" -H "Content-Type: application/json" \
  -d '{"query": "open source vector databases", "max_results": 10}'

3. In Python (official perplexityai SDK):

# Before
from perplexity import Perplexity
client = Perplexity(api_key=os.environ["PERPLEXITY_API_KEY"])

# After (change base_url and api_key)
from perplexity import Perplexity
client = Perplexity(api_key=os.environ["SPECSTREAM_API_KEY"], base_url="https://api.specstream.ai/perplexity")
search = client.search.create(query="open source vector databases", max_results=10)

4. In TypeScript:

// Before: const BASE = "https://api.perplexity.ai";
// After:
const BASE = "https://api.specstream.ai/perplexity";
const res = await fetch(`${BASE}/search`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.SPECSTREAM_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ query: "open source vector databases", max_results: 10 }),
});
const data = await res.json();

5. Over MCP (Claude, Cursor, VS Code, ChatGPT):

// MCP client config (Claude, Cursor, VS Code, ChatGPT, Windsurf)
{
  "mcpServers": {
    "specstream": {
      "url": "https://api.specstream.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_SPECSTREAM_API_KEY" }
    }
  }
}
// Then call tool: search_web({"q": "open source vector databases"})

Read 402 as an empty balance and 429 as retry after Retry-After. See Companies that name Perplexity as a sub-processor or test queries live in our Web search tester.

Starter code: specstream/tavily-exa-firecrawl-dropin sends one query through the Tavily, Exa, Firecrawl, SerpApi, Brave, Serper, Perplexity and Bing routes, each in its own JSON, and times each route. For agents, specstream/specstream-mcp-starter holds the configs that connect Claude, Cursor, Windsurf, Codex and ChatGPT to the SpecStream MCP server. Starter at $49 a month adds $49 of API credit and 5,000 ready list rows a month, by card with only an email.

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

Frequently asked questions

Something we didn't answer? Talk to a human

Is there a Perplexity Search API compatible API?
Yes. SpecStream answers Perplexity's POST /search at https://api.specstream.ai/perplexity in Perplexity's JSON, checked on production on November 10, 2026, for $0.001 a search of up to 10 results.
How do I migrate from the Perplexity Search API?
Change one line: set base_url to https://api.specstream.ai/perplexity (or PERPLEXITY_BASE_URL) and use a SpecStream key. The request body and the code that reads results[] stay as they are.
How much does the Perplexity Search API cost?
Perplexity charges $5.00 per 1,000 successful requests, and Fast Search $1.00 per 1,000, with a reply that has no results billed. SpecStream charges $1 per 1,000 searches of up to 10 results, page text included.
Which apps and SDKs take the SpecStream address for Perplexity Search API?
Open WebUI: choose the web search engine perplexity_search and set Perplexity Search API URL (PERPLEXITY_SEARCH_API_URL) to the whole address, https://api.specstream.ai/perplexity/search, with your SpecStream key in the engine's key field. LiteLLM 1.108.4: set PERPLEXITY_API_BASE to https://api.specstream.ai/perplexity and put your SpecStream key in PERPLEXITYAI_API_KEY. The call stays litellm.search(search_provider="perplexity"). LangChain, langchain-perplexity 1.4.2: PerplexitySearchRetriever has no address argument, so set PERPLEXITY_BASE_URL to https://api.specstream.ai/perplexity in the environment. Perplexity's MCP server: set PERPLEXITY_BASE_URL to https://api.specstream.ai/perplexity, with your SpecStream key where the Perplexity key went.
Does the perplexityai SDK work with SpecStream?
Yes. The perplexityai Python SDK 0.46.1 ran every check in the pass table with base_url="https://api.specstream.ai/perplexity" and a SpecStream key, and client.search.create reads the reply into its own objects.
Which Perplexity fields does SpecStream not fill?
One: last_updated is always null. Each result has title, url and snippet, date when the page has a date, and the reply has id, plus server_time when you send display_server_time.
Can one call carry several queries?
One query per call. A query list of two or more gets a 422 that says so; send each query as its own call, at $0.001 each.
What happens when search is busy?
The route answers 429 with a Retry-After header. There is no limit per key and no daily limit.

Sources

SpecStream wrote this page. Each Perplexity figure comes from Perplexity's own pages, and each other provider's figure from that company's own page. The route's behavior is taken from its code and from the pass table measured on production on November 10, 2026.

  1. Perplexity Search overviewdocs.perplexity.ai/docs/search/overview.md, read Nov 10, 2026
  2. Perplexity Search quickstartdocs.perplexity.ai/docs/search/quickstart.md, read Nov 10, 2026
  3. Perplexity pricingdocs.perplexity.ai/docs/getting-started/pricing.md, read Nov 10, 2026
  4. Perplexity FAQdocs.perplexity.ai/docs/resources/faq.md, read Nov 10, 2026
  5. Perplexity rate limitsdocs.perplexity.ai/docs/admin/rate-limits-usage-tiers.md, read Nov 10, 2026
  6. SpecStream pass table, Perplexity routespecstream.ai/specstream/dialects/perplexity.md, read Nov 10, 2026
  7. Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 9, 2026
  8. Exa pricingexa.ai/docs/admin/pricing.md, read Nov 9, 2026
  9. Brave Search APIbrave.com/search/api/, read Nov 9, 2026
  10. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  11. SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
  12. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026