Code Execution Sandbox

Execute Python, JavaScript or Bash in a secure sandbox. No setup, no dependencies. Powered by E2B.

API Docs $0.010 / execution

About this tool

Run arbitrary code in an isolated E2B sandbox. Each execution gets a fresh environment — no state persists between calls. Supports Python, JavaScript (Node.js), and Bash. Max execution time: 30 seconds. Max code size: 10,000 characters.

Quick Start — Python

curl -X POST https://api.iteratools.com/code_execute \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"code":"print(2+2)","language":"python"}'

Quick Start — JavaScript

curl -X POST https://api.iteratools.com/code_execute \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"code":"console.log(6*7)","language":"javascript"}'

Response

{"ok":true,"data":{"stdout":"4\n","stderr":"","exit_code":0,"language":"python"}}

Parameters

Parameter Type Description
code string (required) Source code to execute (max 10,000 chars)
language string python (default), javascript, or bash
timeout number Timeout in ms (max 30000, default 30000)

Pricing

$0.010 per execution via x402 micropayment on Base (USDC).

Full Documentation Browse All Tools