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

# Suggest

> Suggest

## 请求规范

* **方法与路径:** GET /apis/v1/brave/suggest/search
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/brave/suggest/search`
* **accept:** header; 可选
* **api-version:** header; 可选
* **cache-control:** header; 可选
* **user-agent:** header; 可选
* **count:** query; 可选
* **country:** query; 可选
* **lang:** query; 可选
* **q:** query; 必填
* **rich:** query; 可选

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

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

```json theme={null}
{
  "operationId": "any_brave_search_apis_v1_brave_suggest_search",
  "method": "GET",
  "path": "/apis/v1/brave/suggest/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "deprecated": false,
      "description": "The default supported media type is application/json.",
      "examples": {
        "0": {
          "value": "application/json"
        }
      },
      "in": "header",
      "name": "accept",
      "required": false,
      "schema": {
        "allOf": [
          {
            "enum": [
              "application/json",
              "*/*"
            ],
            "title": "Accept",
            "type": "string"
          },
          {
            "default": "application/json"
          }
        ],
        "description": "The default supported media type is application/json.",
        "examples": [
          "application/json"
        ],
        "title": "Media type"
      }
    },
    {
      "deprecated": false,
      "description": "The API version to use.                 This is denoted by the format <code>YYYY-MM-DD</code>.                 Default is the latest that is available. Read                 more about <a href=\"/documentation/guides/versioning\">API versioning</a>.",
      "in": "header",
      "name": "api-version",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "The API version to use.                 This is denoted by the format <code>YYYY-MM-DD</code>.                 Default is the latest that is available. Read                 more about <a href=\"/documentation/guides/versioning\">API versioning</a>.",
        "title": "API version"
      }
    },
    {
      "deprecated": false,
      "description": "Brave Search will return cached content by default.                 To prevent caching set the Cache-Control header to <code>no-cache</code>.                 This is currently done as best effort.",
      "in": "header",
      "name": "cache-control",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "const": "no-cache",
            "enum": [
              "no-cache"
            ],
            "title": "CacheControl",
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Brave Search will return cached content by default.                 To prevent caching set the Cache-Control header to <code>no-cache</code>.                 This is currently done as best effort.",
        "title": "Cache control"
      }
    },
    {
      "deprecated": false,
      "description": "The user agent originating the request.                 Brave search can utilize the user agent to provide a different                 experience depending on the device as described by the string.                 The user agent should follow the commonly used browser agent                 strings on each platform. For more information on curating user agents,                 see <a href=\"https://www.rfc-editor.org/rfc/rfc9110.html#name-user-agent\">RFC 9110</a>.",
      "examples": {
        "Android": {
          "description": "Android",
          "value": "Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.71 Mobile Safari/537.36"
        },
        "Windows": {
          "description": "Windows",
          "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        "iOS": {
          "description": "iOS",
          "value": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.63 Mobile/15E148 Safari/604.1"
        },
        "macOS": {
          "description": "macOS",
          "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        }
      },
      "in": "header",
      "name": "user-agent",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "The user agent originating the request.                 Brave search can utilize the user agent to provide a different                 experience depending on the device as described by the string.                 The user agent should follow the commonly used browser agent                 strings on each platform. For more information on curating user agents,                 see <a href=\"https://www.rfc-editor.org/rfc/rfc9110.html#name-user-agent\">RFC 9110</a>.",
        "title": "User agent"
      }
    },
    {
      "deprecated": false,
      "description": "The number of suggestion search results returned in response. The actual number of results delivered may be less than requested. Minimum is 1, maximum is 20. The default is 5.",
      "in": "query",
      "name": "count",
      "required": false,
      "schema": {
        "default": 5,
        "description": "The number of suggestion search results returned in response. The actual number of results delivered may be less than requested. Minimum is 1, maximum is 20. The default is 5.",
        "maximum": 20,
        "minimum": 1,
        "title": "Count",
        "type": "integer"
      }
    },
    {
      "deprecated": false,
      "description": "The suggest search query country, where potentially the results could come from. The country string is limited to 2 character country codes of supported countries. This is a just a hint for calculating suggest responses.",
      "in": "query",
      "name": "country",
      "required": false,
      "schema": {
        "allOf": [
          {
            "enum": [
              "AR",
              "AU",
              "AT",
              "BE",
              "BR",
              "CA",
              "CL",
              "DK",
              "FI",
              "FR",
              "DE",
              "GR",
              "HK",
              "IN",
              "ID",
              "IT",
              "JP",
              "KR",
              "MY",
              "MX",
              "NL",
              "NZ",
              "NO",
              "CN",
              "PL",
              "PT",
              "PH",
              "RU",
              "SA",
              "ZA",
              "ES",
              "SE",
              "CH",
              "TW",
              "TR",
              "GB",
              "US",
              "ALL"
            ],
            "title": "SearchCountry",
            "type": "string"
          },
          {
            "default": "US"
          }
        ],
        "description": "The suggest search query country, where potentially the results could come from. The country string is limited to 2 character country codes of supported countries. This is a just a hint for calculating suggest responses."
      }
    },
    {
      "deprecated": false,
      "description": "The suggest search language preference, where potentially the results could come from. The 2 or more character language code for which the suggest search results are provided. This is a just a hint for calculating suggest responses.",
      "in": "query",
      "name": "lang",
      "required": false,
      "schema": {
        "allOf": [
          {
            "enum": [
              "ar",
              "eu",
              "bn",
              "bg",
              "ca",
              "zh-hans",
              "zh-hant",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "en-gb",
              "et",
              "fi",
              "fr",
              "gl",
              "de",
              "el",
              "gu",
              "he",
              "hi",
              "hu",
              "is",
              "it",
              "ja",
              "jp",
              "kn",
              "ko",
              "lv",
              "lt",
              "ms",
              "ml",
              "mr",
              "nb",
              "pl",
              "pt-br",
              "pt-pt",
              "pa",
              "ro",
              "ru",
              "sr",
              "sk",
              "sl",
              "es",
              "sv",
              "ta",
              "te",
              "th",
              "tr",
              "uk",
              "vi"
            ],
            "title": "Language",
            "type": "string"
          },
          {
            "default": "en"
          }
        ],
        "description": "The suggest search language preference, where potentially the results could come from. The 2 or more character language code for which the suggest search results are provided. This is a just a hint for calculating suggest responses."
      }
    },
    {
      "deprecated": false,
      "description": "The user’s suggest search query term. Query can not be empty. The max query length is 400 characters, and the word limit is 50 words.",
      "in": "query",
      "name": "q",
      "required": true,
      "schema": {
        "description": "The user’s suggest search query term. Query can not be empty. The max query length is 400 characters, and the word limit is 50 words.",
        "maxLength": 400,
        "minLength": 1,
        "title": "The user's suggest search query term.",
        "type": "string"
      }
    },
    {
      "deprecated": false,
      "description": "Whether to enhance suggestions with rich results. This requires a paid autosuggest subscription.",
      "examples": {
        "Exclude rich suggestions": {
          "value": false
        },
        "Include rich suggestions": {
          "value": true
        }
      },
      "in": "query",
      "name": "rich",
      "required": false,
      "schema": {
        "default": false,
        "description": "Whether to enhance suggestions with rich results. This requires a paid autosuggest subscription.",
        "title": "Rich",
        "type": "boolean"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/brave-search.json GET /apis/v1/brave/suggest/search
openapi: 3.1.0
info:
  description: ''
  title: Brave Search
  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-search:
      description: ''
      title: Brave Search
      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: 1a33626eaeae62e76e9c639775194a0fb4a6aa9a06aa3c4da50f9205e06ac5e3
        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/images/search
    - /apis/v1/brave/llm/context
    - /apis/v1/brave/local/descriptions
    - /apis/v1/brave/local/place_search
    - /apis/v1/brave/local/pois
    - /apis/v1/brave/news/search
    - /apis/v1/brave/spellcheck/search
    - /apis/v1/brave/suggest/search
    - /apis/v1/brave/videos/search
    - /apis/v1/brave/web/rich
    - /apis/v1/brave/web/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:6bdf9a79120cfa3c1510309a034288fe7081adac85a7e7aba9c8759638fc9a24
    facts_hash: 1a33626eaeae62e76e9c639775194a0fb4a6aa9a06aa3c4da50f9205e06ac5e3
    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-search
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/brave/suggest/search:
    get:
      tags:
        - default
      summary: Suggest
      operationId: any_brave_search_apis_v1_brave_suggest_search
      parameters:
        - deprecated: false
          description: The default supported media type is application/json.
          examples:
            '0':
              value: application/json
          in: header
          name: accept
          required: false
          schema:
            allOf:
              - enum:
                  - application/json
                  - '*/*'
                title: Accept
                type: string
              - default: application/json
            description: The default supported media type is application/json.
            examples:
              - application/json
            title: Media type
        - deprecated: false
          description: >-
            The API version to use.                 This is denoted by the
            format <code>YYYY-MM-DD</code>.                 Default is the
            latest that is available. Read                 more about <a
            href="/documentation/guides/versioning">API versioning</a>.
          in: header
          name: api-version
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The API version to use.                 This is denoted by the
              format <code>YYYY-MM-DD</code>.                 Default is the
              latest that is available. Read                 more about <a
              href="/documentation/guides/versioning">API versioning</a>.
            title: API version
        - deprecated: false
          description: >-
            Brave Search will return cached content by default.                
            To prevent caching set the Cache-Control header to
            <code>no-cache</code>.                 This is currently done as
            best effort.
          in: header
          name: cache-control
          required: false
          schema:
            anyOf:
              - const: no-cache
                enum:
                  - no-cache
                title: CacheControl
                type: string
              - type: 'null'
            description: >-
              Brave Search will return cached content by
              default.                 To prevent caching set the Cache-Control
              header to <code>no-cache</code>.                 This is currently
              done as best effort.
            title: Cache control
        - deprecated: false
          description: >-
            The user agent originating the request.                 Brave search
            can utilize the user agent to provide a different                
            experience depending on the device as described by the
            string.                 The user agent should follow the commonly
            used browser agent                 strings on each platform. For
            more information on curating user agents,                 see <a
            href="https://www.rfc-editor.org/rfc/rfc9110.html#name-user-agent">RFC
            9110</a>.
          examples:
            Android:
              description: Android
              value: >-
                Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 (KHTML, like
                Gecko) Chrome/103.0.5060.71 Mobile Safari/537.36
            Windows:
              description: Windows
              value: >-
                Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
                (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
            iOS:
              description: iOS
              value: >-
                Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X)
                AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.63
                Mobile/15E148 Safari/604.1
            macOS:
              description: macOS
              value: >-
                Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4) AppleWebKit/537.36
                (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
          in: header
          name: user-agent
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              The user agent originating the request.                 Brave
              search can utilize the user agent to provide a
              different                 experience depending on the device as
              described by the string.                 The user agent should
              follow the commonly used browser agent                 strings on
              each platform. For more information on curating user
              agents,                 see <a
              href="https://www.rfc-editor.org/rfc/rfc9110.html#name-user-agent">RFC
              9110</a>.
            title: User agent
        - deprecated: false
          description: >-
            The number of suggestion search results returned in response. The
            actual number of results delivered may be less than requested.
            Minimum is 1, maximum is 20. The default is 5.
          in: query
          name: count
          required: false
          schema:
            default: 5
            description: >-
              The number of suggestion search results returned in response. The
              actual number of results delivered may be less than requested.
              Minimum is 1, maximum is 20. The default is 5.
            maximum: 20
            minimum: 1
            title: Count
            type: integer
        - deprecated: false
          description: >-
            The suggest search query country, where potentially the results
            could come from. The country string is limited to 2 character
            country codes of supported countries. This is a just a hint for
            calculating suggest responses.
          in: query
          name: country
          required: false
          schema:
            allOf:
              - enum:
                  - AR
                  - AU
                  - AT
                  - BE
                  - BR
                  - CA
                  - CL
                  - DK
                  - FI
                  - FR
                  - DE
                  - GR
                  - HK
                  - IN
                  - ID
                  - IT
                  - JP
                  - KR
                  - MY
                  - MX
                  - NL
                  - NZ
                  - 'NO'
                  - CN
                  - PL
                  - PT
                  - PH
                  - RU
                  - SA
                  - ZA
                  - ES
                  - SE
                  - CH
                  - TW
                  - TR
                  - GB
                  - US
                  - ALL
                title: SearchCountry
                type: string
              - default: US
            description: >-
              The suggest search query country, where potentially the results
              could come from. The country string is limited to 2 character
              country codes of supported countries. This is a just a hint for
              calculating suggest responses.
        - deprecated: false
          description: >-
            The suggest search language preference, where potentially the
            results could come from. The 2 or more character language code for
            which the suggest search results are provided. This is a just a hint
            for calculating suggest responses.
          in: query
          name: lang
          required: false
          schema:
            allOf:
              - enum:
                  - ar
                  - eu
                  - bn
                  - bg
                  - ca
                  - zh-hans
                  - zh-hant
                  - hr
                  - cs
                  - da
                  - nl
                  - en
                  - en-gb
                  - et
                  - fi
                  - fr
                  - gl
                  - de
                  - el
                  - gu
                  - he
                  - hi
                  - hu
                  - is
                  - it
                  - ja
                  - jp
                  - kn
                  - ko
                  - lv
                  - lt
                  - ms
                  - ml
                  - mr
                  - nb
                  - pl
                  - pt-br
                  - pt-pt
                  - pa
                  - ro
                  - ru
                  - sr
                  - sk
                  - sl
                  - es
                  - sv
                  - ta
                  - te
                  - th
                  - tr
                  - uk
                  - vi
                title: Language
                type: string
              - default: en
            description: >-
              The suggest search language preference, where potentially the
              results could come from. The 2 or more character language code for
              which the suggest search results are provided. This is a just a
              hint for calculating suggest responses.
        - deprecated: false
          description: >-
            The user’s suggest search query term. Query can not be empty. The
            max query length is 400 characters, and the word limit is 50 words.
          in: query
          name: q
          required: true
          schema:
            description: >-
              The user’s suggest search query term. Query can not be empty. The
              max query length is 400 characters, and the word limit is 50
              words.
            maxLength: 400
            minLength: 1
            title: The user's suggest search query term.
            type: string
        - deprecated: false
          description: >-
            Whether to enhance suggestions with rich results. This requires a
            paid autosuggest subscription.
          examples:
            Exclude rich suggestions:
              value: false
            Include rich suggestions:
              value: true
          in: query
          name: rich
          required: false
          schema:
            default: false
            description: >-
              Whether to enhance suggestions with rich results. This requires a
              paid autosuggest subscription.
            title: Rich
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ResponseFea24D07380F_SuggestSearchApiResponse
          description: Successful Response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    ResponseFea24D07380F_SuggestSearchApiResponse:
      properties:
        query:
          $ref: '#/components/schemas/ResponseFea24D07380F_OriginalQuery'
          description: Suggest search query string. Only the original query is returned.
        results:
          default: []
          description: The list of suggestions for the given query.
          items:
            $ref: '#/components/schemas/ResponseFea24D07380F_SuggestResult'
          title: Results
          type: array
        type:
          const: suggest
          default: suggest
          enum:
            - suggest
          title: Type
          type: string
      required:
        - query
      title: SuggestSearchApiResponse
      type: object
    ResponseFea24D07380F_OriginalQuery:
      properties:
        original:
          description: The original query that was requested.
          title: Original
          type: string
      required:
        - original
      title: OriginalQuery
      type: object
    ResponseFea24D07380F_SuggestResult:
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: The suggested query enriched description.
          title: Description
        img:
          anyOf:
            - type: string
            - type: 'null'
          description: The suggested query enriched image URL.
          title: Img
        is_entity:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Whether the suggested enriched query is an entity. Deprecated: use
            <code>type</code> instead.
          title: Is Entity
        query:
          description: Suggested query completion.
          title: Query
          type: string
        title:
          anyOf:
            - type: string
            - type: 'null'
          description: The suggested query enriched title.
          title: Title
        type:
          anyOf:
            - $ref: '#/components/schemas/ResponseFea24D07380F_SuggestType'
            - type: 'null'
          description: >-
            Kind of suggestion, currently <code>query</code> or
            <code>entity</code>. New kinds may be added, so treat an
            unrecognised value as a plain query suggestion.
      required:
        - query
      title: SuggestResult
      type: object
    ResponseFea24D07380F_SuggestType:
      description: >-
        <p>Kind tag on a rich suggestion entry.</p>

        <p>Open set: mixer emits these today, but we may add Rich Header
        verticals

        over time, so consumers must render an unrecognised value as plain
        text.</p>
      enum:
        - query
        - entity
        - calculator
      title: SuggestType
      type: string
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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