{
  "components": {
    "callbacks": {},
    "examples": {},
    "headers": {},
    "links": {},
    "parameters": {},
    "pathItems": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {},
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "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.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        }
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/openai-websearch/search"
    ],
    "x-aisa-document": {
      "composer_version": "26",
      "document_hash": "sha256:c145b1e41e808d486ffa960c03e68ca2fd79a24e23c2197e0bf4d5b982206d02",
      "facts_hash": "4d4dc985913e9dd776e8ece0ab289cd700792dfaa050b2b3a2f911751ac0069b",
      "generator_version": "3",
      "protocol_version": "1",
      "response_pending": [],
      "schema_version": "1"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "openai-web-search"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/openai-websearch/search": {
      "post": {
        "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).\n\n<!-- aisa-pricing:start -->\n按用量计费；默认请求预估费用：$0.3 USD（不是固定价格）。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "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"
          }
        },
        "summary": "OpenAI Web Search",
        "tags": [
          "websearch"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": false,
          "mpp_methods": [],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "openai-web-search",
        "x-aisa-category": "search",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/search/post_openai-websearch-search",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "response_components",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.3,
          "estimate_source": "profile_seed",
          "evidence_source": "response_body"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": true,
          "request_wins": false
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:2cacd0c9ff56180294d17e6500331c19bcf1d1dc541e585ed73b5c5fa8a7ca65",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:2216c80c42a2a3f3c14365c1e05d8d8beedac01286ef5240b08b4b4219e490a3",
            "converter": "scripts/import_existing_contracts.py@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:a5c3ad6b8722c55296ff05c07a1c8bccf1650bd6d81e8ddd78d41a77af0aeeff",
            "refresh_policy": "manual",
            "review_period_days": 30,
            "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/websearch.json"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "bee52a3f0c8a",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "677e89cda539"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "post_openai_websearch_search",
          "path": "/apis/v1/openai-websearch/search"
        },
        "x-aisa-source": {
          "content_hash": "sha256:2216c80c42a2a3f3c14365c1e05d8d8beedac01286ef5240b08b4b4219e490a3",
          "converter": "scripts/import_existing_contracts.py@1",
          "fetched_at": "2026-09-29T21:25:55+08:00",
          "kind": "manual",
          "owner": "AIsa-team/docs",
          "path_space": "public",
          "policy_revision": "sha256:a5c3ad6b8722c55296ff05c07a1c8bccf1650bd6d81e8ddd78d41a77af0aeeff",
          "refresh_policy": "manual",
          "review_period_days": 30,
          "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/websearch.json"
        },
        "x-aisa-status": "disabled",
        "x-aisa-upstream-path": "/v1/responses",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/openai-websearch/search \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\",\n  \"max_output_tokens\": 1024\n}'"
          }
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
