# Agent Data Bench Base64 Encode/Decode

> Agent Data Bench Base64 Encode/Decode is a paid API for AI agents from x402.deepsense.stream, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Encodes UTF-8 text to base64 or decodes base64 back to UTF-8, returning byte counts alongside the result.

## Facts

- Endpoint: GET https://x402.deepsense.stream/api/v1/base64?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-bench-base64-encode-decode-753881d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v-16ToEwatvzzTmm6NM0a

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 agent-data-bench-base64-encode-decode-753881d2
```

Example prompt: Can you base64-encode this text for me so I can safely embed it in a JSON payload: 'Hello, World! This is my message.'

## When to prefer this

Choose this endpoint when an agent needs to encode or decode base64 in a JSON-safe way without relying on a local runtime library — especially useful in sandboxed or tool-calling contexts where standard codecs aren't available. Prefer this over rolling a custom solution when byte count metadata is also needed.

## Known failure modes

- Invalid base64 input when action=decode causes a decoding error response
- Input string exceeding 500,000 character limit returns a validation error
- Malformed request missing the 'input' field returns a 400-level error
- Payment failure (x402) returns a 402 Payment Required before processing

## How this service works

Encode UTF-8 text to base64 or decode base64 back to UTF-8, with byte counts. Lets an agent move binary-ish payloads through JSON without shipping a codec.

## Output

Returns the base64-encoded or UTF-8-decoded string along with input and output byte counts, allowing the agent to verify data size and integrity without needing a local codec.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 500000
  },
  "action": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string",
   "default": "encode"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-bench-base64-encode-decode-753881d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.deepsense.stream](https://www.zero.xyz/host/x402.deepsense.stream/llms.txt)
