{"uid":"cap_nOQTydaLdhcr50-1bQdA4","slug":"agent-exec-pay-per-use-code-execution-medium-plan-ec98e725","name":"agent-exec Pay-Per-Use Code Execution (Medium Plan)","description":"Accountless, pay-per-use code execution for software agents: submit source code, get stdout, stderr and exit code back from an isolated, network-less sandbox. No account, no API key -- possession of valid payment is sufficient.\n\nThis capability is scoped to plan=medium.","url":"https://agent-exec.45.67.221.128.sslip.io/storage?plan=medium","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","required":["id","expiresAt","plan"],"properties":{"id":{"type":"string","description":"Pass as GET /storage/{id} to read this object back. A UUID for a paid POST /storage; `free:<your wallet address>` for the one object POST /storage/free maintains -- stable across every free renewal for that wallet."},"plan":{"enum":["small","medium","large","free"],"type":"string","description":"One of the paid plans (small/medium/large) from POST /storage, or \"free\" from POST /storage/free."},"label":{"type":["string","null"],"description":"The label you passed as ?label=, stored verbatim, or null if you passed none. Echoed back so you can confirm what was stored rather than assuming it."},"payment":{"type":"object","properties":{"asset":{"type":"string"},"payer":{"type":"string","description":"The paying wallet's address."},"amount":{"type":"string","description":"Atomic units of the settlement asset that were charged."},"network":{"type":"string"},"transaction":{"type":"string","description":"On-chain settlement transaction hash."}},"description":"Only present for a paid POST /storage write. Absent for POST /storage/free -- nothing was charged."},"expiresAt":{"type":"integer","description":"Unix ms this object stops being retained."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0055","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.0055/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0055","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0055","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tjqM3OuXXBtGrfqJyW0EM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0055","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes submitted source code in an isolated, network-less sandbox and returns stdout, stderr, and exit code — no account or API key required, payment via HTTP 402.","exampleAgentPrompt":"Run this Python snippet for me in a sandboxed environment and give me the output — I don't want to set up an account, just pay per use with the medium plan: `import math; print(math.factorial(20))`","exampleUseCases":[{"title":"Accountless script validation for CI","prompt":"I need to run this shell script to validate some output logic — no API keys, no account setup, just execute it sandboxed on the medium plan and return the stdout and any errors."},{"title":"Agent-driven math computation","prompt":"Can you execute this Python code that computes a large prime sieve and return me the printed results? Use the medium execution plan and pay per use."},{"title":"Sandboxed untrusted code triage","prompt":"I received some code from a third party and want to run it safely in a network-isolated sandbox on the medium plan — just show me what it prints and whether it exits cleanly."}],"resultDescription":"Returns a JSON object with a UUID storage ID, plan name, expiry timestamp (Unix ms), and payment details (asset, payer wallet address, amount in atomic units, network, and on-chain transaction hash). The actual stdout, stderr, and exit code are retrieved by calling GET /storage/{id} with the returned UUID before the expiry time.","failureModes":["Payment insufficient or invalid — HTTP 402 with payment requirements returned","Storage ID expired before retrieval — object no longer available","Code causes sandbox resource exhaustion — execution may be killed with non-zero exit code","Network access attempted inside sandbox — will fail silently or error since sandbox is network-less","Invalid source code or unsupported language — non-zero exit code and stderr returned","Service unavailable — HTTP 5xx with no storage ID returned"],"whenToPreferThis":"Choose this endpoint when you need to execute code without creating an account or managing API keys, and you are comfortable paying per execution via HTTP 402 crypto micropayments. The medium plan is appropriate for workloads larger than the small plan but not requiring the full resources of the large plan. Prefer this over traditional compute APIs when you want accountless, stateless, pay-as-you-go sandboxed execution with USDC on-chain settlement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:05.712Z","isFirstParty":false}