Call it
curl https://api.peume.com/v1/call/answer-a-question-with-live-web-research \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"task": "What is the title of https://example.com? Return the title and source URL."
}
}'const res = await fetch("https://api.peume.com/v1/call/answer-a-question-with-live-web-research", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"task": "What is the title of https://example.com? Return the title and source URL."
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/answer-a-question-with-live-web-research",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"task": "What is the title of https://example.com? Return the title and source URL."
}
},
)
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: answer-a-question-with-live-web-research.
Parameters
taskRequiredstringExample: What is the title of https://example.com? Return the title and source URL.
json_formatobjectDescribe the desired JSON output with an object containing empty example values.
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.Research a web questionStart asynchronous multi-source research with citations.
