{"uid":"cap_bnTRwSDDE0w--Qg1bla3T","slug":"execbox-batch-code-execution-sandbox-9008c636","name":"execbox Batch Code Execution Sandbox","description":"Pay-per-execution code sandbox. Clients pay micro-amounts of USDC on Base (via the x402 protocol) to run code in isolated Judge0 sandboxes.","url":"https://execbox.xyz/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"submissions":{"type":"array","items":{"type":"object","required":["language_id","source_code"],"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)"},"source_code":{"type":"string","description":"Source code to execute (max 100,000 characters)"},"compiler_options":{"type":"string","description":"Compiler flags (optional)"},"command_line_arguments":{"type":"string","description":"Runtime arguments (optional)"}}},"description":"Array of code submissions to execute in parallel (1-20 items)"}}},"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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jlGLZG9NzzYJOKYVc3fSO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes one or more code submissions in parallel inside isolated Judge0 sandboxes, billed per-call in USDC via the x402 micropayment protocol.","exampleAgentPrompt":"Run this Python 3 snippet for me in a sandbox and show me what it prints: `print(sum(range(1, 101)))`","exampleUseCases":null,"resultDescription":"An array of execution results, one per submission, each containing stdout, stderr, exit code, execution time in seconds, memory used in bytes, and a status object (e.g. 'Accepted', 'Runtime Error') along with the language name and ID.","failureModes":["Payment failure via x402 if USDC balance is insufficient or Base network is unavailable","Invalid language_id returns an error or empty result for that submission","Source code exceeding 100,000 characters is rejected","Runtime errors produce a non-zero exit_code with stderr populated","Time limit or memory limit exceeded returns a corresponding Judge0 status (e.g. status id 5 = Time Limit Exceeded)","Batch size exceeding 20 submissions is rejected","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Choose execbox when you need to execute arbitrary code snippets in an isolated, pay-per-use sandbox without provisioning your own infrastructure. It's ideal for AI agents that need to safely run untrusted or generated code, evaluate programming exercises, or perform computations across multiple languages. The batch endpoint is especially useful when you need to run up to 20 code submissions in parallel in a single paid call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:30.469Z","isFirstParty":false,"canonicalSlug":"execbox-batch-code-execution-sandbox-9008c636"}