# SYNTHORA Code Sandbox

> SYNTHORA Code Sandbox is a paid API for AI agents from api.hergertsynthora.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Executes arbitrary Python code in an isolated sandbox and returns stdout, stderr, and exit code

## Facts

- Endpoint: POST https://api.hergertsynthora.com/v1/code-sandbox
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synthora-code-sandbox-7ce91a50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oJop2ckohkaUfxXdKmwbV

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 synthora-code-sandbox-7ce91a50 -d '<json body>'
```

Example prompt: Run this Python snippet for me and tell me what it prints: `import math; print(math.factorial(20))`

## When to prefer this

Choose this endpoint when an AI agent needs to execute arbitrary Python code remotely without managing a local interpreter or container, especially for one-off computations, data transformations, or script evaluation in an agentic workflow where sandboxed isolation and hard resource limits are required. Prefer over self-hosted execution when you need a simple pay-per-call model with no infrastructure setup.

## Known failure modes

- Code exceeds hard resource limits (CPU/memory/time) — returns non-zero exit code and stderr describing the limit hit
- Syntax errors in submitted Python — returns exit code 1 with stderr containing the traceback
- Network or sandbox service unavailability — HTTP 5xx response
- Payment failure or insufficient USDC balance — HTTP 402 response
- Malformed input (non-string or missing 'input' field) — HTTP 400 validation error

## How this service works

Python code execution as a service for agents: send code, get stdout/stderr/exit code. Isolated, hard limits. $0.01 USDC x402 Base.

## Output

Returns the stdout output, stderr output, and integer exit code from running the submitted Python code in an isolated, resource-limited sandbox environment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Python code execution as a service for agents: send code, get stdout/stderr/exit code. Isolated, hard limits. $0.01 USDC x402 Base."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synthora-code-sandbox-7ce91a50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hergertsynthora.com](https://www.zero.xyz/host/api.hergertsynthora.com/llms.txt)
