# AI Foundry Sandboxed Agent Compute Session

> AI Foundry Sandboxed Agent Compute Session is a paid API for AI agents from api.aifoundry.sh, paid per call via x402, $5/call, status down (last checked 2026-10-13).

Purchases prepaid compute credit for a sandboxed Linux or V8 isolate workspace with terminal access and allowlisted networking, billed per minute.

## Facts

- Endpoint: POST https://api.aifoundry.sh/v1/session?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-foundry-sandboxed-agent-compute-session-79fbca3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uUXov8458gM3-O0yI88mQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ai-foundry-sandboxed-agent-compute-session-79fbca3b -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Prepaid credit for sandboxed agent compute: a durable Linux workspace with a terminal and allowlisted network access, billed per minute.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-foundry-sandboxed-agent-compute-session-79fbca3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aifoundry.sh](https://www.zero.xyz/host/api.aifoundry.sh/llms.txt)
