Get a direct, cited answer to a question.
curl --request POST \
--url https://api.aisa.one/apis/v1/exa/answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": true,
"outputSchema": {}
}
'import requests
url = "https://api.aisa.one/apis/v1/exa/answer"
payload = {
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": True,
"outputSchema": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'Which manufacturers had the top three global EV sales in 2025?',
text: true,
outputSchema: {}
})
};
fetch('https://api.aisa.one/apis/v1/exa/answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/exa/answer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Which manufacturers had the top three global EV sales in 2025?',
'text' => true,
'outputSchema' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/exa/answer"
payload := strings.NewReader("{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/exa/answer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/exa/answer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"answer": "<unknown>",
"citations": [
{
"id": "<string>",
"url": "<string>",
"title": "<string>",
"author": "<string>",
"publishedDate": "<string>",
"text": "<string>"
}
],
"costDollars": "<unknown>"
}Search API
Exa Answer
Ask a question and get a written answer with citations.
POST
https://api.aisa.one/apis/v1
/
exa
/
answer
Get a direct, cited answer to a question.
curl --request POST \
--url https://api.aisa.one/apis/v1/exa/answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": true,
"outputSchema": {}
}
'import requests
url = "https://api.aisa.one/apis/v1/exa/answer"
payload = {
"query": "Which manufacturers had the top three global EV sales in 2025?",
"text": True,
"outputSchema": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'Which manufacturers had the top three global EV sales in 2025?',
text: true,
outputSchema: {}
})
};
fetch('https://api.aisa.one/apis/v1/exa/answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/exa/answer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Which manufacturers had the top three global EV sales in 2025?',
'text' => true,
'outputSchema' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/exa/answer"
payload := strings.NewReader("{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/exa/answer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/exa/answer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Which manufacturers had the top three global EV sales in 2025?\",\n \"text\": true,\n \"outputSchema\": {}\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"answer": "<unknown>",
"citations": [
{
"id": "<string>",
"url": "<string>",
"title": "<string>",
"author": "<string>",
"publishedDate": "<string>",
"text": "<string>"
}
],
"costDollars": "<unknown>"
}Ask a question and get a written answer with citations.
Set this endpoint up in your agent →
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.
First time? Point any MCP client at
https://mcp.aisa.one/mcp — Claude
Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
opens a browser, you click Allow once, and there is no key to paste. The
commands per client, and what each call costs, are on
aisa.one/mcp.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The question to answer.
Example:
"Which manufacturers had the top three global EV sales in 2025?"
Include the full page text of each citation.
Retrieval mode used to gather sources before answering.
Available options:
auto, fast, instant, deep-lite, deep, deep-reasoning JSON Schema for a structured answer output.
Response
200 - application/json
Answer generated successfully.