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.

需要帮助?