Felo API PlatformFelo API Platform

数据 API / Exa / Answer

Get a direct, cited answer to a question.

Ask a question and get a written answer with citations. query is required; text includes the source text and outputSchema shapes a structured reply. Returns requestId, answer as prose, citations[] with id, title and url, and costDollars.

参数

没有路径、查询或请求头参数。

请求体

  • querystring必填

    The question to answer.

  • textboolean可选

    Include the full page text of each citation.

  • typestring可选

    允许值: auto · fast · instant · deep-lite · deep · deep-reasoning

    Retrieval mode used to gather sources before answering.

  • outputSchemaobject可选

    JSON Schema for a structured answer output.

请求示例

curl -X POST "https://openapi.felo.ai/v1/beta/exa/answer" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "<string>",
  "text": false,
  "type": "<string>",
  "outputSchema": {}
}'

响应

响应字段

  • requestIdstring可选
  • answer可选

    The generated answer. A string, or a structured object when outputSchema was supplied.

  • citationsobject[]可选

    Sources supporting the answer.

  • idstring可选
  • urlstring可选
  • titlestring可选
  • authorstring可选
  • publishedDatestring可选
  • textstring可选
  • costDollars可选

    Upstream Exa cost breakdown. Informational only; customer billing is the flat $0.08.