Skip to main content
POST
获得针对某个问题的带引用直接答案。
提一个问题,拿回一段带引用的答案。query 必填;text 会带上来源正文,outputSchema 可以约束结构化输出。返回 requestId、成段的 answercitations[](含 idtitleurl)和 costDollars。实测 2.1 秒、8 条引用。按次固定计费 $0.08。它介于搜索和研究之间:比 post_exa_agent_runs 更快更便宜,又比自己去读 post_exa_search 的结果更直接。post_perplexity_sonar 回答同一类问题只要 $0.012 —— 当检索本身需要语义匹配时才选 Exa。

授权

Authorization
string
header
必填

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

请求体

application/json
query
string
必填

要回答的问题。

示例:

"Which manufacturers had the top three global EV sales in 2025?"

text
boolean

包含每条引用的完整页面文本。

type
enum<string>

作答前用于收集来源的检索模式。

可用选项:
auto,
fast,
instant,
deep-lite,
deep,
deep-reasoning
outputSchema
object

用于结构化答案输出的 JSON Schema。

响应

200 - application/json

答案生成成功。

requestId
string
answer
any | null

生成的答案。为字符串;当提供了 outputSchema 时为结构化对象。

citations
object[]

支撑该答案的来源。

costDollars
any | null

上游 Exa 的成本明细。仅供参考;客户计费为固定 $0.08。