A sandbox reads today’s web
- Model
- Orion Plus
Orionorion-plusAn Orion model, from Serenity’s own family. The efficient tier of the Orion family: economical for large volumes.
Pick a page. The playground creates a real sandbox for you from the default template, its headless browser opens the page, reads it and takes a screenshot, and the model above writes a short note from what the browser read. Then the sandbox is deleted. Each step shows as it happens, with its milliseconds and its cost.
Live: this demo makes real calls to the API, with a demo key and a limit of calls per visit.
Pick a page
One public page of today, read by the sandbox’s headless browser. No account, no form and no personal data: you pick, the sandbox reads.
Sandbox: the default template, 2 vCPU and 2 GiB, Ubuntu with Python and a headless browser. Outbound HTTP and HTTPS only; no pause; deleted at the end.
Steps
- Sandbox created
- Page opened in the headless browser
- Sandbox deleted
- Note written by the model
Machine and model
- Sandbox running
- –
- Machine
- –
- Model
- –
- Total
- –
- From the click to the end
- –
What the browser saw
…
The note
- …
What it read
See the call to the model
Request
Response
The same with the E2B SDK
What the playground does, written with the official E2B SDK for Python against Serenity Edge Sandboxes, with your own key.
from e2b import Sandbox
# read_page.py runs inside the sandbox, with Playwright:
# browser = p.chromium.launch()
# page.goto(url); page.locator('h1, h2, h3').all_inner_texts()
# page.screenshot(path='/home/user/page.jpg')
program = open('read_page.py').read()
sandbox = Sandbox.create(timeout=120) # default template
sandbox.files.write('/home/user/read_page.py', program)
run = sandbox.commands.run(
'python3 /home/user/read_page.py https://en.wikipedia.org/wiki/Main_Page',
timeout=50,
)
print(run.stdout)
sandbox.kill()Pages are read live and change every day; the note says only what the page said. The screenshot is shown here, not stored.
Take it to your code
Sandboxes is in private preview: tell us what your agents will run and we will enable it on your account.
