Call it
curl https://api.peume.com/v1/call/research-and-answer-a-web-question \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"preset": "low",
"input": "What is example.com used for?",
"max_steps": 2,
"max_output_tokens": 256
}
}'const res = await fetch("https://api.peume.com/v1/call/research-and-answer-a-web-question", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"preset": "low",
"input": "What is example.com used for?",
"max_steps": 2,
"max_output_tokens": 256
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/research-and-answer-a-web-question",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"preset": "low",
"input": "What is example.com used for?",
"max_steps": 2,
"max_output_tokens": 256
}
},
)
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-and-answer-a-web-question.
Parameters
presetRequiredstringlow
Example: low
inputRequiredstringExample: What is example.com used for?
max_stepsRequiredintegerExample: 2
max_output_tokensRequiredintegerExample: 256
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.Answer a question with live web researchResearch a task on the live web and return a structured answer with sources.Research a web questionStart asynchronous multi-source research with citations.
