# apex-edge Base64 Utility

> apex-edge Base64 Utility is a paid API for AI agents from apex-edge.pearceshrader.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Encodes or decodes data using Base64 via a paid x402 inference and audit endpoint

## Facts

- Endpoint: GET https://apex-edge.pearceshrader.workers.dev/api/v1/util/base64?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apex-edge-base64-utility-cff27070
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tfnNqAPPbOG1uL-Tb8bmP

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 apex-edge-base64-utility-cff27070
```

Example prompt: Can you Base64 encode this string for me: 'Hello, World! This is my secret payload' — I need the encoded result to embed in an API header.

## When to prefer this

Choose this endpoint when you need a metered, auditable Base64 encode/decode operation in an agent pipeline that already uses the x402 micropayment protocol and requires a verifiable audit trail of utility calls. It is particularly useful in automated workflows where usage accountability and per-call billing are required, as opposed to a free local or library-based Base64 operation.

## Known failure modes

- Invalid or malformed input payload returns an error response
- Payment failure (insufficient USDC balance or x402 handshake failure) blocks the request
- Malformed Base64 string on decode may return a decoding error
- Empty input body may result in a validation error
- Network timeout on the Cloudflare Worker edge node

## How this service works

x402-paid inference + audit endpoints

## Output

A JSON object containing the Base64-encoded or decoded result of the submitted input data, returned after a successful x402 micropayment of $0.001 USDC is processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "input": {
       "type": "string"
      },
      "decode": {
       "type": "boolean"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "status": "ok"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apex-edge-base64-utility-cff27070/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-edge.pearceshrader.workers.dev](https://www.zero.xyz/host/apex-edge.pearceshrader.workers.dev/llms.txt)
