# Start a session
$ curl -X POST https://browse.prim.sh/v1/sessions \
-H "X-402-Payment: $TOKEN" \
-d '{"url": "https://example.com"}'
{ "id": "sess_k7x9m2", "status": "ready" }
# Run a script
$ curl -X POST https://browse.prim.sh/v1/sessions/sess_k7x9m2/eval \
-H "X-402-Payment: $TOKEN" \
-d '{"script": "document.title"}'
Render JavaScript-heavy sites with full browser semantics. Extract DOM, text, and screenshots in one call.
Log in, click through onboarding, and submit forms. Agents manipulate the browser as if they had hands.
Compare screenshots over time. Catch layout regressions before humans notice.
Store screenshots and DOM snapshots as evidence of what the agent actually saw.
POST /v1/sessions # Start session
POST /v1/sessions/:id/eval # Run script
GET /v1/sessions/:id/screenshot # Capture screenshot
DELETE /v1/sessions/:id # Close session
| Action | Cost | Notes |
|---|---|---|
| Session start | $0.01 | Includes 60s runtime |
| Extra minute | $0.01 | Billed per second |
| Screenshot | $0.001 | Per capture |