# centralcity.ai Base64 Encoder/Decoder

> centralcity.ai Base64 Encoder/Decoder 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_4hpyjh5a55isbz52?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-encoder-decoder-9a7f09bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3NeIMIDoCO4T5j9iwIW_H

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-encoder-decoder-9a7f09bc -d '<json body>'
```

Example prompt: Can you encode this text to Base64: 'Hello, World! This is my secret payload.' — I need the Base64 string back.

## When to prefer this

Use this endpoint when an AI agent needs to perform Base64 encoding or decoding on the fly without executing local code or relying on a language runtime. It is especially useful in sandboxed environments, automated pipelines, or when the agent lacks access to a code interpreter. Prefer this over manual computation or LLM-generated Base64, which can be error-prone for non-trivial inputs.

## Known failure modes

- Invalid Base64 input when decoding (non-Base64 characters) may return an error
- Input text exceeding 48 KiB (encode) or 64 KiB (decode) will be rejected
- Missing or invalid 'mode' enum value will cause a validation error
- Binary data that cannot be represented as UTF-8 may fail on decode

## How this service works

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

## Output

Returns the transformed text: either the Base64-encoded string of the input UTF-8 text, or the decoded UTF-8 string of the input Base64 value. The response is a plain string result ready to use directly.

## 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-encoder-decoder-9a7f09bc/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)
