# sol.blockrun.ai Python 3.11 Managed Sandbox Create

> sol.blockrun.ai Python 3.11 Managed Sandbox Create is a paid API for AI agents from sol.blockrun.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Creates a managed, isolated Python 3.11 sandbox environment with configurable CPU, GPU, memory, and lifetime, billed at a flat rate for small jobs or hourly for larger ones.

## Facts

- Endpoint: POST https://sol.blockrun.ai/api/v1/modal/sandbox/create?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sol-blockrun-ai-python-3-11-managed-sandbox-create-835fecda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bZI8RBOwy8_RjWAMkfsBL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sol-blockrun-ai-python-3-11-managed-sandbox-create-835fecda -d '<json body>'
```

Example prompt: Spin up a managed Python 3.11 sandbox with 1 CPU, 512 MB of memory, and a 5-minute timeout so I can run some data processing code.

## When to prefer this

Choose this endpoint when you need a fully managed, ephemeral Python 3.11 execution environment with optional GPU acceleration, predictable flat-rate billing for short jobs (≤300s, ≤1 CPU, ≤1024 MB), or hourly billing for larger workloads up to 24 hours. Prefer this over raw VM provisioning when you want zero infrastructure management and pay-per-use pricing starting at $0.01.

## Known failure modes

- Invalid GPU type specified — must be one of T4, L4, A10G, A100, H100
- CPU exceeds 1 for CPU-only (non-GPU) sandboxes
- Memory exceeds 1024 MB for CPU-only sandboxes
- Timeout exceeds 86400 seconds (24h maximum)
- Payment failure — insufficient USDC balance for flat-rate or hourly billing
- Sandbox provisioning timeout or infrastructure unavailability
- Unsupported image — only python:3.11 is currently available

## How this service works

Create a managed Python 3.11 sandbox. Two billing modes: ≤300s at ≤1 CPU and ≤1024 MB = flat rate (CPU $0.01, GPU varies). Otherwise per-hour billing for the full requested lifetime, never below the flat rate, no refund on early terminate. Max 24h.

## Output

Returns a sandbox object with a unique sandbox ID and connection details needed to execute commands inside the running environment. The sandbox remains live for the requested timeout duration and can be interacted with via the companion execute-command endpoint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cpu": {
   "type": "number",
   "description": "CPU cores (min 0.125, max 1 CPU-only, 8 for GPU sandboxes, default: 1). Above 1 bills hourly, never below the flat rate."
  },
  "gpu": {
   "type": "string",
   "description": "Optional GPU type. One of: T4, L4, A10G, A100, H100. Flat (≤300s, ≤1 CPU, ≤1024 MB): T4 $0.05, L4 $0.08, A10G $0.1, A100 $0.2, H100 $0.4. Hourly: T4 $4, L4 $4.5, A10G $5, A100 $7, H100 $9/hour."
  },
  "image": {
   "type": "string",
   "description": "Managed image. Only `python:3.11` is currently available."
  },
  "memory": {
   "type": "number",
   "description": "Memory in MB (max 1024 CPU-only, 32768 for GPU sandboxes, default: 512). Above 1024 bills hourly, never below the flat rate."
  },
  "timeout": {
   "type": "number",
   "description": "Sandbox lifetime in seconds (max 86400 = 24h, default: 300). Above 300s bills hourly."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sol-blockrun-ai-python-3-11-managed-sandbox-create-835fecda/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sol.blockrun.ai](https://www.zero.xyz/host/sol.blockrun.ai/llms.txt)
