
未审查的开源R1-1776上采用网络搜索的理性模型,优于SimpleQA基准上的主要搜索引擎和LLMs.
未审查的开源R1-1776上采用网络搜索的理性模型,优于SimpleQA基准上的主要搜索引擎和LLMs.
也称为 Perplexity Sonar Reasoning, Perplexity-Sonar-Reasoning-Pro
perplexity-sonar-reasoning-pro/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1/searchPOST/v1beta/models/perplexity-sonar-reasoning-pro:generateContentperplexity/sonar-reasoning-pro来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Perplexity Sonar Reasoning Pro 提供 OpenAI 兼容的 Chat Completions API。用你的 EmpirioLabs API 密钥把任意 OpenAI SDK 指向 https://api.empiriolabs.ai/v1,并使用模型 ID perplexity-sonar-reasoning-pro。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity-sonar-reasoning-pro",
"messages": [
{"role": "user", "content": "Write a haiku about the ocean."}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.empiriolabs.ai/v1",
api_key="YOUR_EMPIRIOLABS_API_KEY",
)
response = client.chat.completions.create(
model="perplexity-sonar-reasoning-pro",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)EmpirioLabs 上 Perplexity Sonar Reasoning Pro API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| temperature | number | 0.2 | 0 到 2 | 采样温度。0 = 确定性,2 = 最大随机性。 |
| top_p | number | 0.9 | 0 到 1 | 核抽样概率质量。低 = 更专注。 |
| max_tokens | number | 8192 | 1 到 32768 | 回复中最多的代币。 |
| search_context_size | enum | medium | low, medium, high | 上下文越高,答案越好,但每次请求的基础费用也会提高。 |
| search_mode | enum | default | default, academic, sec | 按来源类型筛选搜索结果。学术 = 学术论文,SEC = 财务申报。 |
| search_domain_filter | string | - | - | 逗号分隔域。前缀为“-”以排除。最多20。 |
| search_language_filter | string | - | - | 逗号分隔的ISO 639-1代码(2个字母)。最多10。 |
| search_after_date | string | - | - | 用 YYYY-MM-DD。仅包含此日期之后的来源。 |
| search_before_date | string | - | - | 用 YYYY-MM-DD。仅包含此日期之前的来源。 |
| search_recency_filter | enum | none | none, hour, day, week, month, year | 相对时间滤波器。不能与具体日期合并。 |
| last_updated_after_filter | string | - | - | 用 YYYY-MM-DD。仅包含此日期之后的来源。 |
| last_updated_before_filter | string | - | - | 用 YYYY-MM-DD。仅包含此日期之前的来源。 |
| country | string | - | - | ISO 3166-1 双字母代码(例如美国、英国),用于将结果偏向某一国家。 |
| region | string | - | - | 州或省名称用于位置偏见。 |
在 EmpirioLabs,Perplexity Sonar Reasoning Pro 按量计费:投入 $4.80 每1M 提示符; 产出 $19.00 每1M个生成的令牌; 基费(低背景) $0.014 每个请求。本页的实时价格表始终与 API 的实际计费一致。
Perplexity Sonar Reasoning Pro 支持 128K token 的上下文窗口。
兼容。Perplexity Sonar Reasoning Pro 提供 OpenAI 兼容的 Chat Completions API,现有 OpenAI SDK 只需把 base_url 指向 https://api.empiriolabs.ai/v1 并把模型 ID 设为 perplexity-sonar-reasoning-pro 即可使用。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Perplexity Sonar Reasoning Pro,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。