{"uid":"cap_oJop2ckohkaUfxXdKmwbV","slug":"synthora-code-sandbox-7ce91a50","name":"SYNTHORA Code Sandbox","description":"Python code execution as a service for agents: send code, get stdout/stderr/exit code. Isolated, hard limits. $0.01 USDC x402 Base.","url":"https://api.hergertsynthora.com/v1/code-sandbox","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Python code execution as a service for agents: send code, get stdout/stderr/exit code. Isolated, hard limits. $0.01 USDC x402 Base."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ilIbEF36IQSOb8se8a6Az","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary Python code in an isolated sandbox and returns stdout, stderr, and exit code","exampleAgentPrompt":"Run this Python snippet for me and tell me what it prints: `import math; print(math.factorial(20))`","exampleUseCases":[{"title":"On-the-fly math calculation","prompt":"Can you run this Python code for me and tell me the result: `print(sum(range(1, 101)))`?"},{"title":"Agent data transformation script","prompt":"Execute this Python script that parses a JSON string and extracts specific fields, then show me the stdout and any errors: `import json; d=json.loads('{\"a\":1,\"b\":2}'); print(d['a'])`"},{"title":"Debugging a Python snippet","prompt":"Run this Python code for me and tell me if it throws any errors or prints anything: `def fib(n): return n if n<=1 else fib(n-1)+fib(n-2); print(fib(10))`"}],"resultDescription":"Returns the stdout output, stderr output, and integer exit code from running the submitted Python code in an isolated, resource-limited sandbox environment.","failureModes":["Code exceeds hard resource limits (CPU/memory/time) — returns non-zero exit code and stderr describing the limit hit","Syntax errors in submitted Python — returns exit code 1 with stderr containing the traceback","Network or sandbox service unavailability — HTTP 5xx response","Payment failure or insufficient USDC balance — HTTP 402 response","Malformed input (non-string or missing 'input' field) — HTTP 400 validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to execute arbitrary Python code remotely without managing a local interpreter or container, especially for one-off computations, data transformations, or script evaluation in an agentic workflow where sandboxed isolation and hard resource limits are required. Prefer over self-hosted execution when you need a simple pay-per-call model with no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:58:40.439Z","isFirstParty":false}