跳转到主要内容
POST
extract

请求规范

  • 方法与路径: POST /apis/v1/parallel/extract
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/parallel/extract
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际计费结果数量收费。 默认请求预估费用:$0.02 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

Extract request.

urls
string[]
必填

URLs to extract content from. Up to 20 URLs.

advanced_settings
AdvancedExtractSettings · object | null

Advanced configuration for fetch policy, excerpt settings, and full content settings. May impact result quality and latency unless used carefully. When omitted, excerpts are enabled and full content is disabled by default.

client_model
string | null

The model generating this request and consuming the results. Enables optimizations and tailors default settings for the model's capabilities.

示例:

"claude-opus-4-7"

max_chars_total
integer | null

Upper bound on total characters across excerpts from all extracted results.

objective
string | null

As in SearchRequest, a natural-language description of the underlying question or goal driving the request. Used together with search_queries to focus excerpts on the most relevant content.

search_queries
string[] | null

Optional keyword search queries, as in SearchRequest. Used together with objective to focus excerpts on the most relevant content.

session_id
string | null

Session identifier to track calls across separate search and extract calls, to be used as part of a larger task. Specifying it may give better contextual results for subsequent API calls.

Maximum string length: 1000

响应

Successful Response

Extract response.

errors
ExtractError · object[]
必填

Extract errors: requested URLs not in the results.

extract_id
string
必填

Extract request ID, e.g. extract_cad0a6d2dec046bd95ae900527d880e7

results
V1ExtractResult · object[]
必填

Successful extract results.

session_id
string
必填

Session identifier. Echoed back from the request if provided, otherwise generated by the server. Should be passed to future search and extract calls made by the agent as part of the same larger task.

示例:

"session_8a911eb27c7a4afaa20d0d9dc98d07c0"

usage
UsageItem · object[] | null

Usage metrics for the extract request.

warnings
Warning · object[] | null

Warnings for the extract request, if any.