# centralcity.ai Base64 Encode/Decode

> centralcity.ai Base64 Encode/Decode is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Encodes UTF-8 text to Base64 or decodes Base64 back to UTF-8 text.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_sukajade7wo45zxx?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-base64-encode-decode-c42621c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TTDXLsG2Zc09jmZP06zwL

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 centralcity-ai-base64-encode-decode-c42621c4 -d '<json body>'
```

Example prompt: Can you Base64-encode the text 'Hello, World! This is my secret message.' for me?

## When to prefer this

Use this endpoint when you need a simple, reliable, pay-per-call Base64 encode or decode operation without setting up a local library or runtime — ideal for agents operating in environments where code execution is unavailable, or when you want a consistent API-driven transformation in a workflow pipeline.

## Known failure modes

- Invalid Base64 input when decoding (malformed or non-Base64 characters) returns an error
- Input text exceeds 48 KiB for encode or 64 KiB for decode, resulting in a size limit error
- Missing required 'mode' or 'text' fields returns a validation error
- Non-UTF-8 output after decoding (binary data) may result in an error or garbled output

## How this service works

Encodes a text as Base64, or decodes Base64 back to its UTF-8 text.

## Output

Returns a JSON object containing the transformed string — either the Base64-encoded representation of the input text, or the UTF-8 decoded text from a valid Base64 input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string",
   "description": "encode or decode the text."
  },
  "text": {
   "type": "string",
   "description": "The text to encode (at most 48 KiB) or the Base64 to decode, at most 64 KiB."
  }
 }
}
```

## More

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