Call it
curl https://api.peume.com/v1/call/run-browser-agent \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"task": "your task"
}
}'const res = await fetch("https://api.peume.com/v1/call/run-browser-agent", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"task": "your task"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/run-browser-agent",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"task": "your task"
}
},
)
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: run-browser-agent.
Parameters
taskRequiredstringWhat the agent should do, in natural language. Example: 'Open and return the titles of the top 5 stories as JSON'.
modelstringThe model that drives the agent. Defaults to 'gpt-6-luna' (fast and cheap). Larger models (e.g. 'claude-opus-5-5', 'gpt-6.1-sol') are more accurate on hard tasks and cost more.
mimo-v2.6-pro · mimo-v2.6-flash · deepseek-v4.1-flash · glm-5.2 · grok-4.5 · grok-4.6 · glm-5.3-flash · deepseek-v4-flash-vision · kimi-k3 · minimax-m3 · claude-opus-4.7 · claude-opus-4.8 …
modelParamsobjectProvider-native model parameters, forwarded unchanged (e.g. {"reasoning": {"effort": "low"}} for OpenAI models).
outputSchemaobjectJSON Schema the final 'output' must follow. Example: {"type": "object", "properties": {"price": {"type": "number"}}, "required": ["price"]}.
agentRunIdstringContinue a conversation: the runId returned for one of your earlier successful /agent/run runs in it (any run of the conversation works). Omit to start a new conversation. A follow-up gets a fresh browser (profile state is kept, open tabs are not). The conversation lasts until you end it with /agent-sessions/release.
profileIdstringA browser profile YOU OWN (/browser-profiles/provision) that a released cloud browser saved a login into: the agent's browser starts with its cookies and logins.
proxyCountryCodestringResidential proxy country (lowercase ISO code, e.g. 'de'), or null for no proxy. Defaults to 'us'. Proxy traffic is billed at $5/GB; no proxy at $0.20/GB.
screenWidthintegerBrowser width in pixels (set together with screenHeight).
screenHeightintegerBrowser height in pixels (set together with screenWidth).
allowResizingbooleanLet the agent resize the window (makes the browser easier to detect). Default false.
judgeobjectAsk an LLM judge to grade the finished run; the verdict is returned as 'judgement'. Its model cost is billed to the run.
maxCostUsdnumberBudget in USD for this run's model and search spend (default 2, max 25). The run stops when it is reached. Browser time and proxy traffic are billed on top.
