Call it
curl https://api.peume.com/v1/call/bing-ai-mode-answer-text-sources-citation-pills \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "best running shoes for flat feet",
"country": "US",
"state": "CA"
}
}'const res = await fetch("https://api.peume.com/v1/call/bing-ai-mode-answer-text-sources-citation-pills", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "best running shoes for flat feet",
"country": "US",
"state": "CA"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bing-ai-mode-answer-text-sources-citation-pills",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "best running shoes for flat feet",
"country": "US",
"state": "CA"
}
},
)
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-ai-mode-answer-text-sources-citation-pills.
Parameters
promptRequiredstringat most 3,500 characters after URL encoding, so fewer for non-Latin scripts
Example: best running shoes for flat feet
countryRequiredstringISO 3166-1 alpha-2. CN, KR and RU are refused; use.account.coverage.countries for the current list.
Example: US
statestringUS state code for state-level targeting; adds 2 credits
Example: CA
includeobjectany of markdown, html. Both are free on this endpoint.
