cURL
curl -X POST 'https://api.exa.ai/answer' \
-H 'x-api-key: YOUR-EXA-API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"query": "What is the latest valuation of SpaceX?",
"text": true
}'
Response
200
{
"answer": "$350 billion.",
"citations": [
{
"id": "https://www.theguardian.com/science/2024/dec/11/spacex-valued-at-350bn-as-company-agrees-to-buy-shares-from-employees",
"url": "https://www.theguardian.com/science/2024/dec/11/spacex-valued-at-350bn-as-company-agrees-to-buy-shares-from-employees",
"title": "SpaceX valued at $350bn as company agrees to buy shares from ...",
"author": "Dan Milmon",
"publishedDate": "2023-11-16T01:36:32.547Z",
"text": "SpaceX valued at $350bn as company agrees to buy shares from ...",
"image": "https://i.guim.co.uk/img/media/7cfee7e84b24b73c97a079c402642a333ad31e77/0_380_6176_3706/master/6176.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctZGVmYXVsdC5wbmc&enable=upscale&s=71ebb2fbf458c185229d02d380c01530",
"favicon": "https://assets.guim.co.uk/static/frontend/icons/homescreen/apple-touch-icon.svg"
}
],
"costDollars": {
"total": 0.007,
"breakDown": [
{
"search": 0.007,
"contents": 0,
"breakdown": {
"neuralSearch": 0.007,
"deepSearch": 0.012,
"contentText": 0,
"contentHighlight": 0,
"contentSummary": 0
}
}
],
"perRequestPrices": {
"neuralSearch_1_10_results": 0.007,
"neuralSearch_additional_result": 0.001,
"deepSearch": 0.012,
"deepReasoningSearch": 0.015
},
"perPagePrices": {
"contentText": 0.001,
"contentHighlight": 0.001,
"contentSummary": 0.001
}
}
}