迭代AI搜索在初始结果不足时不断查询,返回比标准模式更全面的答案.
也称为 Linkup-Deep-Search
linkup-deep-search/v1/searchPOST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/linkup-deep-search:generateContent来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Linkup Deep Search 提供 OpenAI 兼容的 Chat Completions API。用你的 EmpirioLabs API 密钥把任意 OpenAI SDK 指向 https://api.empiriolabs.ai/v1,并使用模型 ID linkup-deep-search。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "linkup-deep-search",
"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="linkup-deep-search",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)EmpirioLabs 上 Linkup Deep Search API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| query | string | - | - | 自然语言问题search/research/回答。 |
| output_type | enum | sourcedAnswer | sourcedAnswer, searchResults | 搜索结果 |sourcedAnswer。sourcedAnswer返回一个带有引用的综合答案;searchResults 返回原始结果。 |
| domain_filter_mode | enum | None | None, Include, Exclude | 包括 |排除。域名过滤器是否列出允许或被阻挡的域名。 |
| include_domains | string | - | - | 包含逗号分隔的域名或网址 |
| exclude_domains | string | - | - | 要排除逗号分隔的域名或网址 |
| prioritize_domains | string | - | - | 通过查询指导优先选择逗号分隔的域 |
| from_date | string | - | - | 仅包含在此日期及之后发布的资料。格式:YYYY-MM-DD。 |
| to_date | string | - | - | 仅包含在此日期或之前发表的资料。格式:YYYY-MM-DD。 |
| include_images | boolean | false | - | 在结果中包含相关的图片网址。 |
| image_count | number | 6 | 1 到 45 | 回传最多图像数量。 |
| enable_inline_citations | boolean | true | - | 在综合答案中嵌入[N]次引用。 |
| include_sources | boolean | true | - | 请返回源URL列表和答案一同返回。 |
| max_results | number | - | 1 到 100 | 返回的结果最大数量。 |
迭代搜索 - - 在初始结果不足时进行重复.
在 EmpirioLabs,Linkup Deep Search 按量计费:每个消息 $0.13 固定。本页的实时价格表始终与 API 的实际计费一致。
Linkup Deep Search 支持 100K token 的上下文窗口。
兼容。Linkup Deep Search 提供 OpenAI 兼容的 Chat Completions API,现有 OpenAI SDK 只需把 base_url 指向 https://api.empiriolabs.ai/v1 并把模型 ID 设为 linkup-deep-search 即可使用。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Linkup Deep Search,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。