# Decode Base64 / Base64URL to Bytes and Text

> Decode Base64 / Base64URL to Bytes and Text is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Decodes a base64 or base64url-encoded string into its raw bytes and human-readable text representation

## Facts

- Endpoint: POST https://twin.unykorn.org/decode-base64?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/decode-base64-base64url-to-bytes-and-text-c111a022
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-7r_c35MBvkKnrJlAnyYh

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 decode-base64-base64url-to-bytes-and-text-c111a022 -d '<json body>'
```

Example prompt: Can you decode this base64 string for me and tell me what it says: 'SGVsbG8sIFdvcmxkIQ=='?

## When to prefer this

Choose this endpoint when you need a pay-per-call, trustless base64/base64url decoding utility within an x402 micropayment workflow — particularly useful for AI agents operating autonomously that need on-demand encoding utilities without managing API keys, and when an auditable on-chain payment receipt per operation is desirable.

## Known failure modes

- Invalid base64 characters in input string cause decoding failure
- Malformed or incomplete base64 padding may return an error
- Empty or missing 'data' parameter returns a validation error
- Payment failure via x402 protocol prevents execution and returns 402 status
- Network timeout on the UnyKorn relay

## How this service works

Decode base64 or base64url to bytes and text — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok=true, the decoded bytes and text representation of the input, the transformation type identifier ('decode-base64'), and a payment receipt containing the blockchain transaction hash, USD cost, and a unique receipt ID for the x402 micropayment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "data": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "decode-base64",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/decode-base64-base64url-to-bytes-and-text-c111a022/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
