Call it
curl https://api.peume.com/v1/call/find-web-images \
-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/find-web-images", {
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/find-web-images",
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: find-web-images.
Parameters
objectivestringWhat should be in the picture — subject plus distinguishing details (angle, setting, time of day, style). Requirements hard to express as keywords belong here.
search_queriesRequiredarrayShort keyword image queries, 1-5 (each at most 200 characters).
modestring'fast' (default, ~1 s) or 'advanced' (~3 s, higher-quality results, 5x the price).
fast · advanced
Example: fast
advanced_settingsobject