Get a direct, cited answer to a question.
Exa
Semantic search, page content, cited answers and asynchronous research.
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.
- Тип: stringqueryобязательно
The question to answer.
- Тип: objectoutput
Schema JSON Schema for a structured answer output.
- Тип: booleantext
Include the full page text of each citation.
- Тип: string enumtype
Retrieval mode used to gather sources before answering.
значения- auto
- fast
- instant
- deep
-lite - deep
- deep
-reasoning
- Тип: object200
Answer generated successfully.
- может быть nullanswer
The generated answer. A string, or a structured object when outputSchema was supplied.
- Тип: array object[]citations
Sources supporting the answer.
- authorТип: string
- idТип: string
- publishedТип: string
Date - textТип: string
- titleТип: string
- urlТип: string
- может быть nullcost
Dollars Upstream Exa cost breakdown. Informational only; customer billing is the flat $0.08.
- Тип: stringrequest
Id
application/json - 400
The request could not be processed. Check the request parameters.
- 401
A valid Felo API key is required.
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
A request or spending limit has been reached.
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl https://openapi.felo.ai/v1/beta/exa/answer \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": true,
"type": "auto",
"outputSchema": {}
}'
{
"requestId": "string",
"answer": null,
"citations": [
{
"id": "string",
"url": "string",
"title": "string",
"author": "string",
"publishedDate": "string",
"text": "string"
}
],
"costDollars": null
}