{"uid":"cap_pTEdQ4DsoCFmVaHmkT1_7","slug":"execbox-execute-16c03ca7","name":"execbox Execute","description":"Execute code in any supported language. 5s CPU timeout, 128MB RAM. Supports 40+ languages including Python, JavaScript, C, C++, Java, Go, Rust.","url":"https://execbox.xyz/execute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"stdin":{"type":"string","description":"Standard input passed to the program (optional)"},"language_id":{"type":"number","description":"Judge0 language ID. GET /languages for valid IDs (e.g. 71=Python 3, 63=JavaScript, 50=C, 62=Java)"},"source_code":{"type":"string","description":"Source code to execute (max 100,000 characters). Network access is disabled — code that opens sockets or makes HTTP requests will fail."},"compiler_options":{"type":"string","description":"Compiler flags passed to the compiler (e.g. \"-O2 -Wall\", \"-std=c17\"). Must start with \"-\". Leave empty or omit if unsure. Do NOT put natural language here."},"command_line_arguments":{"type":"string","description":"Arguments passed to the compiled binary at runtime (e.g. \"--input file.txt\"). Leave empty or omit for most use cases. Do NOT put natural language here."}}},"responseSchema":{"type":"json","example":{"time":"0.023","memory":3456,"status":{"id":3,"description":"Accepted"},"stderr":null,"stdout":"hello\n","language":{"id":71,"name":"Python (3.8.1)"},"exit_code":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jnL7Dt8JYeMTU7Lq1r2IP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs arbitrary source code in an isolated Judge0 sandbox and returns stdout, stderr, exit code, and runtime stats — billed at $0.002 USDC per execution via the x402 protocol.","exampleAgentPrompt":"Run this Python 3 (language ID 71) script for me in an isolated sandbox and tell me what it prints: `print(sum(range(1, 101)))`","exampleUseCases":null,"resultDescription":"A JSON object containing: stdout (the program's printed output), stderr (any error messages), exit_code (0 = success), status (Judge0 status id and description, e.g. 'Accepted'), execution time in seconds, memory used in kilobytes, and the language name/version used.","failureModes":["Network access disabled — code that opens sockets or makes HTTP requests will fail with a runtime error","Source code exceeding 100,000 characters will be rejected","Invalid language_id returns an error or unexpected behavior — call GET /languages first to validate","Compilation errors are returned in stderr with a non-zero exit_code and status 'Compilation Error'","Payment failure via x402 protocol results in a 402 response before execution begins","Time limit exceeded returns status 'Time Limit Exceeded' with no stdout"],"whenToPreferThis":"Choose execbox when you need to execute arbitrary code in a secure, ephemeral sandbox without managing infrastructure, and are comfortable with micro-USDC payments per execution. Ideal for AI agents that need to run untrusted or generated code, evaluate algorithm outputs, or verify computation results. Prefer this over cloud function services when you want pay-per-use pricing with no setup, and over local execution when isolation/security matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:30:02.570Z","isFirstParty":false,"canonicalSlug":"execbox-execute-16c03ca7"}