[← Providers](https://www.sandboxrouter.ai/providers)

# Modal

provider: "modal"

Sandbox rates, per second ($0.00003942 per physical core = 2 vCPUs); GPUs extra; region pinning x1.15-1.75; Starter includes $30/mo credit.

## List price per hour

| 1 vCPU · 2 GB | $0.119 |
|---|---|
| 2 vCPU · 4 GB | $0.238 |
| 4 vCPU · 8 GB | $0.476 |
| 8 vCPU · 16 GB | $0.952 |
| 16 vCPU · 32 GB | $1.90 |
| 32 vCPU · 128 GB | $5.34 |

Source

[modal.com](https://modal.com/pricing), 2026-11-17 (an estimate, not a bill)

Billing

the size you ask for, while it runs

Plan

none needed

## Adapter

Supports

Exec + streaming · Files · GPU · Custom image · Preview URLs

Max size

64 vCPU · 256 GB

Routing

Chosen when it's the cheapest fit, or as a fallback

Docs

[modal.com](https://modal.com/docs/guide/sandbox)

## Measured on real accounts

Real-account check

13 / 13 steps

2026-11-13

Median create

470 ms

2 vCPU / 4 GB · 100 requests · 2026-11-17

Ready

100%

Excluding recorded limit refusals

Measured resources

1 vCPU / 4 GB

Requested 2 vCPU / 4 GB · 2026-11-17

Provider-reported usage

$0.003304

$0.003966 list estimate · 2026-11-17 by @gigialc

## Real-account check, step by step

13 of 13 steps passed on a real account, 2026-11-13 (v0.7.0).

- createpassed
- exec: stdout, stderr, exit codepassed
- exec: env and cwdpassed
- exec: UTF-8 outputpassed
- exec: streamingpassed
- files: binary round-trippassed
- files: 1 MB round-trippassed
- files: missing file is an errorpassed
- files: visible to commandspassed
- exec: command timeoutpassed
- exec: timed-out command was stoppedpassed
- pause and resumen/a
- killpassed
- killed sandbox is gonepassed

setup

```
npm i @sandboxrouter/sdk modal
export MODAL_TOKEN_ID=...
export MODAL_TOKEN_SECRET=...
```

use Modal

```
import { Router } from "@sandboxrouter/sdk";

const router = new Router();
const sbx = await router.create({}, { provider: "modal" });
await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();
```

sandboxRouter isn't affiliated with Modal. Prices come from its public pricing page and results from our own runs. Something wrong or out of date? [Report a correction](https://github.com/gigialc/sandboxrouter/issues/new?title=Correction%3A%20Modal&labels=correction&body=What%27s%20wrong%20on%20https%3A%2F%2Fwww.sandboxrouter.ai%2Fproviders%2Fmodal%2C%20and%20a%20link%20to%20the%20source%3A%0A%0A).
