Exa
Semantic search, page content, cited answers and asynchronous research.
Exa 操作
取得針對問題的直接、附引用回答。
提出問題並取得附引用的書面回答。query 為必填;text 包含來源文字,outputSchema 用於形塑結構化回覆。傳回 requestId、散文形式的 answer、包含 id、title 與 url 的 citations[],以及 costDollars。
計費參考
- 計量方式:依回報的回應成本計量。
- 參考請求估算:0.005 美元。
- 參考客戶倍率:1.0。不得對已結算的客戶金額再次應用。
僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。
請求本文
必填
application/json
- 類型: stringquery必填
要回答的問題。
- 類型: objectoutput
Schema 用於結構化回答輸出的 JSON Schema。
- 類型: boolean 列舉stream常數:false值
- false
- 類型: booleantext
包含每條引用的完整頁面文字。
- 類型: string 列舉type
回答前用於收集來源的檢索模式。
值- auto
- fast
- instant
- deep
-lite - deep
- deep
-reasoning
回應
- 類型: object200
回答產生成功。
- answer
產生的回答。為字串;提供 outputSchema 時為結構化物件。
- 類型: array object[]citations
支援回答的來源。
- author類型: string
- id類型: string
- published類型: string
Date - text類型: string
- title類型: string
- url類型: string
- cost
Dollars 資源使用的供應商成本明細。僅供參考;不是 Felo 客戶扣費或 Felo 帳單憑證。
- 類型: stringrequest
Id
application/json - 400
無法處理該要求。請檢查請求參數。
- 401
需要有效的 Felo API 金鑰。
- 402
由於未符合計費要求,要求無法繼續。
- 403
該帳戶無權執行此操作。
- 429
已達到要求或支出上限。
- 502
服務無法完成該要求。
- 503
API 或計費服務暫時無法使用。
- 504
服務在處理要求時逾時。
- default
錯誤回應;上游透傳回應可能採用供應商格式
application/json
Request Example for post/v1/beta/exa/answer
curl https://openapi.felo.ai/v1/beta/exa/answer \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": true,
"type": "auto",
"outputSchema": {},
"stream": false
}'
{
"requestId": "string",
"answer": null,
"citations": [
{
"id": "string",
"url": "string",
"title": "string",
"author": "string",
"publishedDate": "string",
"text": "string"
}
],
"costDollars": null
}