exa/answer
Search and scrape the web with Exa Answer · Cited Answers through one Spiral API key. Answers a question from a live web search, with the sources it cites and an optional JSON output schema. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.0065 per answer.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
query required | text | — | Natural-language question or instructions for the request. |
text | true or false | false | If true, returns full page text with default settings. If false, disables text return. |
model | one of exa, exa-pro, exa-research, exa-fast | exa | The model used to generate the answer. |
outputSchema | JSON | — | A JSON Schema Draft 7 specification for the desired answer structure. When provided, the answer is returned as a structured object matching the schema instead of a plain string. |
systemPrompt | text | — | Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance. |
userLocation | JSON | — | The end user's location, as a two-letter ISO 3166-1 country code (e.g. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "exa",
"model": "exa/answer",
"input": {
"query": "<query>"
}
}'Frequently asked questions
How much does Exa Answer · Cited Answers cost?
$0.0065 per answer. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Exa Answer · Cited Answers through an API?
Send `POST /v1/runs` with `"provider": "exa"`, `"model": "exa/answer"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Exa to use Exa Answer · Cited Answers?
No. Spiral runs it on its own Exa account and charges your Spiral balance.
Can my AI agent use Exa Answer · Cited Answers?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.