> ## 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

> 提一个问题，拿回一段带引用的答案。

提一个问题，拿回一段带引用的答案。`query` 必填；`text` 会带上来源正文，`outputSchema` 可以约束结构化输出。返回 `requestId`、成段的 `answer`、`citations[]`（含 `id`、`title`、`url`）和 `costDollars`。实测 2.1 秒、8 条引用。费用取决于实际请求和响应中的用量；调用前获取当前请求的报价，并核对最终费用。它介于搜索和研究之间：比 [`post_exa_agent_runs`](https://aisa.one/docs/zh/api-reference/search/post_exa-agent-runs) 更快更便宜，又比自己去读 [`post_exa_search`](https://aisa.one/docs/zh/api-reference/search/post_exa-search) 的结果更直接。[`post_perplexity_sonar`](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar) 也能回答同一类问题 —— 当检索本身需要语义匹配时才选 Exa。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/search/post_exa-answer)

## 请求规范

* **方法与路径:** POST /apis/v1/exa/answer
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/exa/answer`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/exa.json)

有效请求声明（包括认证和引用的 schema）：

```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"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/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。
                  type: object
                query:
                  description: 要回答的问题。
                  example: >-
                    Which manufacturers had the top three global EV sales in
                    2025?
                  type: string
                stream:
                  default: false
                  enum:
                    - false
                  type: boolean
                text:
                  description: 包含每条引用的完整页面文本。
                  type: boolean
                type:
                  description: 作答前用于收集来源的检索模式。
                  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: 生成的答案。为字符串；当提供了 outputSchema 时为结构化对象。
                  citations:
                    description: 支撑该答案的来源。
                    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: 答案生成成功。
        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.