← Back to directory

Create a managed Python 3.11 sandbox. Two billing modes: ≤300s at ≤1 CPU and ≤10...

https://blockrun.ai/api/v1/modal/sandbox/create

Overview

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

Protocol x402 (POST)
Price $0.01
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider BlockRun.AI
Source bazaar
Indexed 2026-04-14 16:32:30

Health

Status healthy
Latency (p50) 531ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-10-31 07:17:11
Last Healthy 2026-10-31 07:17:11
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "bodyFields": { "cpu": { "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.", "type": "number" }, "gpu": { "description": "Optional GPU type. One of: T4, L4, A10G, A100, H100. Flat (≤300s, ≤1 CPU, ≤1024 MB): T4 $0.051, L4 $0.081, A10G $0.101, A100 $0.201, H100 $0.401. Hourly: T4 $4, L4 $4.5, A10G $5, A100 $7, H100 $9/hour.", "type": "string" }, "image": { "description": "Managed image. Only `python:3.11` is currently available.", "type": "string" }, "memory": { "description": "Memory in MB (max 1024 CPU-only, 32768 for GPU sandboxes, default: 512). Above 1024 bills hourly, never below the flat rate.", "type": "number" }, "timeout": { "description": "Sandbox lifetime in seconds (max 86400 = 24h, default: 300). Above 300s bills hourly.", "type": "number" } }, "discoverable": true, "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": {} }, "type": "json" }