Modal has raised an $87M Series B led by Lux Capital. Read more
Modal Sandboxes

Secure Sandboxes at massive scale

Run AI-generated code in dynamically defined sandboxes. Instantly scale to 50,000+ concurrent sessions.
customer logo

“Modal was the only infrastructure provider that enabled us to reliably run tens of thousands of app creation sessions in an instant. We’re excited to build with them for the long term.”

Anton Osika, Founder and CEO
customer logo

“Everyone here loves Modal because it helps us move so much faster. We rely on it to handle massive spikes in volume for evals, RL environments, and MCP servers. Whenever a team asks about compute, we tell them to use Modal.”

Aakash Sabharwal, VP of Engineering
Modal Sandboxes

You create Sandboxes, we handle resource orchestration

Dynamically defined

Create a sandbox with one line of code. You can dynamically define the sandbox environment at runtime.

1
sb = modal.Sandbox.create(
2
    app=app,
3
    image=modal.Image.debian_slim()
4
        .uv_pip_install("numpy"),
5
)

Code-first interface

Send commands to the sandbox from your application code.

01
p = sb.exec(
02
    "python",
03
    "-c",
04
    "import numpy; print(numpy.__version__)"
05
)
06
07
print(p.stdout.read())
08
09
sb.exec(
10
    "rm",
11
    "-rf",
12
    "--no-preserve-root",
13
    "/"
14
)

Sub-second startup

Modal’s container stack spins up sandboxes in less than a second.

Sub-second startup

Massive scale

Instantly autoscale to 50,000+ sandboxes during peak demand.

Massive scale

Robust primitives to integrate with your application





Fine-grained observability

Fine-grained observability

Debug fast with our native observability interface.


Easily drill down into metrics, logs, and status for individual Sandboxes.

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)

$0.00003942 / core / sec

*minimum of 0.125 cores per container

Memory

$0.00000672 / GiB / sec

Ship your first app in minutes.

Get Started

$30 / month free compute