Skip to main content
POST
OpenAI Web Search

授权

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."

max_output_tokens
integer

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

示例:

1024

instructions
string

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

响应

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"

status
string
示例:

"completed"

output
object[]

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

usage
object