API Reference
Answer
Generate an LLM answer using Exa search results
/answer
performs an Exa search and uses an LLM (GPT-4o-mini) to generate either:
- A direct answer for specific queries
- A detailed summary with citations for open-endedqueries
The response includes both the generated answer and the sources used to create it. The endpoint also supports streaming (as stream=True
), which will returns tokens as they are generated.
POST
Get your Exa API key
Authorizations
Body
application/json
The question or query to answer.
Minimum length:
1
accurate
generates expanded queries based on the original queries, increasing the result coverage for the response. fast
only uses your original query.
Available options:
fast
, accurate
If true, the response is returned as a server-sent events (SSS) stream.
If true, the response includes full text content in the search results