Call it
curl https://api.peume.com/v1/call/bing-ask-copilot \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/bing-ask-copilot", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bing-ask-copilot",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: bing-ask-copilot.
Parameters
qRequiredstringThe search query for Bing Copilot. You can use anything that you would use in a regular Bing Copilot search. Parameter length can not exceed 4000 characters once URL-encoded. A space takes 1 character, most punctuation 3, and a non-ASCII character 6 or more.
locationstringFrom where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. It is recommended to specify `location` at the city level in order to simulate a real user’s search. If `location` is omitted, the search may take on the location of the proxy. Parameter can't be used with `lat` or `lon` parameters.
lonstringA GPS longitude for the search origin. Parameter is required when using `lat` parameter. Parameter can't be used with `location` parameter.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
latstringA GPS latitude for the search origin. Parameter is required when using `lon` parameter. Parameter can't be used with `location` parameter.
