{"uid":"cap_hL0vUBhubzVUG3eJKkWxl","slug":"api-signalfuse-co-e4dc56dc","name":"E2B Sandboxed Python Code Execution","description":"Sandboxed Python code execution via E2B","url":"https://api.signalfuse.co/v1/gateway/execute/e2b?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"output":{"required":["stdout","stderr"],"properties":{"error":{"type":"string","nullable":true},"stderr":{"type":"array","items":{"type":"string"}},"stdout":{"type":"array","items":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"error":null,"stderr":[],"stdout":["4\n"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_giZlGNkHBuMFEF4s0gHFh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes Python code in a sandboxed E2B environment and returns the output","exampleAgentPrompt":"Can you run this Python snippet for me in a sandbox and give me the output: `import statistics; data = [4, 7, 13, 2, 1]; print(statistics.mean(data), statistics.stdev(data))`?","exampleUseCases":null,"resultDescription":"The agent receives the stdout output, any stderr error messages, and the return value or execution result of the submitted Python code, all returned from a secure E2B sandbox environment.","failureModes":["Syntax error in submitted Python code returns a non-zero exit code and stderr message","Execution timeout if the script runs too long","Import errors if the sandbox lacks the requested library","Sandbox resource limits exceeded (memory, CPU)","Invalid or empty code input returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need to execute arbitrary Python code in an isolated, sandboxed environment without local infrastructure, especially for data computation, mathematical operations, or script evaluation. Prefer over local execution when safety and isolation are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":6,"lastUsedAt":"2026-05-06T03:27:01.075Z","lastSuccessfullyRanAt":"2026-05-06T03:27:01.075Z","lastHealthCheckAt":"2026-10-12T11:34:16.253Z","isFirstParty":false,"canonicalSlug":"api-signalfuse-co-e4dc56dc"}