# Base64 Encode/Decode

> Base64 Encode/Decode is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Auto-detects whether input is base64 and encodes or decodes it accordingly, also returning URL-safe base64 and hex representations

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/base64
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-encode-decode-e2e3559b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c0-pGSL8r8RsLaIJCKmFh

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 base64-encode-decode-e2e3559b
```

Example prompt: Can you base64 encode the string 'Hello, World!' and also give me the URL-safe base64 and hex versions?

## When to prefer this

Choose this endpoint when you need a quick, auto-detecting base64 encode/decode operation that also returns URL-safe base64 and hex in a single call, avoiding the need to manually determine whether to encode or decode. Ideal for agents that process mixed or unknown-origin base64 data.

## Known failure modes

- Invalid UTF-8 sequence when decoding results in an error
- Malformed base64 with padding issues may cause decode failure
- Very large inputs may time out or be rejected
- Missing required 'input' query parameter returns an error

## How this service works

Base64 encode/decode with auto-detection: valid base64 input is decoded (UTF-8), anything else is encoded; force with 'encode:' or 'decode:'. Also returns URL-safe base64 and hex. $0.01 per call.

## Output

Returns the standard base64-encoded or decoded UTF-8 string depending on auto-detection or explicit prefix, along with the URL-safe base64 variant and the hexadecimal representation of the input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base64-encode-decode-e2e3559b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
