# auteng.ai x402 On-Demand Compute Sandbox

> auteng.ai x402 On-Demand Compute Sandbox is a paid API for AI agents from x402.auteng.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Executes Python or Node.js code in an isolated paid sandbox environment, billed per-call via USDC on Base

## Facts

- Endpoint: POST https://x402.auteng.ai/api/x402/compute
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-auteng-ai-3e2417df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0bO6QdSQFG2AP7XbRFyT_

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 x402-auteng-ai-3e2417df -d '<json body>'
```

Example prompt: Run this Python script in a small sandbox and give me the output: import math; primes = [x for x in range(2,100) if all(x%i!=0 for i in range(2,x))]; print(primes)

## When to prefer this

Choose this endpoint when you need to execute arbitrary Python 3.14 or Node.js 24 code in a clean isolated sandbox without managing infrastructure, especially for pay-per-use workloads. Prefer it over self-hosted solutions when you want zero setup, per-call micropayment billing, and configurable compute sizes from 2 to 8 vCPUs.

## Known failure modes

- Non-zero exit_code with stderr if code throws a runtime error or exception
- Timeout error if execution exceeds the specified or default timeout
- Payment failure if USDC balance is insufficient on Base (eip155:8453)
- Invalid stack or size enum value returns a 422 validation error
- Oversized file uploads may be rejected
- Sandbox may fail to start for very large workloads on small size

## How this service works

Execute python code in sandboxed environment (small tier)

## Output

Returns a JSON object with stdout, stderr, exit_code, execution_time_ms, sandbox_id, sandbox size, stack used, and any output files (as a files map). On success exit_code is 0 and stdout contains program output.

## Example request

```json
{
 "code": "print('Hello from sandbox'); result = 2 + 2; print(f'2 + 2 = {result}')",
 "size": "small",
 "stack": "python"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Code to execute in the sandbox"
  },
  "size": {
   "enum": [
    "small",
    "med",
    "large"
   ],
   "type": "string",
   "default": "small",
   "description": "Sandbox size: small (2 vCPU, 1GB), med (4 vCPU, 4GB), large (8 vCPU, 8GB)"
  },
  "files": {
   "type": "object",
   "description": "Files to upload (filename → base64 content)",
   "additionalProperties": {
    "type": "string"
   }
  },
  "stack": {
   "enum": [
    "python",
    "node"
   ],
   "type": "string",
   "default": "python",
   "description": "Execution stack: python (Python 3.14) or node (Node.js 24 LTS)"
  },
  "timeout_seconds": {
   "type": "integer",
   "minimum": 1,
   "description": "Custom timeout in seconds (extra time charged per-second)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": "small",
  "files": {},
  "stack": "python",
  "stderr": "",
  "stdout": "Hello from AutEng x402!\n",
  "exit_code": 0,
  "sandbox_id": "sbx_example123",
  "execution_time_ms": 234
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-auteng-ai-3e2417df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.auteng.ai](https://www.zero.xyz/host/x402.auteng.ai/llms.txt)
