Memory · sandbox · browse · critique · judge.
Documents16PDF · Word · Excel · OCR.
Audio20Transcribe · diarize · TTS.
Images27Caption · OCR · resize.
Web39Scrape · screenshot · meta.
Validation25Email · IBAN · IP · VAT.
Conversions20JSON · YAML · UUID.
All endpoints159Full catalog · featured first.
Wallet-only · earn USDC daily.
Sell-side guideEIP-712 · JWT · settlement.
Pricing & take rate3% paywall · 4% proxy.
How settlement worksSettlement runs daily at 00:00 UTC, in USDC. A balance ≥ 1 USDC is paid at the next run (within 24h). A balance below 1 USDC carries over and accumulates across days until it reaches 1 USDC, then it's paid.
/v1/agent/sandbox
Powered by Modal
Request → Response
Examples from schemas.json.
POST /v1/agent/sandbox Content-Type: application/json { "language": "python", "code": "example", "timeout_ms": 30000, "allow_network": false }
HTTP/1.1 200 OK Content-Type: application/json // Endpoint-specific body after 402 settlement
Run Python, Node, or Bash code in an isolated sandbox with optional files, env, and network; returns output. Dynamic pricing: ceil(timeout_ms × 10000 / 60000), ×2 if allow_network=true. Powered by Modal.
Serverless cloud platform for running AI and compute workloads.
Body: JSON · application/json
| Field | Type | Description | |
|---|---|---|---|
| language | string | required | enum: python, node, bash |
| code | string | required | — |
| timeout_ms | integer | required | min: 100 |
| files | object | optional | — |
| env | object | optional | — |
| allow_network | boolean | required | — |
curl -X POST https://api.tools402.dev/v1/agent/sandbox \
-H "Content-Type: application/json" \
-d '{
"language": "python",
"code": "example",
"timeout_ms": 30000,
"allow_network": false
}'402 payment flow omitted — see Integrations for settlement.