{"uid":"cap_J0Rm2jykCN-P2E-IyjBrB","slug":"baby-blue-viper-python-sandbox-code-execution-efbbb53c","name":"Baby Blue Viper — Python Sandbox Code Execution","description":"invinoveritas /execute — sandboxed Python that returns a SIGNED PROVENANCE PROOF of the exact output you recompute offline to confirm the run is untampered.","url":"https://api.babyblueviper.com/execute","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Python source to execute in the sandbox"},"tier":{"enum":[0,1,2,3],"type":"integer","description":"0 starter, 1 default, 2 premium, 3 enterprise"},"stdin":{"type":"string"},"language":{"enum":["python"],"type":"string"},"permissive":{"type":"boolean","description":"Permissive container (any import, full builtins) at a premium"},"use_workspace":{"type":"boolean","description":"Mount a persistent per-agent /workspace"},"timeout_seconds":{"type":"number"}}},"responseSchema":{"type":"json","example":{"status":"success","stderr":"","stdout":"…","action_id":"exec_…","exit_code":0,"artifact_id":"","duration_ms":1820}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.181127","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.182088/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.182088","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.182088","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RGW8Fz_c9FYb_RQSpfPS5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.182088","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 container with configurable tiers, persistent workspace, and pay-per-use Lightning/x402 billing","exampleAgentPrompt":"Run this Python snippet in a premium-tier sandboxed container with a persistent workspace and give me the stdout: `import math; print(math.pi * 42**2)` — use tier 2 and allow any imports.","exampleUseCases":null,"resultDescription":"A JSON object containing the execution status ('success' or error), stdout and stderr strings, exit code, action_id (e.g. 'exec_…'), artifact_id if any file was produced, and duration in milliseconds.","failureModes":["Timeout exceeded — exit_code non-zero and stderr contains timeout message","Import error in restrictive (non-permissive) container — stderr shows ModuleNotFoundError","Invalid tier value — API returns validation error","Insufficient balance — payment required error (402) if Lightning/USDC balance is depleted","Syntax error in submitted Python code — exit_code 1, stderr contains traceback"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to execute arbitrary Python code in a secure, metered sandbox — especially when persistent workspace state between calls is needed, when import restrictions must be configurable, or when pay-per-use Lightning/x402 billing is required. Prefer over general cloud functions when agent-native billing and tier-based resource control matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:58.305Z","isFirstParty":false}