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

# OpenAI Web Search

> Ask a question and get an OpenAI-model answer grounded in a live web search, with the underlying sources and URL citations, billed at exact cost.

Ask a question and get an answer that an OpenAI model wrote after searching the live web. Send a Responses request — an `input` string (or message array) — and the endpoint injects a fixed, server-pinned model and the `web_search` tool for you; the model, tool and per-request search cap are server-controlled to keep cost bounded. The reply is a standard OpenAI Responses object: `output[]` contains `web_search_call` items (each a search that ran) and a `message` item with the answer text and URL citations, and the billed search count equals the number of `web_search_call` items. Billing is pay-as-you-go: a per-search charge for each of `web_search_calls` plus the model's own token cost (fresh input = `input_tokens − cached`). Use this when you want a written, cited answer grounded in current web content from an OpenAI model — for the Anthropic-model equivalent see [`post_anthropic_websearch_search`](https://aisa.one/docs/api-reference/search/post_anthropic-websearch-search), and for raw ranked links with extracted page text use [`post_tavily_search`](https://aisa.one/docs/api-reference/search/post_tavily-search).

> [!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_openai-websearch-search)

Currently disabled.

## Request contract

* **Method and path:** POST /apis/v1/openai-websearch/search
* **Availability:** disabled

**This endpoint is disabled and cannot be called. Its historical request and schema details are retained for reference; pricing is not published.**

* **Request URL template:** `https://api.aisa.one/apis/v1/openai-websearch/search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/openai-web-search.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_openai_websearch_search",
  "method": "POST",
  "path": "/apis/v1/openai-websearch/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "example": {
          "input": "What are the three biggest AI announcements this week? Give one sentence each with sources.",
          "max_output_tokens": 1024
        },
        "schema": {
          "properties": {
            "input": {
              "description": "Your question or instruction, same format as the OpenAI Responses API `input`. A message array is also accepted.",
              "example": "What are the three biggest AI announcements this week? Give one sentence each with sources.",
              "type": "string"
            },
            "instructions": {
              "description": "Optional high-level instructions to steer the answer's tone or format.",
              "type": "string"
            },
            "max_output_tokens": {
              "description": "Optional cap on the number of tokens generated in the answer.",
              "example": 1024,
              "type": "integer"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "disabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Historical archive: disabled, cannot be called, and no price is published.


## OpenAPI

````yaml openapi/openai-web-search.json POST /apis/v1/openai-websearch/search
openapi: 3.1.0
info:
  description: ''
  title: OpenAI Web Search (GEO)
  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:
    openai-web-search:
      description: ''
      title: OpenAI Web Search (GEO)
      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: 4d4dc985913e9dd776e8ece0ab289cd700792dfaa050b2b3a2f911751ac0069b
        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/openai-websearch/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:aa2b7c00c412316ff596f523fade66c8894bac394a3e9904d9a6b8ef7ed6868b
    facts_hash: 4d4dc985913e9dd776e8ece0ab289cd700792dfaa050b2b3a2f911751ac0069b
    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: openai-web-search
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/openai-websearch/search:
    post:
      tags:
        - websearch
      summary: OpenAI Web Search
      description: >-
        Ask a question and get an answer that an OpenAI model wrote after
        searching the live web. Send a Responses request — an `input` string (or
        message array) — and the endpoint injects a fixed, server-pinned model
        and the `web_search` tool for you; the model, tool and per-request
        search cap are server-controlled to keep cost bounded. The reply is a
        standard OpenAI Responses object: `output[]` contains `web_search_call`
        items (each a search that ran) and a `message` item with the answer text
        and URL citations, and the billed search count equals the number of
        `web_search_call` items.  Use this when you want a written, cited answer
        grounded in current web content from an OpenAI model — for the
        Anthropic-model equivalent see
        [`post_anthropic_websearch_search`](/api-reference/search/post_anthropic-websearch-search),
        and for raw ranked links with extracted page text use
        [`post_tavily_search`](/api-reference/search/post_tavily-search).
      operationId: post_openai_websearch_search
      requestBody:
        content:
          application/json:
            example:
              input: >-
                What are the three biggest AI announcements this week? Give one
                sentence each with sources.
              max_output_tokens: 1024
            schema:
              properties:
                input:
                  description: >-
                    Your question or instruction, same format as the OpenAI
                    Responses API `input`. A message array is also accepted.
                  example: >-
                    What are the three biggest AI announcements this week? Give
                    one sentence each with sources.
                  type: string
                instructions:
                  description: >-
                    Optional high-level instructions to steer the answer's tone
                    or format.
                  type: string
                max_output_tokens:
                  description: >-
                    Optional cap on the number of tokens generated in the
                    answer.
                  example: 1024
                  type: integer
              required:
                - input
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  id:
                    type: string
                  object:
                    example: response
                    type: string
                  output:
                    description: >-
                      Ordered items: web_search_call (searches performed) and
                      message (the cited answer).
                    items:
                      type: object
                    type: array
                  status:
                    example: completed
                    type: string
                  usage:
                    properties:
                      input_tokens:
                        type: integer
                      input_tokens_details:
                        properties:
                          cached_tokens:
                            type: integer
                        type: object
                      output_tokens:
                        type: integer
                    type: object
                type: object
          description: >-
            A standard OpenAI Responses object. `output[]` interleaves
            web_search_call items and the cited answer message; the number of
            web_search_call items is the billed search count.
        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/openai-websearch/search \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "input": "What are the three biggest AI announcements this week? Give one sentence each with sources.",
              "max_output_tokens": 1024
            }'
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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