# JarvisClaw Sandbox Code Execution

> JarvisClaw Sandbox Code Execution is a paid API for AI agents from api.jarvisclaw.ai, paid per call via x402, $0.045/call, status unknown (last checked 2026-09-15).

Executes AI-powered code or compute tasks in a sandboxed environment via an OpenAI-compatible chat API, billed per-call in USDC on Base or Solana.

## Facts

- Endpoint: GET https://api.jarvisclaw.ai/v1/marketplace/compute/sandbox/exec
- Price: $0.045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jarvisclaw-sandbox-code-execution-d88cea49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DrU3jh3IfIV-A4u-f1qeb

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 jarvisclaw-sandbox-code-execution-d88cea49
```

Example prompt: Run this Python snippet in the AI sandbox using gpt-4.1-nano — 'print([x**2 for x in range(10)])' — keep max_tokens at 512 and temperature at 0.2, and stream the response back to me.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible AI inference or sandboxed code execution with pay-per-call USDC billing and no subscription required — especially useful for autonomous agents that need to pay dynamically per task using Base or Solana crypto rails.

## Known failure modes

- 402 Payment Required if USDC balance is insufficient or x402 header is missing
- Invalid model ID returns 400 or model-not-found error
- Sandbox timeout if compute task exceeds allowed duration
- Malformed messages array causes 422 validation error
- Rate limiting if too many concurrent calls are made

## How this service works

AI API Gateway with smart routing, pay per call via x402. OpenAI-compatible. Settled in USDC on Base & Solana.

## Output

Returns an OpenAI-compatible chat completion response containing the AI-generated output or code execution result; supports streaming token-by-token delivery. Payment is deducted at $0.01 USDC per call settled on Base or Solana.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Request parameters"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jarvisclaw-sandbox-code-execution-d88cea49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jarvisclaw.ai](https://www.zero.xyz/host/api.jarvisclaw.ai/llms.txt)
