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.