# Base64 Encode / Decode

> Base64 Encode / Decode is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-11).

Encodes UTF-8 text to base64 or decodes base64 back to text, supporting standard and URL-safe alphabets, with no network calls.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/base64?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-encode-decode-7236c420
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_75mn9gWUMD-JKzakAT6s9

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-7236c420 -d '<json body>'
```

Example prompt: Base64-encode this string using the URL-safe alphabet: 'Hello, World! This is my payload.'

## When to prefer this

Use this endpoint when you need a lightweight, deterministic base64 encode or decode operation without spinning up a local library or executing code. Ideal for agents in sandboxed environments that lack access to native encoding utilities, or when you need URL-safe base64 specifically toggled via a parameter rather than manual alphabet substitution.

## Known failure modes

- Invalid base64 input when decoding (malformed characters or incorrect padding) returns an error
- Text exceeding the 400,000 character limit is rejected
- Missing required fields (mode or text) cause a validation error
- Requesting decode on non-base64 content may return a decoding error

## How this service works

Base64-encode UTF-8 text or decode base64 back to text, standard or URL-safe alphabet. Deterministic, no network.

## Output

Returns a JSON object with the converted string — either the base64-encoded representation of the input text or the decoded UTF-8 text, depending on the chosen mode. The operation is deterministic and requires no network access.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string"
  },
  "text": {
   "type": "string",
   "maxLength": 400000
  },
  "url_safe": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## More

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