데이터 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.