Create a managed Python 3
Create a managed Python 3.11 sandbox. Two billing modes selected by 'timeout': ≤300s = flat rate (CPU $0.01, GPU varies). >300s = per-hour billing for the full requested lifetime, no refund on early terminate. Max 24h.
11000 (raw units)
price
13
calls / 30d
6
unique payers
2026-09-15
updated
Provider
blockrun.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "11000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"bodyFields": {
"cpu": {
"description": "CPU cores (max 1 CPU-only, 8 for GPU sandboxes, default: 1)",
"type": "number"
},
"gpu": {
"description": "Optional GPU type. One of: T4, L4, A10G, A100, H100. Flat (≤300s): T4 $0.05, L4 $0.08, A10G $0.1, A100 $0.2, H100 $0.4. Hourly: T4 $1.5, L4 $2, A10G $2.5, A100 $4, H100 $8/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)",
"type": "number"
},
"timeout": {
"description": "Sandbox lifetime in seconds (max 86400 = 24h, default: 300). >300s switches to hourly billing.",
"type": "number"
}
},
"discoverable": true,
"method": "POST",
"type": "http"
},
"output": null
},
"schema": {
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"cpu": {
"description": "CPU cores (max 1 CPU-only, 8 for GPU sandboxes, default: 1)",
"type": "number"
},
"gpu": {
"description": "Optional GPU type. One of: T4, L4, A10G, A100, H100. Flat (≤300s): T4 $0.05, L4 $0.08, A10G $0.1, A100 $0.2, H100 $0.4. Hourly: T4 $1.5, L4 $2, A10G $2.5, A100 $4, H100 $8/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)",
"type": "number"
},
"timeout": {
"description": "Sandbox lifetime in seconds (max 86400 = 24h, default: 300). >300s switches to hourly billing.",
"type": "number"
}
},
"required": [],
"type": "object"
}
},
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"result": {
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://blockrun.ai/api/v1/modal/sandbox/create" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://blockrun.ai/api/v1/modal/sandbox/create");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://blockrun.ai/api/v1/modal/sandbox/create")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/831.json, and this resource appears in /discovery/resources and /discovery/search.