Felo API PlatformFelo API Platform
全部 Exa 端點
v0.2.0-beta
OpenAPI 3.1.0

取得針對問題的直接、附引用回答。

伺服器:https://openapi.felo.ai
用戶端程式庫

Exa

​

Semantic search, page content, cited answers and asynchronous research.

取得針對問題的直接、附引用回答。

​

提出問題並取得附引用的書面回答。query 為必填;text 包含來源文字,outputSchema 用於形塑結構化回覆。傳回 requestId、散文形式的 answer、包含 id、title 與 url 的 citations[],以及 costDollars。

計費參考

  • 計量方式:依回報的回應成本計量。
  • 參考請求估算:0.005 美元。
  • 參考客戶倍率:1.0。不得對已結算的客戶金額再次應用。

僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。

請求本文
必填
application/json
  • query
    類型: string
    必填

    要回答的問題。

  • outputSchema
    類型: object

    用於結構化回答輸出的 JSON Schema。

  • stream
    類型: boolean 列舉
    常數:  
    false
    值
    • false
  • text
    類型: boolean

    包含每條引用的完整頁面文字。

  • type
    類型: string 列舉

    回答前用於收集來源的檢索模式。

    值
    • auto
    • fast
    • instant
    • deep-lite
    • deep
    • deep-reasoning
回應
  • 200
    類型: object

    回答產生成功。

    • answer

      產生的回答。為字串;提供 outputSchema 時為結構化物件。

    • citations
      類型: array object[]

      支援回答的來源。

      • author
        類型: string
      • id
        類型: string
      • publishedDate
        類型: string
      • text
        類型: string
      • title
        類型: string
      • url
        類型: string
    • costDollars

      資源使用的供應商成本明細。僅供參考;不是 Felo 客戶扣費或 Felo 帳單憑證。

    • requestId
      類型: string
    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
}
Get a direct, cited answer to a question.

需要協助嗎?