Call it
curl https://api.peume.com/v1/call/perplexity-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt"
}
}'const res = await fetch("https://api.peume.com/v1/call/perplexity-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/perplexity-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt"
}
},
)
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: perplexity-search.
Parameters
routestringUpstream source to run on; omit for "pelican". badger ($0.002 per call, 91.8% uptime); pelican ($0.0025 per call, 96% uptime); octopus ($0.00006 + $0.0108 per result, at most $0.0109, 97.6% uptime). Output fields only some routes return: createdUtc (badger, octopus). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
badger · pelican · octopus
promptRequiredstringQuestion or research prompt for Perplexity to answer using web search.
