the402 endpoint detail

← All endpoints

agent402.tools api code-run-pro

https://agent402.tools/api/code-run-pro

payable

Execute Python or JavaScript code in a secure, isolated cloud sandbox (Pro tier). Same as /api/code-run but with 60s timeout and 50k char code limit for longer computations. Returns stdout, stderr, and the expression result.

We sent a real POST request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.05
Network
base
Pay to
0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
POST
Response latency
82 ms
Payment options
12 usable of 12
Last checked
2026-08-10T09:13:35.876Z (1d ago)
Category
mcp-server

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fcode-run-pro"