Felo API PlatformFelo API Platform

Data 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.