S

Speccy · Exec

by Speccy

POSTBase

$0.02

per call · USD Coin on Base

Run untrusted Python 3.12 code in an isolated Docker sandbox (no network, read-only FS, 0.5 CPU, 512MB RAM, 30s timeout). Returns stdout, stderr and exit code. Max code size 64KB.

Endpoint

POST https://exec.speccy.cloud/v1/exec

16

Calls / 30d

2

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://exec.speccy.cloud/v1/exec", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "code": "print(2 + 2)",
    "language": "python"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://exec.speccy.cloud/v1/exec" \
  -H "Content-Type: application/json" \
  -d '{"code":"print(2 + 2)","language":"python"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "result": {
    "durationMs": 210,
    "exitCode": 0,
    "stderr": "",
    "stdout": "4\n",
    "timedOut": false
  },
  "success": true
}

Payment details

Pay to0x0cb12df486381a0ebebc0ef338da80657f68f9cb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Speccy & similar services