Reference example
# 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
}'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."
}
'import requests
url = "https://api.aisa.one/apis/v1/openai-websearch/search"
payload = { "input": "What are the three biggest AI announcements this week? Give one sentence each with sources." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: 'What are the three biggest AI announcements this week? Give one sentence each with sources.'
})
};
fetch('https://api.aisa.one/apis/v1/openai-websearch/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/openai-websearch/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => 'What are the three biggest AI announcements this week? Give one sentence each with sources.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/openai-websearch/search"
payload := strings.NewReader("{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/openai-websearch/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/openai-websearch/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"status": "completed",
"output": [
{}
],
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
}
}
}Web Search (GEO)
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.
POST
https://api.aisa.one
/
apis
/
v1
/
openai-websearch
/
search
Reference example
# 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
}'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."
}
'import requests
url = "https://api.aisa.one/apis/v1/openai-websearch/search"
payload = { "input": "What are the three biggest AI announcements this week? Give one sentence each with sources." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: 'What are the three biggest AI announcements this week? Give one sentence each with sources.'
})
};
fetch('https://api.aisa.one/apis/v1/openai-websearch/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/openai-websearch/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => 'What are the three biggest AI announcements this week? Give one sentence each with sources.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/openai-websearch/search"
payload := strings.NewReader("{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/openai-websearch/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/openai-websearch/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": \"What are the three biggest AI announcements this week? Give one sentence each with sources.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"status": "completed",
"output": [
{}
],
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
}
}
}Ask a question and get an answer that an OpenAI model wrote after searching the live web. Send a Responses request — an
Set this endpoint up in your agent →
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, and for raw ranked links with extracted page text use post_tavily_search.
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 five tools: search,
list_categories and get_details are free, use and batch_use are
billed per call. Setup per client is in
Connect via MCP; the live tool list and what each call
costs are on aisa.one/mcp.Request contract
- Method and path: POST /apis/v1/openai-websearch/search
- Request URL template: https://api.aisa.one/apis/v1/openai-websearch/search
- Runtime facts: ef23b251376b327f7b60ff399bdd4d51ed6b5646174adbf34fb19d7988f5e01f
{
"operationId": "post_openai_websearch_search",
"method": "POST",
"path": "/apis/v1/openai-websearch/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"input"
],
"properties": {
"input": {
"type": "string",
"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."
},
"max_output_tokens": {
"type": "integer",
"description": "Optional cap on the number of tokens generated in the answer.",
"example": 1024
},
"instructions": {
"type": "string",
"description": "Optional high-level instructions to steer the answer's tone or format."
}
}
},
"example": {
"input": "What are the three biggest AI announcements this week? Give one sentence each with sources.",
"max_output_tokens": 1024
}
}
}
},
"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"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based billing; Default request estimate: $0.3 USD (not a fixed price). Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.3
- Cost contract: response_components
- Published reference multiplier: 1.0
- Settlement evidence source: response_body
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
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."
Optional cap on the number of tokens generated in the answer.
Example:
1024
Optional high-level instructions to steer the answer's tone or format.
Response
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.