ExecBox

Pay-per-execution code sandbox. 40+ languages. USDC on Base via x402.

How it works

  1. POST your code to any execute endpoint — receive a 402 with payment details
  2. Pay the micro-amount in USDC on Base (automated by x402 clients)
  3. Resend the same request with the payment header — receive execution results

Pricing

Standard
$0.002
5s CPU · 128 MB
Compute
$0.005
15s CPU · 512 MB
Heavy
$0.01
30s CPU · 1 GB
Batch
$0.0015 / sub
Up to 20 submissions

Quick start

# 1. Get a 402 challenge
curl -X POST https://execbox.xyz/execute \
  -H 'Content-Type: application/json' \
  -d '{"language_id": 71, "source_code": "print(42)"}'

# 2. Resend with payment (x402 clients do this automatically)
curl -X POST https://execbox.xyz/execute \
  -H 'Content-Type: application/json' \
  -H 'Payment-Signature: <token from step 1>' \
  -d '{"language_id": 71, "source_code": "print(42)"}'

API