Skip to the page

Yuanbao Search API compatible

Change the host, keep the code.

SpecStream answers the Tencent Yuanbao Search (元宝搜索) API's POST /SearchPro in Tencent's own JSON. A search of up to 10 results costs $0.001. Tencent Cloud lists 14, 20 and 26 yuan per 1,000 calls for its three editions.

The switch is one address: https://api.specstream.ai/wsa in place of https://api.wsa.cloud.tencent.com, with a SpecStream key as the Bearer token. Your code parses Response.Pages as before.

SpecStream scores 97.9 F-score on all 1,000 SimpleQA Verified questions and 64.0 item F1 on all 200 WideSearch tasks. New accounts get $10 of credit, no card.

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

Yuanbao Search to SpecStream, parameter by parameter and field by field

SpecStreamTencent Yuanbao Search
Search addressPOST https://api.specstream.ai/wsa/SearchProPOST https://api.wsa.cloud.tencent.com/SearchPro
The keyA SpecStream key as Authorization: BearerAn API key from Tencent Cloud as Authorization: Bearer
`Cnt`Any whole number from 1 to 50, 10 when you send none10, 20, 30, 40 or 50. The Lite edition (极速版) does not take it
`Site`One site to search, or exclude: and up to five sites to leave outOne domain to search, or exclude: and up to five domains to leave out
`Freshness`d1 to d30, m1 to m12, y1 to y5, one day, or two days with a comma between themd[N] with N from 1 to 30, m[N] from 1 to 12, y[N] from 1 to 5, one day, or two days with a comma between them
`Industry`news runs the news search. gov, acad and finance are accepted and search the webgov, news, acad and finance. The Lite edition does not take it
The replyResponse.Pages, each page a JSON string with title, date, url, passage, content, site, score and faviconResponse.Pages, each page a JSON string. content and score are left out on the Lite edition
Price$0.001 a search of up to 10 results. 50 results cost $0.005814 yuan per 1,000 calls on Lite, 20 on Standard and 26 on Flagship. More than 10 results need Standard or Flagship
Free to start$10 of credit once, no card: 10,000 searches2,000 free calls a month for a limited time, in a Zhidongxi report of October 2026

The Yuanbao Search API reference, on SpecStream

What else Yuanbao Search API users price

How SpecStream scores

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

How to migrate, step by step

1. Create a key under Agents & API in the workspace. A new account gets $10 of credit, no card, which covers 10,000 searches.

2. Set the base address to https://api.specstream.ai/wsa where your code has https://api.wsa.cloud.tencent.com, and send the SpecStream key as the Bearer token. In Python:

import json
import requests

BASE = "https://api.specstream.ai/wsa"  # was https://api.wsa.cloud.tencent.com

reply = requests.post(
    f"{BASE}/SearchPro",
    headers={"Authorization": f"Bearer {SPECSTREAM_KEY}"},
    json={"Query": "Who founded Mistral AI and when?", "Cnt": 10, "Freshness": "y2"},
    timeout=30,
)
reply.raise_for_status()
for raw in reply.json()["Response"]["Pages"]:
    page = json.loads(raw)
    print(page["title"], page["url"], page["date"])

3. In JavaScript:

const res = await fetch("https://api.specstream.ai/wsa/SearchPro", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SPECSTREAM_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ Query: "Who founded Mistral AI and when?", Cnt: 10 }),
});
const data = await res.json();
for (const raw of data.Response.Pages) {
  const page = JSON.parse(raw);
  console.log(page.title, page.url);
}

4. Read 401 as a refused key, 402 as an empty balance and 429 as a call to send again after Retry-After. None of them is charged.

5. When your product needs every match in place of a results page, write the request in plain words. SpecStream reads it back as the conditions every row must meet and the facts to bring back, quotes the most it can cost, and delivers the rows after you approve.

Frequently asked questions

Something we didn't answer? Talk to a human

Is there a Tencent Yuanbao Search API compatible API?
Yes. SpecStream answers Yuanbao Search's POST /SearchPro at https://api.specstream.ai/wsa in Tencent's JSON, for $0.001 a search of up to 10 results.
How do I migrate from the Yuanbao Search API?
Change one base address: https://api.specstream.ai/wsa in place of https://api.wsa.cloud.tencent.com, and a SpecStream key as the Bearer token. The body and the code that parses Response.Pages stay as they are.
How much does the Yuanbao Search API cost?
Tencent Cloud lists 14 yuan per 1,000 calls for the Lite edition, 20 for Standard and 26 for Flagship. On SpecStream a search of up to 10 results is $0.001, $1 per 1,000, and new accounts get $10 of credit with no card.
Which SearchPro parameters work?
Five change the search: Query, Cnt from 1 to 50, Site, Freshness and Industry set to news. Mode, Deeplinks and the other Industry values are accepted and the reply holds public web pages.
How many results can one call return?
Up to 50. Cnt takes any whole number from 1 to 50 and is 10 when you send none. 10 results cost $0.001, 20 cost $0.0022 and 50 cost $0.0058.
Does the Tencent Cloud SDK work with SpecStream?
No. The SDK signs each call for wsa.tencentcloudapi.com, and that form has no route here. The key form does: one POST to /SearchPro with a Bearer token, with the same body and the same Response.
Do I need a Tencent Cloud account?
No. A SpecStream account and its key are enough, and a new account starts with $10 of credit, which covers 10,000 searches.

Sources

SpecStream wrote this page. Each Yuanbao Search fact comes from Tencent Cloud's product page, its API documents and the source of its Python SDK, the free allowance from a Zhidongxi report carried by ifeng and 36Kr, and each other provider's figure from that company's own page. The route's behavior is taken from its code, read on November 13, 2026.

  1. Tencent Cloud: Yuanbao Search product pagecloud.tencent.com/product/wsa, read Nov 13, 2026
  2. Tencent Cloud: the service API key formcloud.tencent.com/document/product/1806/130615, read Nov 13, 2026
  3. Tencent Cloud: SearchPro referencecloud.tencent.com/document/api/1806/121811, read Nov 13, 2026
  4. Tencent Cloud Python SDK: SearchPro modelsraw.githubusercontent.com/TencentCloud/tencentcloud-sdk-python/master/tencentcloud/wsa/v20250508/models.py, read Nov 13, 2026
  5. Zhidongxi report on ifengtech.ifeng.com/c/8xPUO0IuX2L, read Nov 13, 2026
  6. Zhidongxi report on 36Kr, in Englisheu.36kr.com/en/p/4035586826785668, read Nov 13, 2026
  7. Exa pricingexa.ai/docs/admin/pricing.md, read Nov 13, 2026
  8. Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 13, 2026
  9. Brave Search APIbrave.com/search/api/, read Nov 13, 2026
  10. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 13, 2026
  11. SpecStream pricingspecstream.ai/pricing, read Nov 13, 2026
  12. SpecStream for agentsspecstream.ai/agents.md, read Nov 13, 2026