# YRUZ Base64 Encoder

> YRUZ Base64 Encoder 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 a given text string into Base64 format, with optional URL-safe encoding mode.

## Facts

- Endpoint: POST https://yruz.one/api/toolkit/base64-encoder?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-encoder-aa458436
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ACi0kDtCzMo1MUW69FzYl

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-encoder-aa458436 -d '<json body>'
```

Example prompt: Can you base64-encode the text 'Hello, World!' for me — using URL-safe mode?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call Base64 encoding utility without deploying your own server-side logic, especially in agentic workflows that already handle x402 micropayments and need URL-safe Base64 output as an option.

## Known failure modes

- Missing 'text' field causes a validation error or empty result
- Invalid or non-string input may result in an error response
- Malformed JSON body returns an error
- Network or payment processing failures return non-200 status codes

## 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 the tool name ('base64-encoder') and a result field containing the Base64-encoded representation of the input text. URL-safe encoding is applied when the 'url' parameter is set to '1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "1 for URL-safe"
  },
  "text": {
   "type": "string",
   "description": "input text (required)"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yruz-base64-encoder-aa458436/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)
