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.

Parameters

No path, query, or header parameters.

Request body

  • querystringRequired

    The question to answer.

  • textbooleanOptional

    Include the full page text of each citation.

  • typestringOptional

    Allowed values: auto · fast · instant · deep-lite · deep · deep-reasoning

    Retrieval mode used to gather sources before answering.

  • outputSchemaobjectOptional

    JSON Schema for a structured answer output.

Example request

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": {}
}'

Response

Response fields

  • requestIdstringOptional
  • answerOptional

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

  • citationsobject[]Optional

    Sources supporting the answer.

  • idstringOptional
  • urlstringOptional
  • titlestringOptional
  • authorstringOptional
  • publishedDatestringOptional
  • textstringOptional
  • costDollarsOptional

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