搜索页面的网络搜索引擎,检索相似的页面,爬行,以及专用代码搜索通过开放的网络搜索AI代理.
也称为 Exa-Search
exa-search/v1/search来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Exa Search 通过 POST /v1/search 回答实时查询。连同模型 ID exa-search 发送搜索词,并从响应中读取结构化结果。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/search \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "exa-search",
"query": "latest developments in solid-state batteries"
}'import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/search",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "exa-search",
"query": "latest developments in solid-state batteries",
},
)
print(response.json())EmpirioLabs 上 Exa Search API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| query | string | - | - | 搜索查询(或“similar”的URL) |
| operation | enum | search | search, similar, contents, code | 搜索 |回答 |研究。决定执行哪个Exa端点。 |
| search_type | enum | auto | auto, instant, neural, deep, fast | 选择搜索算法:自动搜索、神经搜索、关键词搜索、快速搜索或完整搜索。类型的别名。 |
| type | enum | auto | auto, instant, neural, deep, fast | 汽车 |关键词 |神经。自动为每个查询选择最佳模式。 |
| num_results | number | 10 | 1 到 100 | 要返回多少结果(1-100)。 |
| category | enum | - | company, research paper, news, github, tweet, movie, song, pe... | 将结果限制在一个类别(研究论文、新闻、GitHub等)。 |
| include_domains | string | - | - | 逗号分隔的域名允许列表。只返回这些领域的结果(例如 arxiv.org、github.com)。 |
| exclude_domains | string | - | - | 用逗号分隔的域名否认列表过滤结果。 |
| include_text | string | - | - | 必须出现的逗号分隔文本片段 |
| exclude_text | string | - | - | 逗号分隔文本片段以排除 |
| start_crawl_date | string | - | - | 只有返回结果在此日期之后才会爬取。ISO 8601(例如 2024-01-01T00:00:00Z)。 |
| end_crawl_date | string | - | - | 只有返回结果在此日期之前被爬取。ISO 8601。 |
| start_published_date | string | - | - | 仅返回此日期之后发布的结果。ISO 8601。 |
| end_published_date | string | - | - | 仅提交此日期之前发布的结果。ISO 8601。 |
操作 - 搜索,类似页面,内容,代码搜索 搜索类型 - 自动、即时(sub-150ms),神经(嵌入),深度搜索(Exa 2.1),快类 - 公司,研究论文,新闻,PDF,GitHub,Tweet,个人网站,LinkedIn Profile,财务报告
在 EmpirioLabs,Exa Search 按量计费:搜索 (1-25 个结果) $0.0060 每个搜索; 搜索(26- 100 个结果) $0.030 每个搜索; 内容 (Text/Highlights /摘要) $0.0060 每 page/feature。本页的实时价格表始终与 API 的实际计费一致。
Exa Search 通过 api.empiriolabs.ai 上的 POST /v1/search 提供,使用标准的 Bearer 令牌认证。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Exa Search,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。