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

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

Executes submitted source code in an isolated, network-less sandbox on a pay-per-use basis via HTTP 402 micropayment, returning stdout, stderr, and exit code — no account or API key required.

## Facts

- Endpoint: POST https://agent-exec.45.67.221.128.sslip.io/storage?plan=small
- Price: $0.0051/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-exec-pay-per-use-code-execution-plan-small-83d2b480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SXN_ZWzA29rjKUtx5V1x2

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-plan-small-83d2b480 -d '<json body>'
```

Example prompt: Run this Python snippet for me in a sandboxed environment using the small plan — no account needed, just pay the micropayment: `print(sum(range(1, 101)))`

## When to prefer this

Choose this endpoint when you need to execute a small, short-lived code snippet without registering an account or managing API keys, and you can pay via USDC micropayment. Prefer the small plan for lightweight computations that don't require large memory or CPU resources. Ideal for AI agents that need on-demand, accountless code execution as part of an automated workflow with minimal overhead.

## Known failure modes

- Payment rejected or insufficient funds — HTTP 402 with payment details not satisfied
- Invalid or unsupported source code format — may return a non-zero exit code in result
- Storage ID expired — GET /storage/{id} returns 404 after expiresAt timestamp
- Network or sandbox unavailability — HTTP 5xx response
- Plan mismatch or unsupported plan value — request rejected

## 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=small.

## Output

Returns a JSON object with a UUID storage ID (to retrieve execution results via GET /storage/{id}), the plan used, an expiry timestamp in Unix milliseconds, and payment metadata including the payer wallet address, amount charged in atomic USDC units, network, and settlement transaction hash.

## 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-plan-small-83d2b480/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)
