Exa Answer API

Quick LLM-style answer to a natural-language question, grounded in fresh Exa web search results with inline citations and source links.

ExaResearch & SearchProprietary Endpoint

About Exa Answer

Quick LLM-style answer to a natural-language question, grounded in fresh Exa web search results with inline citations and source links.

web searchanswer engine

Exa Answer specs

Model ID
exa-answer
Provider
Exa
Category
Research & Search
Input
text
Output
text
Endpoints
POST /v1/answer
POST /v1/search
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages

Exa Answer API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Answer
per request
$0.01
Compare on the full pricing page

How to call the Exa Answer API

Exa Answer serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id exa-answer. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "exa-answer",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="exa-answer",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Exa Answer API reference

Exa Answer API parameters

Request parameters supported by the Exa Answer API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
querystring--The natural-language query to search/research/answer.
textbooleanfalse-Show short source text snippets in the answer.
disable_formattingbooleanfalse-Skip the EmpirioLabs Markdown formatting (citation [[N]](url) rewriting + References block). The raw upstream answer with plain [N] citations is returned; the...

Good to know

LLM-style answer informed by Exa search results. For deeper analysis use Exa Research.

Exa Answer API: common questions

How much does the Exa Answer API cost?

On EmpirioLabs, Exa Answer is billed pay as you go: Answer $0.01 per request. The live rate card on this page always matches what the API charges.

Is the Exa Answer API OpenAI-compatible?

Yes. Exa Answer serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to exa-answer.

Can I try Exa Answer in the browser before integrating?

Yes. The EmpirioLabs playground runs Exa Answer in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Exa Answer API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.