> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Answer

> Ask a question and get a written answer with citations.

Ask a question and get a written answer with citations. `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. Pricing depends on the actual request and response-derived usage; obtain a fresh quote for your request and check the final charge. It sits between a search and a research run: faster and cheaper than [`post_exa_agent_runs`](https://aisa.one/docs/api-reference/search/post_exa-agent-runs), and more direct than reading [`post_exa_search`](https://aisa.one/docs/api-reference/search/post_exa-search) results yourself. [`post_perplexity_sonar`](https://aisa.one/docs/api-reference/perplexity/post_perplexity-sonar) answers the same shape of question — reach for Exa when the retrieval needs to be semantic.

> [!NOTE]
>
> **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. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/search/post_exa-answer)

## Request contract

* **Method and path:** POST /apis/v1/exa/answer
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/exa/answer`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/exa.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_exa_answer",
  "method": "POST",
  "path": "/apis/v1/exa/answer",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "outputSchema": {
              "description": "JSON Schema for a structured answer output.",
              "type": "object"
            },
            "query": {
              "description": "The question to answer.",
              "example": "Which manufacturers had the top three global EV sales in 2025?",
              "type": "string"
            },
            "stream": {
              "default": false,
              "enum": [
                false
              ],
              "type": "boolean"
            },
            "text": {
              "description": "Include the full page text of each citation.",
              "type": "boolean"
            },
            "type": {
              "description": "Retrieval mode used to gather sources before answering.",
              "enum": [
                "auto",
                "fast",
                "instant",
                "deep-lite",
                "deep",
                "deep-reasoning"
              ],
              "type": "string"
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/exa.json POST /apis/v1/exa/answer
openapi: 3.1.0
info:
  description: ''
  title: Exa
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    exa:
      description: ''
      title: Exa
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/exa/agent/runs
    - /apis/v1/exa/answer
    - /apis/v1/exa/contents
    - /apis/v1/exa/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ab46e78f199b7355eb8b0849ccc6b69f09ed9c898a6d7b83d8a86b70a43c863a
    facts_hash: d10529a4463a002dd39ad505e0bc30212230a00b2034082221e854d90728a9b8
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: exa
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/exa/answer:
    post:
      tags:
        - default
      summary: Answer
      description: >-
        Ask a question and get a written answer with citations. `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. Use current endpoint pricing and a fresh quote for
        this 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. Reach for Exa when the retrieval
        needs to be semantic; compare current quotes when choosing a provider.
      operationId: post_exa_answer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                outputSchema:
                  description: JSON Schema for a structured answer output.
                  type: object
                query:
                  description: The question to answer.
                  example: >-
                    Which manufacturers had the top three global EV sales in
                    2025?
                  type: string
                stream:
                  default: false
                  enum:
                    - false
                  type: boolean
                text:
                  description: Include the full page text of each citation.
                  type: boolean
                type:
                  description: Retrieval mode used to gather sources before answering.
                  enum:
                    - auto
                    - fast
                    - instant
                    - deep-lite
                    - deep
                    - deep-reasoning
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  answer:
                    description: >-
                      The generated answer. A string, or a structured object
                      when outputSchema was supplied.
                  citations:
                    description: Sources supporting the answer.
                    items:
                      properties:
                        author:
                          type: string
                        id:
                          type: string
                        publishedDate:
                          type: string
                        text:
                          type: string
                        title:
                          type: string
                        url:
                          type: string
                      type: object
                    type: array
                  costDollars:
                    description: >-
                      Upstream Exa cost breakdown. Informational only; it is not
                      the AIsa customer charge. Use a fresh quote for the actual
                      request.
                  requestId:
                    type: string
                type: object
          description: Answer generated successfully.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            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?"
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.