Api Endpoint

BlockRun.AI

Execute command in sandbox, returns stdout/stderr/exit code.

Open interactive test console

Offering

Provider
BlockRun.AI
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Infrastructure
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://nano.blockrun.ai/api/v1/modal/sandbox/exec
MIME type
application/json
First seen
2026-10-16T01:50:03.832Z
Last seen
Tags
X402, AI, blockchain, Inference, sandbox, code-execution, python, compute

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 2
0.001 USDC
Atomic price: 1000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 3
0.001 USDC
Atomic price: 1000 · Network: eip155:10 · Asset: USDC · Scheme: exact
Payment option 4
1000 atomic units
Atomic price: 1000 · Network: eip155:130 · Asset: 0x078D782b760474a361dDA0AF3839290b0EF57AD6 · Scheme: exact
Payment option 5
0.001 USDC
Atomic price: 1000 · Network: eip155:43114 · Asset: USDC · Scheme: exact
Payment option 6
1000 atomic units
Atomic price: 1000 · Network: eip155:1 · Asset: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 · Scheme: exact
Payment option 7
1000 atomic units
Atomic price: 1000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:10",
    "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:130",
    "asset": "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:43114",
    "asset": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:1",
    "asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "1000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  }
]

Observed health

Status
Healthy
Latest latency
82 ms
Average latency
190 ms
HTTP status
204
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "type": "object",
    "required": [
      "sandbox_id",
      "command"
    ],
    "properties": {
      "command": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 2000,
          "minLength": 1
        },
        "maxItems": 32,
        "minItems": 1,
        "description": "Command segments to execute, e.g. ['python', '-c', 'print(1)']"
      },
      "timeout": {
        "type": "integer",
        "default": 60,
        "maximum": 60,
        "minimum": 1,
        "description": "Execution timeout in seconds."
      },
      "sandbox_id": {
        "type": "string",
        "description": "Sandbox ID returned by /api/v1/modal/sandbox/create"
      }
    },
    "additionalProperties": false
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
}

Output schema

{
  "type": "object",
  "properties": {
    "example": {
      "type": "object",
      "properties": {
        "result": {
          "type": "object"
        }
      }
    }
  }
}