# agent-exec Pay-Per-Use Code Execution (Medium Plan)

> agent-exec Pay-Per-Use Code Execution (Medium Plan) is a paid API for AI agents from agent-exec.45.67.221.128.sslip.io, paid per call via x402, $0.0055/call, status unknown (last checked 2026-09-15).

Executes submitted source code in an isolated, network-less sandbox and returns stdout, stderr, and exit code — no account or API key required, payment via HTTP 402.

## Facts

- Endpoint: POST https://agent-exec.45.67.221.128.sslip.io/storage?plan=medium
- Price: $0.0055/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-exec-pay-per-use-code-execution-medium-plan-ec98e725
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nOQTydaLdhcr50-1bQdA4

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 agent-exec-pay-per-use-code-execution-medium-plan-ec98e725 -d '<json body>'
```

Example prompt: Run this Python snippet for me in a sandboxed environment and give me the output — I don't want to set up an account, just pay per use with the medium plan: `import math; print(math.factorial(20))`

## When to prefer this

Choose this endpoint when you need to execute code without creating an account or managing API keys, and you are comfortable paying per execution via HTTP 402 crypto micropayments. The medium plan is appropriate for workloads larger than the small plan but not requiring the full resources of the large plan. Prefer this over traditional compute APIs when you want accountless, stateless, pay-as-you-go sandboxed execution with USDC on-chain settlement.

## Known failure modes

- Payment insufficient or invalid — HTTP 402 with payment requirements returned
- Storage ID expired before retrieval — object no longer available
- Code causes sandbox resource exhaustion — execution may be killed with non-zero exit code
- Network access attempted inside sandbox — will fail silently or error since sandbox is network-less
- Invalid source code or unsupported language — non-zero exit code and stderr returned
- Service unavailable — HTTP 5xx with no storage ID returned

## How this service works

Accountless, pay-per-use code execution for software agents: submit source code, get stdout, stderr and exit code back from an isolated, network-less sandbox. No account, no API key -- possession of valid payment is sufficient.

This capability is scoped to plan=medium.

## Output

Returns a JSON object with a UUID storage ID, plan name, expiry timestamp (Unix ms), and payment details (asset, payer wallet address, amount in atomic units, network, and on-chain transaction hash). The actual stdout, stderr, and exit code are retrieved by calling GET /storage/{id} with the returned UUID before the expiry time.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "expiresAt",
  "plan"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Pass as GET /storage/{id} to read this object back. A UUID for a paid POST /storage; `free:<your wallet address>` for the one object POST /storage/free maintains -- stable across every free renewal for that wallet."
  },
  "plan": {
   "enum": [
    "small",
    "medium",
    "large",
    "free"
   ],
   "type": "string",
   "description": "One of the paid plans (small/medium/large) from POST /storage, or \"free\" from POST /storage/free."
  },
  "label": {
   "type": [
    "string",
    "null"
   ],
   "description": "The label you passed as ?label=, stored verbatim, or null if you passed none. Echoed back so you can confirm what was stored rather than assuming it."
  },
  "payment": {
   "type": "object",
   "properties": {
    "asset": {
     "type": "string"
    },
    "payer": {
     "type": "string",
     "description": "The paying wallet's address."
    },
    "amount": {
     "type": "string",
     "description": "Atomic units of the settlement asset that were charged."
    },
    "network": {
     "type": "string"
    },
    "transaction": {
     "type": "string",
     "description": "On-chain settlement transaction hash."
    }
   },
   "description": "Only present for a paid POST /storage write. Absent for POST /storage/free -- nothing was charged."
  },
  "expiresAt": {
   "type": "integer",
   "description": "Unix ms this object stops being retained."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-exec-pay-per-use-code-execution-medium-plan-ec98e725/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-exec.45.67.221.128.sslip.io](https://www.zero.xyz/host/agent-exec.45.67.221.128.sslip.io/llms.txt)
