{"slug":"blockrun-ai-api-v1-modal-sandbox-create-9d39b4","title":"Create a managed Python 3.11 sandbox","host":"blockrun.ai","method":"POST","resource":"https://blockrun.ai/api/v1/modal/sandbox/create","category":"code","description":"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.","price_listed":0.011,"price_asked":0.011,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":226,"reported_calls_30d":63,"reported_payers_30d":7,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"properties":{"input":{"properties":{"body":{"properties":{"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"}},"required":[],"type":"object"}},"type":"object"},"output":{"properties":{"example":{"properties":{"result":{"type":"object"}},"type":"object"}},"type":"object"}},"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":214,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":209,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":260,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":261,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":204,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":240,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":226,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":252,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":231,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":214,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":234,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":515,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":230,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":234,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":235,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":219,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":247,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":229,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":214,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":219,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":239,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":227,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":253,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":210,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":227,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":226,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":214,"error":null},{"day":"2026-10-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.011,"price_match":true,"latency_ms":198,"error":null}],"description_full":"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.","last_updated":"2026-11-22T08:13:10.936Z","schemes":["exact"]}