Call it
curl https://api.peume.com/v1/call/search-web-with-excerpts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search_queries": [],
"mode": "fast"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-web-with-excerpts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search_queries": [],
"mode": "fast"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-web-with-excerpts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search_queries": [],
"mode": "fast"
}
},
)
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: search-web-with-excerpts.
Parameters
objectivestringWhat the search should find, in natural language — one goal; may name preferred sources or how recent results should be.
search_queriesRequiredarrayKeyword queries of 3-6 words each; at least one, 2-3 work best. Search operators are supported.
modestring'fast' (default, ~0.7 s) for most agents; 'turbo' (~0.2 s, English and Japanese only) for the lowest latency; 'basic' (~1 s) for longer excerpts per result; 'advanced' (~3 s) for the highest-quality multi-hop results. basic and advanced cost 5x.
turbo · fast · basic · advanced
Example: fast
max_chars_totalintegerUpper bound on total excerpt characters across all results.
advanced_settingsobject