# Foundry Base64 Encoder/Decoder

> Foundry Base64 Encoder/Decoder is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Encodes plain text to Base64 (standard and URL-safe) or decodes Base64 strings back to plain text

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/base64?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-base64-encoder-decoder-0b1267b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gf4722mFJTw7f0Cop9HKP

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 foundry-base64-encoder-decoder-0b1267b1 -d '<json body>'
```

Example prompt: Can you base64 encode the text 'Hello, World!' and give me both the standard and URL-safe versions?

## When to prefer this

Use this endpoint when you need a quick, stateless Base64 encode or decode operation without setting up a local library, especially in agent workflows that need both standard and URL-safe variants in a single call. Ideal for generating authorization headers, embedding tokens in URLs, or inspecting unknown Base64 payloads.

## Known failure modes

- Invalid Base64 string passed for decoding returns an error
- Input exceeds 8000 character maximum length
- Malformed instruction prefix (not 'encode:' or 'decode:') may result in unexpected behavior
- Non-UTF-8 characters in decoded output may cause rendering issues

## How this service works

Base64 encoder and decoder, standard and URL-safe. Input: 'encode: text' or 'decode: aGVsbG8='.

## Output

Returns a JSON object containing the detected mode ('encode' or 'decode'), the standard Base64 output, and the URL-safe Base64 output (with padding stripped). For decode mode, returns the original plain text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "'encode: <text>' or 'decode: <base64>'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "encode",
  "base64": "aGVsbG8gd29ybGQ=",
  "base64url": "aGVsbG8gd29ybGQ"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-base64-encoder-decoder-0b1267b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
