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

# Answers

> Answers

## Request contract

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

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "any_brave_answer_apis_v1_brave_chat_completions",
  "method": "POST",
  "path": "/apis/v1/brave/chat/completions",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "country": {
              "default": "us",
              "title": "Country",
              "type": "string"
            },
            "enable_citations": {
              "default": false,
              "description": "Whether to include inline citation tags in the answer. Requires <code>stream=true</code> and is not supported in research mode.",
              "title": "Enable Citations",
              "type": "boolean"
            },
            "enable_entities": {
              "default": false,
              "description": "Whether to include inline entity tags in the answer. Requires <code>stream=true</code> and is not supported in research mode.",
              "title": "Enable Entities",
              "type": "boolean"
            },
            "enable_research": {
              "default": false,
              "description": "Whether to answer with iterative deep research instead of a single search. Requires <code>stream=true</code>.",
              "title": "Enable Research",
              "type": "boolean"
            },
            "language": {
              "default": "en",
              "title": "Language",
              "type": "string"
            },
            "max_completion_tokens": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Completion Tokens"
            },
            "messages": {
              "description": "The conversation so far. Exactly one <code>user</code> message is supported, e.g. <code>[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Explain quantum computing&quot;}]</code>.",
              "items": {
                "properties": {
                  "content": {
                    "title": "Content",
                    "type": "string"
                  },
                  "role": {
                    "const": "user",
                    "default": "user",
                    "enum": [
                      "user"
                    ],
                    "title": "Role",
                    "type": "string"
                  }
                },
                "required": [
                  "content"
                ],
                "title": "UserMessage",
                "type": "object"
              },
              "maxItems": 1,
              "minItems": 1,
              "title": "Messages",
              "type": "array"
            },
            "metadata": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Accepted for OpenAI SDK compatibility and currently ignored: the pairs are not stored or returned.",
              "title": "Metadata"
            },
            "model": {
              "default": "brave-pro",
              "description": "Model ID used to generate the response.",
              "enum": [
                "brave-pro",
                "brave"
              ],
              "title": "Model",
              "type": "string"
            },
            "research_allow_thinking": {
              "default": true,
              "description": "Accepted for compatibility. Ignored by the mixer engine behind this API, which always runs research with extended thinking off.",
              "title": "Research Allow Thinking",
              "type": "boolean"
            },
            "research_maximum_number_of_iterations": {
              "default": 4,
              "description": "Maximum number of research iterations.",
              "maximum": 5,
              "minimum": 1,
              "title": "Research Maximum Number Of Iterations",
              "type": "integer"
            },
            "research_maximum_number_of_queries": {
              "default": 20,
              "description": "Maximum number of search queries research mode may issue in total.",
              "maximum": 50,
              "minimum": 1,
              "title": "Research Maximum Number Of Queries",
              "type": "integer"
            },
            "research_maximum_number_of_results_per_query": {
              "default": 30,
              "description": "Maximum number of search results to consider per research query.",
              "maximum": 60,
              "minimum": 1,
              "title": "Research Maximum Number Of Results Per Query",
              "type": "integer"
            },
            "research_maximum_number_of_seconds": {
              "default": 180,
              "description": "Time budget for research, in seconds.",
              "maximum": 300,
              "minimum": 1,
              "title": "Research Maximum Number Of Seconds",
              "type": "integer"
            },
            "research_maximum_number_of_tokens_per_query": {
              "default": 8192,
              "description": "Maximum number of tokens to gather per research query.",
              "maximum": 16384,
              "minimum": 1024,
              "title": "Research Maximum Number Of Tokens Per Query",
              "type": "integer"
            },
            "safesearch": {
              "default": "moderate",
              "title": "Safesearch",
              "type": "string"
            },
            "seed": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Accepted for OpenAI SDK compatibility and currently ignored: answers are not reproducible.",
              "title": "Seed"
            },
            "stream": {
              "default": true,
              "title": "Stream",
              "type": "boolean"
            },
            "web_search_options": {
              "anyOf": [
                {
                  "properties": {
                    "search_context_size": {
                      "anyOf": [
                        {
                          "enum": [
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "title": "Search Context Size"
                    },
                    "user_location": {
                      "anyOf": [
                        {
                          "properties": {
                            "approximate": {
                              "properties": {
                                "city": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "title": "City"
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "title": "Country"
                                },
                                "region": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "title": "Region"
                                },
                                "timezone": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "title": "Timezone"
                                }
                              },
                              "title": "ApproximateUserLocation",
                              "type": "object"
                            },
                            "type": {
                              "const": "approximate",
                              "default": "approximate",
                              "enum": [
                                "approximate"
                              ],
                              "title": "Type",
                              "type": "string"
                            }
                          },
                          "required": [
                            "approximate"
                          ],
                          "title": "UserLocation",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "title": "WebSearchOptions",
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "messages"
          ],
          "title": "OpenAIChatRequest",
          "type": "object"
        }
      }
    },
    "description": "",
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

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


## OpenAPI

````yaml openapi/brave-answer.json POST /apis/v1/brave/chat/completions
openapi: 3.1.0
info:
  description: ''
  title: Brave Answer
  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:
    brave-answer:
      description: ''
      title: Brave Answer
      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: 6b3a9238888646dc28002fb62a3125d7042858e20a008775d1444a01ddacef9d
        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/brave/chat/completions
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:e588c3fee07da6634a0af9b317cef0a74bc0b3c4258dfe1ca546bfa71587ca2e
    facts_hash: 6b3a9238888646dc28002fb62a3125d7042858e20a008775d1444a01ddacef9d
    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: brave-answer
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/brave/chat/completions:
    post:
      tags:
        - default
      summary: Answers
      operationId: any_brave_answer_apis_v1_brave_chat_completions
      requestBody:
        content:
          application/json:
            schema:
              properties:
                country:
                  default: us
                  title: Country
                  type: string
                enable_citations:
                  default: false
                  description: >-
                    Whether to include inline citation tags in the answer.
                    Requires <code>stream=true</code> and is not supported in
                    research mode.
                  title: Enable Citations
                  type: boolean
                enable_entities:
                  default: false
                  description: >-
                    Whether to include inline entity tags in the answer.
                    Requires <code>stream=true</code> and is not supported in
                    research mode.
                  title: Enable Entities
                  type: boolean
                enable_research:
                  default: false
                  description: >-
                    Whether to answer with iterative deep research instead of a
                    single search. Requires <code>stream=true</code>.
                  title: Enable Research
                  type: boolean
                language:
                  default: en
                  title: Language
                  type: string
                max_completion_tokens:
                  anyOf:
                    - type: integer
                    - type: 'null'
                  title: Max Completion Tokens
                messages:
                  description: >-
                    The conversation so far. Exactly one <code>user</code>
                    message is supported, e.g. <code>[{&quot;role&quot;:
                    &quot;user&quot;, &quot;content&quot;: &quot;Explain quantum
                    computing&quot;}]</code>.
                  items:
                    properties:
                      content:
                        title: Content
                        type: string
                      role:
                        const: user
                        default: user
                        enum:
                          - user
                        title: Role
                        type: string
                    required:
                      - content
                    title: UserMessage
                    type: object
                  maxItems: 1
                  minItems: 1
                  title: Messages
                  type: array
                metadata:
                  anyOf:
                    - additionalProperties:
                        type: string
                      type: object
                    - type: 'null'
                  description: >-
                    Accepted for OpenAI SDK compatibility and currently ignored:
                    the pairs are not stored or returned.
                  title: Metadata
                model:
                  default: brave-pro
                  description: Model ID used to generate the response.
                  enum:
                    - brave-pro
                    - brave
                  title: Model
                  type: string
                research_allow_thinking:
                  default: true
                  description: >-
                    Accepted for compatibility. Ignored by the mixer engine
                    behind this API, which always runs research with extended
                    thinking off.
                  title: Research Allow Thinking
                  type: boolean
                research_maximum_number_of_iterations:
                  default: 4
                  description: Maximum number of research iterations.
                  maximum: 5
                  minimum: 1
                  title: Research Maximum Number Of Iterations
                  type: integer
                research_maximum_number_of_queries:
                  default: 20
                  description: >-
                    Maximum number of search queries research mode may issue in
                    total.
                  maximum: 50
                  minimum: 1
                  title: Research Maximum Number Of Queries
                  type: integer
                research_maximum_number_of_results_per_query:
                  default: 30
                  description: >-
                    Maximum number of search results to consider per research
                    query.
                  maximum: 60
                  minimum: 1
                  title: Research Maximum Number Of Results Per Query
                  type: integer
                research_maximum_number_of_seconds:
                  default: 180
                  description: Time budget for research, in seconds.
                  maximum: 300
                  minimum: 1
                  title: Research Maximum Number Of Seconds
                  type: integer
                research_maximum_number_of_tokens_per_query:
                  default: 8192
                  description: Maximum number of tokens to gather per research query.
                  maximum: 16384
                  minimum: 1024
                  title: Research Maximum Number Of Tokens Per Query
                  type: integer
                safesearch:
                  default: moderate
                  title: Safesearch
                  type: string
                seed:
                  anyOf:
                    - type: integer
                    - type: 'null'
                  description: >-
                    Accepted for OpenAI SDK compatibility and currently ignored:
                    answers are not reproducible.
                  title: Seed
                stream:
                  default: true
                  title: Stream
                  type: boolean
                web_search_options:
                  anyOf:
                    - properties:
                        search_context_size:
                          anyOf:
                            - enum:
                                - low
                                - medium
                                - high
                              type: string
                            - type: 'null'
                          title: Search Context Size
                        user_location:
                          anyOf:
                            - properties:
                                approximate:
                                  properties:
                                    city:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      title: City
                                    country:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      title: Country
                                    region:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      title: Region
                                    timezone:
                                      anyOf:
                                        - type: string
                                        - type: 'null'
                                      title: Timezone
                                  title: ApproximateUserLocation
                                  type: object
                                type:
                                  const: approximate
                                  default: approximate
                                  enum:
                                    - approximate
                                  title: Type
                                  type: string
                              required:
                                - approximate
                              title: UserLocation
                              type: object
                            - type: 'null'
                      title: WebSearchOptions
                      type: object
                    - type: 'null'
              required:
                - messages
              title: OpenAIChatRequest
              type: object
        description: ''
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFea24D07380F_OpenAIChatResponse'
          description: Successful Response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    ResponseFea24D07380F_OpenAIChatResponse:
      properties:
        choices:
          items:
            $ref: '#/components/schemas/ResponseFea24D07380F_ChoiceChunk'
          title: Choices
          type: array
        created:
          title: Created
          type: integer
        id:
          title: Id
          type: string
        model:
          default: brave-pro
          enum:
            - brave-pro
            - brave
          title: Model
          type: string
        object:
          const: chat.completion.chunk
          default: chat.completion.chunk
          enum:
            - chat.completion.chunk
          title: Object
          type: string
        system_fingerprint:
          anyOf:
            - type: string
            - type: 'null'
          title: System Fingerprint
        usage:
          anyOf:
            - $ref: '#/components/schemas/ResponseFea24D07380F_OpenAIUsage'
            - type: 'null'
      required:
        - choices
        - created
        - id
      title: OpenAIChatResponse
      type: object
    ResponseFea24D07380F_ChoiceChunk:
      properties:
        delta:
          $ref: '#/components/schemas/ResponseFea24D07380F_Delta'
        finish_reason:
          anyOf:
            - enum:
                - stop
                - length
              type: string
            - type: 'null'
          title: Finish Reason
      required:
        - delta
      title: ChoiceChunk
      type: object
    ResponseFea24D07380F_OpenAIUsage:
      properties:
        completion_tokens:
          title: Completion Tokens
          type: integer
        completion_tokens_details:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseFea24D07380F_OpenAICompletionTokensDetails
            - type: 'null'
        prompt_tokens:
          title: Prompt Tokens
          type: integer
        total_tokens:
          title: Total Tokens
          type: integer
      required:
        - completion_tokens
        - prompt_tokens
        - total_tokens
      title: OpenAIUsage
      type: object
    ResponseFea24D07380F_Delta:
      properties:
        content:
          title: Content
          type: string
        role:
          const: assistant
          default: assistant
          enum:
            - assistant
          title: Role
          type: string
      required:
        - content
      title: Delta
      type: object
    ResponseFea24D07380F_OpenAICompletionTokensDetails:
      properties:
        reasoning_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Reasoning Tokens
      title: OpenAICompletionTokensDetails
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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