Call it
curl https://api.peume.com/v1/call/pexels-photo-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/pexels-photo-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pexels-photo-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query"
}
},
)
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: pexels-photo-search.
Parameters
minHeightintegerOnly return photos at least this many pixels tall.
orientationstringOnly return photos with this orientation. Omit for any orientation.
landscape · portrait · square
routestringUpstream source to run on; omit for "octopus". octopus ($0.0006 + $0.0036 per result, at most $0.0726, 99.7% uptime); gecko ($0.0136 + $0.00441 per result, at most $0.1018). Output fields only some routes return: tags (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.
octopus · gecko
peopleCountstringOnly return photos showing this many people: "0" for none, "1" or "2". Omit for any number.
0 · 1 · 2
queryRequiredstringKeyword or phrase to search Pexels photos for, e.g. "coffee" or "city skyline".
limitintegerMaximum number of photos to return (1-20, default 20). You are billed per photo returned, so a lower limit costs less.
minWidthintegerOnly return photos at least this many pixels wide.
