Skip to content
onelayer.
All tools

Tool detail

BlockRun.AI

Creates a managed Python 3.11 sandbox with configurable CPU/GPU, memory and lifetime, billed flat under 300 seconds or hourly beyond that.

Categories: Code tools

Use when

  • spin up a short-lived Python sandbox to run agent-generated code
  • get a GPU sandbox for a longer compute job

Not for

  • not free, no refund on early termination once hourly billing starts

Inputs

POST JSON body, all optional: cpu (number), gpu (enum T4|L4|A10G|A100|H100), image (string, only python:3.11), memory (MB), timeout (seconds, max 86400).

Admitted input schema

{
  "type": "object",
  "properties": {
    "cpu": {
      "type": "number",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "CPU cores (max 1 CPU-only, 8 for GPU sandboxes, default: 1)"
    },
    "gpu": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "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."
    },
    "image": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Managed image. Only `python:3.11` is currently available."
    },
    "memory": {
      "type": "number",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Memory in MB (max 1024 CPU-only, 32768 for GPU sandboxes, default: 512)"
    },
    "timeout": {
      "type": "number",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Sandbox lifetime in seconds (max 86400 = 24h, default: 300). >300s switches to hourly billing."
    }
  },
  "required": [],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://blockrun.ai/api/v1/modal/sandbox/create

Payment

Protocol
x402
Listed price
$0.011 base (flat, <=300s); GPU/hourly pricing varies by config
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://blockrun.ai/api/v1/modal/sandbox/create
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z