predev-api ships both the Architect and Browser Agents surfaces — one package, one key.
Installation
Quick Start
Authentication
Get your API key
Grab a key from the Browser Agents dashboard.
API Methods
browser_tasks()
Submit one or more browser tasks and get the results back.
tasks(required):List[Dict]— see Task shape belowconcurrency(optional):int— parallel workers within this batch (1–20, default 5)stream(optional):bool— whenTrue, returns an iterator yielding SSE events instead of a final resultrun_async(optional):bool— whenTrue, returns immediately with{ id, status: "processing" }; poll withget_browser_tasks(id)
- Default:
Dictwithid,total,completed,results,totalCreditsUsed,status - With
stream=True:Iterator[Dict]yielding{ "event": ..., "data": ... }frames - With
run_async=True:Dictwithidandstatus: "processing"— pollget_browser_tasks(id)
Task shape
get_browser_tasks()
Fetch the status and results of a task submission by id. Works for in-progress and completed submissions.
batch_id(required):str— id returned frombrowser_tasks(..., run_async=True)or from streaminginclude_events(optional):bool— whenTrue, includes the full per-step event timeline (navigation, plan, screenshot, action, validation) for each task. Payloads can be large.
Dict with the same shape as browser_tasks() sync response, plus events[] on each task (or liveEvents[] for tasks still in flight) when include_events=True.

