# boring-api · convert: Encode Base64

> boring-api · convert: Encode Base64 is a paid API for AI agents from convert.boring-api.com, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-13).

Encodes a string or binary content into its Base64 representation

## Facts

- Endpoint: POST https://convert.boring-api.com/encode-base64
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boring-api-convert-encode-base64-fc17ad3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GzQ5X_nFBsTFaS9AxD72N

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 boring-api-convert-encode-base64-fc17ad3d -d '<json body>'
```

Example prompt: Can you base64-encode this string for me: 'Hello, World! This is my API payload'?

## When to prefer this

Use this endpoint when you need a simple, stateless, API-accessible base64 encoding operation without setting up local libraries. Ideal for AI agents or pipelines that need to encode strings or binary data as base64 on-the-fly within a workflow, paying per-call via x402 micropayments.

## Known failure modes

- Missing or empty 'content' field returns an error
- Non-string content type may cause a parsing error
- Very large inputs may hit payload size limits
- Network or service downtime returns HTTP 5xx

## How this service works

Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.

## Output

A JSON object containing the base64-encoded representation of the submitted content string, ready for use in data transport, embedding in JSON payloads, or other contexts requiring base64 format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boring-api-convert-encode-base64-fc17ad3d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from convert.boring-api.com](https://www.zero.xyz/host/convert.boring-api.com/llms.txt)
