Create a Modal Sandbox for Python | BlockRun

Create a temporary, isolated Python 3.11 CPU environment without supplying a program. No input is required for the defaults: one CPU core, 512 MB of memory and a 300-second lifetime.

Up to 0.01452 credits / call

The final charge is based on confirmed usage. Unused reserved credits return to your available balance.

BlockRun

Create a Modal Sandbox for Python | BlockRun

Create a temporary, isolated Python 3.11 CPU environment without supplying a program. No input is required for the defaults: one CPU core, 512 MB of memory and a 300-second lifetime.

You receive

The creation response gives you a sandbox identifier, its state at creation and its creation timestamp, together with the returned CPU, memory, image, GPU selection and lifetime configuration. Your Agent can arrange these details so you can see what was created and keep the identifier as a reference for a separately supported sandbox action.

Start with your task

Create a temporary Python workspace for [30 seconds].

What to know

Creating the sandbox does not execute your code or return program output. The sandbox is temporary and the supplier terminates it when its configured lifetime ends. Python 3.11 is the managed image. GPU allocation and longer sessions depend on supplier support and the current Tool’s allowed configuration and cost; they are not guaranteed by an optional input. Any later action must meet the sandbox’s access requirements.

Questions about this tool.

Inputs, results and details to know before running it.

Get connected

The managed image available through this Tool is python:3.11. Custom images and setup commands are not offered by this creation request.