Modal Sandboxes

Run AI-generated code in secure, dynamically defined AI-enabled sandboxes. Scale to 10,000+ simultaneous sessions with ease using Modal's containerized sandbox technology.

3D gradient geometric shapes

Modal Sandbox Pricing

Only pay for what you use, by the CPU cycle. For GPU Sandboxes, refer to our standard GPU prices.

Compute costs


CPU

Physical core (2 vCPU equivalent)

$0.00003942 / core / sec

*minimum of 0.125 cores per container


Memory

$0.00000672 / GiB / sec

Safe AI-enabled sandboxes execution

Execution of AI-generated code

Run code snippets created by language models or submitted by users in our secure AI enabled sandboxes environment.

LLM evaluations

Test the latest LLM models for safety and quality using our AI enabled sandboxes.

gVisor-based runtime

Rely on strict security and isolation guarantees from our battle-tested containerization technology.

Safe code execution visualization

Fully programmable container environment

Universal code execution

Orchestrate and run any kind of code or container image in AI enabled sandboxes, even if it's not Python-based.

Out of the box interactivity

Execute processes in an ongoing sandbox session, and get input/output streaming with each.

Programmable container environment

Advanced sandbox features

Persistent data management

Maintain stateful data across sessions with dynamically-provisioned network file systems.

Network accessibility

Create tunnels to expose ports inside the sandbox.

Network security

Control over outbound networking.

Advanced sandbox features
Ship your first app in AI-enabled sandboxes in minutes.

$30 / month free compute