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.