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
| SpecStream | Perplexity Search API | |
|---|---|---|
| Address | POST https://api.specstream.ai/perplexity/search | POST https://api.perplexity.ai/search |
| The key | A SpecStream key as Authorization: Bearer | A 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 422 | 1 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 call | A string or an array of strings |
| Filters | search_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 422 | The same filters, with dates as MM/DD/YYYY |
| Page text | max_tokens_per_page and max_tokens fill each snippet with the page's text, cut to the budget, at no extra cost | max_tokens and max_tokens_per_page leave the price as it is |
| The reply | id, results[] with title, url, snippet and date when the page has one, and server_time with display_server_time. last_updated is always null | results[] with title, url, snippet, date and last_updated, plus id and server_time |
| Errors | Perplexity's 422 body {"detail": [{"loc", "msg", "type"}]}. An empty balance answers 402. A busy call answers 429 with Retry-After | Billed 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 minute | No limit per key and no daily limit | 50 query units per second, the same on every usage tier |
| Free to start | $2 of credit, no card, which covers 2,000 searches | Prepaid credits, with auto top-up when the balance runs low |
The Perplexity Search API reference, on SpecStream
The call, before and after
# Before
curl -X POST https://api.perplexity.ai/search \
-H "Authorization: Bearer $PERPLEXITY_API_KEY" -H "Content-Type: application/json" \
-d '{"query": "Who founded Mistral AI and when?", "max_results": 5}'
# After
curl -X POST https://api.specstream.ai/perplexity/search \
-H "Authorization: Bearer $SPECSTREAM_API_KEY" -H "Content-Type: application/json" \
-d '{"query": "Who founded Mistral AI and when?", "max_results": 5}'In the perplexityai Python SDK the change is the client line. The SDK also reads PERPLEXITY_BASE_URL from the environment.
# Before
client = Perplexity(api_key=PERPLEXITY_API_KEY)
# After
client = Perplexity(api_key=SPECSTREAM_API_KEY, base_url="https://api.specstream.ai/perplexity")Every parameter and field on this page is in the pass table, measured on production on November 10, 2026.
Apps and SDKs that take the address as a setting
Each line was run on production on November 10, 2026 through that client's own request and reply code. Put your SpecStream key wherever the client takes its key.
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.
Every parameter the route uses
Used in the search: query (a string, or a list of one), max_results (1 to 20, or up to 50 with search_type people), search_type people, search_domain_filter with or without a - before a domain, search_recency_filter (hour, day, week, month, year), search_after_date_filter and search_before_date_filter.
Used to shape the reply: max_tokens_per_page and max_tokens (each token is 4 characters of page text, and a budget for all results is shared out evenly), and display_server_time.
Refused with Perplexity's 422: a query list of two or more queries, a max_results over 20 on a web search, and a date filter that is not MM/DD/YYYY. A call with no key gets 401.
Every field that comes back
The reply has id, results and server_time, which holds the time when you send display_server_time and is null otherwise. Each result has title, url, snippet, date when the page has a date, and last_updated, which is always null.
One field is added: specstream, with what the Search API returns beyond Perplexity's fields, including the call's price_usd. A parser that reads Perplexity's fields never sees it.
$1 per 1,000 searches, page text included
A call of up to 10 results costs $0.001, with or without a page text budget. Each started block of 10 more results adds $0.0012: 20 results cost $0.0022 and a people search of 50 costs $0.0058. Credit you buy never expires.
The most accurate web search API, in about one second
The SpecStream Search API scores 99 on SimpleQA Verified. On WideSearch it scores 64.0 item F1 and 43.4 row F1 on all 200 official tasks. The Extract API scores 0.914 F1 on WCXB. Every score and its method is on the benchmarks page.
A call with no max_tokens or max_tokens_per_page runs the fast search. Measured on production on November 9, 2026, its median was 0.82 s at 1 search a second and 1.07 s at 20 a second, the 95th percentile stayed between 1.09 and 1.73 s, and it answered 718 of 720. It has no limit per key and no daily limit. A call with a page text budget reads the pages on the fast search, at the same price.
You decide what is kept, on each key
Create the key with zero_retention and a search made with it keeps no request text and no answer after the reply: it is not in the history, its answer is not reused for another call, and its log lines carry neither. spend_cap_cents is the most the key can spend.
curl -X POST https://api.specstream.ai/v1/account/keys \
-H "Authorization: Bearer $SPECSTREAM_API_KEY" -H "Content-Type: application/json" \
-d '{"name": "production", "scopes": ["account:read", "finds:spend"], "spend_cap_cents": 500000, "zero_retention": true}'Search, pages and rows on one key
The same key reads up to 20 pages or documents a call with the Extract API at $0.80 per 1,000 pages. Deep Search returns every match for a request in plain words as structured rows, at 5¢, 15¢ or $1 a row, with a source URL on every value. The most a run can cost is approved before it starts. The full comparison is on the Perplexity alternative page.
What else Perplexity Search API users price
Tavily
A search API sold in credits at $0.008 each pay as you go: a basic search takes 1 credit and an advanced search 2. SpecStream answers Tavily's POST /search at https://api.specstream.ai/tavily for $0.001 a basic search and $0.005 an advanced one.
Exa
A search API on Exa's own index, at $7 per 1,000 requests on auto and $4 on lite for up to 10 results, with its own request and reply. SpecStream answers Exa's call as well, at https://api.specstream.ai/exa, for $0.001 a search.
Brave Search API
A search API on Brave's own index at $5 per 1,000 requests, with $5 in free credits every month and 50 queries per second. SpecStream answers Brave's call at https://api.specstream.ai/res/v1/web/search at $1 per 1,000, a fifth of Brave's rate, and has no limit per key.
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 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
Frequently asked questions
Something we didn't answer? Talk to a human
Is there a Perplexity Search API compatible API?
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?
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?
Which apps and SDKs take the SpecStream address for Perplexity Search API?
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?
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?
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?
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?
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.
- Perplexity Search overviewdocs.perplexity.ai/docs/search/overview.md, read Nov 10, 2026
- Perplexity Search quickstartdocs.perplexity.ai/docs/search/quickstart.md, read Nov 10, 2026
- Perplexity pricingdocs.perplexity.ai/docs/getting-started/pricing.md, read Nov 10, 2026
- Perplexity FAQdocs.perplexity.ai/docs/resources/faq.md, read Nov 10, 2026
- Perplexity rate limitsdocs.perplexity.ai/docs/admin/rate-limits-usage-tiers.md, read Nov 10, 2026
- SpecStream pass table, Perplexity routespecstream.ai/specstream/dialects/perplexity.md, read Nov 10, 2026
- Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 9, 2026
- Exa pricingexa.ai/docs/admin/pricing.md, read Nov 9, 2026
- Brave Search APIbrave.com/search/api/, read Nov 9, 2026
- SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
- SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
- SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026




