# YRUZ Base64 Encode/Decode Utility

> YRUZ Base64 Encode/Decode Utility is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Encodes or decodes text using Base64, with optional URL-safe alphabet support.

## Facts

- Endpoint: POST https://yruz.one/api/util/base64?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-base64-encode-decode-utility-2b9e4122
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vf4y7sTAoCjsfE_j_t4kE

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 yruz-base64-encode-decode-utility-2b9e4122 -d '<json body>'
```

Example prompt: Encode the text 'Hello, World!' to Base64 using the URL-safe alphabet.

## When to prefer this

Use this endpoint when you need a simple, hosted Base64 encode/decode utility without deploying your own code. Particularly useful in agent pipelines where local computation is unavailable or inconvenient, and when URL-safe alphabet support is needed.

## Known failure modes

- Missing 'text' field returns an error — text input is required
- Invalid mode value (not 'encode' or 'decode') may cause unexpected behavior
- Passing non-Base64 text to decode mode will likely return an error or garbled output
- Malformed JSON request body returns 400-level error

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

Returns a JSON object with a 'tool' field set to 'base64' and a 'result' field containing the encoded or decoded output string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "1 for URL-safe alphabet"
  },
  "mode": {
   "type": "string",
   "description": "encode (default) | decode"
  },
  "text": {
   "type": "string",
   "description": "input (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "base64",
  "result": {}
 }
}
```

## More

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