Skip to main content
POST
Reference example

请求规范

  • 方法与路径: POST /apis/v1/openai-websearch/search
  • 可用状态: disabled
此接口已停用,无法调用。历史请求、schema 和价格声明仅保留供参考。 完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

按用量计费;默认请求预估费用:$0.3 USD(不是固定价格)。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 默认请求参考估价(USD): 0.3
  • 计费依据: response_components
  • 公开参考倍率: 1.0
  • 结算证据来源: response_body
当前未启用。

授权

Authorization
string
header
必填

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

请求体

application/json
input
string
必填

Your question or instruction, same format as the OpenAI Responses API input. A message array is also accepted.

示例:

"What are the three biggest AI announcements this week? Give one sentence each with sources."

instructions
string

Optional high-level instructions to steer the answer's tone or format.

max_output_tokens
integer

Optional cap on the number of tokens generated in the answer.

示例:

1024

响应

A standard OpenAI Responses object. output[] interleaves web_search_call items and the cited answer message; the number of web_search_call items is the billed search count.

id
string
object
string
示例:

"response"

output
object[]

Ordered items: web_search_call (searches performed) and message (the cited answer).

status
string
示例:

"completed"

usage
object