{"uid":"cap_rNNfEY0IaipIoav05PAR_","slug":"execbox-execute-heavy-1f7d1edb","name":"execbox /execute/heavy","description":"Heavy compute for intensive workloads. 30s CPU timeout, 1GB RAM. Use for recursive algorithms, large memory allocations, or long-running computations.","url":"https://execbox.xyz/execute/heavy?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":"18.542","memory":1740,"status":{"id":3,"description":"Accepted"},"stderr":null,"stdout":"102334155","language":{"id":50,"name":"C (GCC 9.2.0)"},"exit_code":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G3H5bXVD1P-AmkFAekAE3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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, paid per execution via USDC micropayment on Base.","exampleAgentPrompt":"Can you run this Python 3 code (language ID 71) in a sandbox for me and show me what it prints? The code is: `print(sum(range(1, 101)))`","exampleUseCases":null,"resultDescription":"A JSON object containing: stdout (program output), stderr (error output), exit_code, execution time in seconds, memory used in KB, and a status object with an ID and description (e.g. 'Accepted', 'Runtime Error', 'Time Limit Exceeded') plus the language name and ID.","failureModes":["Payment not included or invalid — 402 Payment Required returned before execution","Invalid language_id — Judge0 rejects unknown language identifiers","Source code exceeds 100,000 character limit — request rejected","Code attempts network access (sockets/HTTP) — fails silently or with runtime error since network is disabled","Time limit exceeded — status returns 'Time Limit Exceeded' with no stdout","Compilation error — stderr contains compiler output, exit_code non-zero, status is 'Compilation Error'","Runtime error — exit_code non-zero, stderr populated, status is 'Runtime Error'"],"whenToPreferThis":"Use this endpoint when you need to execute arbitrary code in a secure, isolated sandbox without setting up local infrastructure, and you are comfortable paying $0.01 USDC per execution via the x402 protocol on Base. The /execute/heavy path is suited for more resource-intensive workloads. Prefer this over hosted REPL services when you need programmatic, pay-per-use access with structured JSON output including timing and memory metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:35:55.835Z","isFirstParty":false,"canonicalSlug":"execbox-execute-heavy-1f7d1edb"}