---
title: "Code Sandbox ($0.018/call)"
method: POST
path: "/sandbox"
tags: ["sandbox", "code", "execute", "python", "interpreter", "compute", "run", "repl", "agent"]
---

# Code Sandbox ($0.018/call)

`POST /sandbox`

## Request

- Base URL: `https://x402.shizu.me`
- URL: `https://x402.shizu.me/sandbox`
- Auth: none declared

Run code in an isolated cloud sandbox and get its output — agents can't self-host this. POST {code, language?}. language: python (default), javascript, bash, r, java. Returns stdout, stderr, results, error. Hard-capped: 25s wall-clock, 100KB code, 64KB output, fully isolated.

Paid endpoint: $0.018 per call via the x402 protocol (USDC on Base). An unpaid request returns 402 with payment requirements in the PAYMENT-REQUIRED response header; attach payment and retry.

## Response `200`

Paid result (JSON)

## Other responses

- `402`: Payment required — x402 requirements in the PAYMENT-REQUIRED response header

---

[API](https://skmtc.dev/shizu/apis/scrape402.md) · [All operations](https://skmtc.dev/shizu/apis/scrape402/llms.txt) · [OpenAPI document](https://skmtc.dev/shizu/apis/scrape402/revisions/0852d74798b8?raw)
