# Base64 Decode API

> Base64 Decode API is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Decodes a Base64-encoded string and returns the original plaintext value.

## Facts

- Endpoint: POST https://api.bakhour.ca/base64/decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-decode-api-77bfac21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h9Yzj3UXVQCWqU6vvrmRX

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 base64-decode-api-77bfac21 -d '<json body>'
```

Example prompt: Decode this Base64 string for me: 'aGVsbG8gd29ybGQ=' — what is the original text?

## When to prefer this

Choose this endpoint when you need a simple, deterministic Base64 decode in an automated agent workflow and want a paid-but-reliable micro-API rather than running local code. Useful when your agent runtime lacks native Base64 decode support or when you want a consistent external service call as part of a reproducible pipeline.

## Known failure modes

- Invalid or malformed Base64 input — may return an error or garbage output
- Empty input string — likely returns an error or empty decoded value
- Input contains non-Base64 characters — decoding may fail or produce unexpected results
- Network or service unavailability — HTTP error response

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

A JSON object with a 'decoded' field containing the original plaintext string recovered from the Base64 input, e.g. {"decoded": "hello"}.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "decoded": "hello"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base64-decode-api-77bfac21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
