Get a direct, cited answer to a question.
post_exa_answerAsk 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. Measured at 2.1 seconds with 8 citations. Billed a flat $0.08 per successful request. It sits between a search and a research run: faster and cheaper than post_exa_agent_runs, and more direct than reading post_exa_search results yourself. post_perplexity_sonar answers the same shape of question for $0.012 — reach for Exa when the retrieval needs to be semantic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Include the full page text of each citation. | |
| type | No | Retrieval mode used to gather sources before answering. | |
| query | Yes | The question to answer. | |
| outputSchema | No | JSON Schema for a structured answer output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||