BlockRun AI Gateway

Modal Sandbox

Available through BlockRun AI Gateway
OpenAPICreate, run, inspect, and terminate Python sandboxes through BlockRun.

Endpoints

Endpoint details are saved from the OpenAPI document. Authentication requirements and prices are advertised information, not a verified payment or access guarantee. The document may contain additional endpoints.Open OpenAPI document
POST/api/v1/modal/sandbox/create

Create Modal Sandbox

Create a managed Python 3.11 sandbox with bounded CPU, memory, and lifetime limits.0.01 USDThe operation requires declared authentication; API keys, bearer tokens and other schemes are not evidence of AEP support.
POST/api/v1/modal/sandbox/exec

Execute In Modal Sandbox

Execute a command inside an existing managed Modal sandbox.0.001 USDThe operation requires declared authentication; API keys, bearer tokens and other schemes are not evidence of AEP support.
POST/api/v1/modal/sandbox/status

Check Modal Sandbox Status

Check whether a sandbox is still running or has terminated.0.001 USDThe operation requires declared authentication; API keys, bearer tokens and other schemes are not evidence of AEP support.
POST/api/v1/modal/sandbox/terminate

Terminate Modal Sandbox

Terminate a running sandbox and release its resources.0.001 USDThe operation requires declared authentication; API keys, bearer tokens and other schemes are not evidence of AEP support.