Call it
curl https://api.peume.com/v1/call/research-a-web-question \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "What is example.com used for?",
"outputType": "sourcedAnswer",
"reasoningDepth": "S",
"mode": "auto"
}
}'const res = await fetch("https://api.peume.com/v1/call/research-a-web-question", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "What is example.com used for?",
"outputType": "sourcedAnswer",
"reasoningDepth": "S",
"mode": "auto"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/research-a-web-question",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "What is example.com used for?",
"outputType": "sourcedAnswer",
"reasoningDepth": "S",
"mode": "auto"
}
},
)
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: research-a-web-question.
Parameters
qRequiredstringExample: What is example.com used for?
outputTypeRequiredstringsourcedAnswer · structured
Example: sourcedAnswer
reasoningDepthstringS · M · L · XL
Example: S
modestringanswer · auto · investigate · research
Example: auto
includeDomainsarrayexcludeDomainsarrayfromDatestringISO date YYYY-MM-DD.
toDatestringISO date YYYY-MM-DD.
structuredOutputSchemastringJSON Schema encoded as a string; required for structured output.
Other ways to do it
Same job, other sources, cheapest first.
Answer a question with citationsGet an LLM answer to a question informed by search results. Fully compatible with OpenAI's chat completions endpoint.Web search answer with sources and citations (research)Answers a question or a whole agent prompt (up to 4,000 characters) from the web's current top results, with the pages it drew on. Ask for JSON in the question, or pass a JSON Answer a web questionReturn a cited answer with the web results used to synthesize it.Answer a web question quicklyProduce a short cited answer with the fast Agent preset.Research and answer a web questionProduce a cited answer with light multi-step research.Answer a question with live web researchResearch a task on the live web and return a structured answer with sources.
