POST
/
answer

Get your Exa API key

Authorizations

Authorization
string
header
required

API key can be provided either via x-api-key header or Authorization header with Bearer scheme

Body

application/json
query
string
required

The question or query to answer.

Minimum length: 1
model
enum<string>
default:
exa

The search model to use for the answer. Exa passes only one query to exa, while exa-pro also passes 2 expanded queries to our search model.

Available options:
exa,
exa-pro
stream
boolean
default:
false

If true, the response is returned as a server-sent events (SSS) stream.

text
boolean
default:
false

If true, the response includes full text content in the search results

Response

200 - application/json
answer
string

The generated answer based on search results.

citations
object[]

Search results used to generate the answer.

costDollars
object