{"uid":"cap_uUXov8458gM3-O0yI88mQ","slug":"ai-foundry-sandboxed-agent-compute-session-79fbca3b","name":"AI Foundry Sandboxed Agent Compute Session","description":"Prepaid credit for sandboxed agent compute: a durable Linux workspace with a terminal and allowlisted network access, billed per minute.","url":"https://api.aifoundry.sh/v1/session?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object","properties":{"tier":{"enum":["isolate","container"],"type":"string","description":"container = full Linux sandbox with a durable filesystem; isolate = lighter V8 sandbox."},"credit_usd":{"enum":[0.1,1,5,20],"type":"number","description":"Prepaid credit to buy, in USD."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"type":"string","const":"json"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3pP_Tgd-rIJXijYcC8VVw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases prepaid compute credit for a sandboxed Linux or V8 isolate workspace with terminal access and allowlisted networking, billed per minute.","exampleAgentPrompt":"Spin up a full Linux container sandbox with $5 of prepaid compute credit so I can run my data-processing script in an isolated environment with network access.","exampleUseCases":[{"title":"Isolated code execution for AI agent","prompt":"I need a Linux container sandbox with $1 of prepaid credit so my agent can safely run and test some Python scripts without touching my main system."},{"title":"Lightweight V8 isolate for quick tasks","prompt":"Provision an isolate-tier sandbox with $0.10 of credit — I just need a lightweight environment to run a short JavaScript task for my agent."},{"title":"Durable workspace for long-running agent job","prompt":"Buy $20 of prepaid compute credit and launch a full Linux container sandbox so my agent has a persistent filesystem and terminal to work through a multi-step research task."}],"resultDescription":"A sandboxed compute session is provisioned with the requested prepaid credit balance. The agent receives access to a durable Linux workspace (container tier) or a lightweight V8 isolate (isolate tier) with a terminal and allowlisted network access, billed per minute against the prepaid credit.","failureModes":["Insufficient or invalid credit_usd value (must be one of 0.1, 1, 5, 20)","Invalid tier enum value (must be 'isolate' or 'container')","Payment failure via x402 protocol (USDC payment not confirmed)","Session provisioning timeout or infrastructure unavailability","Network allowlist blocking required outbound connections","Credit exhausted before task completes"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to execute arbitrary code, run shell commands, or perform compute-intensive tasks in a secure, isolated environment. Prefer the container tier for durable filesystem state across steps; prefer the isolate tier for lightweight, stateless JavaScript/V8 tasks. Best when you need prepaid, metered compute rather than a persistent cloud VM subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T01:26:29.523Z","isFirstParty":false,"canonicalSlug":"ai-foundry-sandboxed-agent-compute-session-79fbca3b"}