# whatchuneed Base64 Encoder/Decoder

> whatchuneed Base64 Encoder/Decoder is a paid API for AI agents from whatchuneed.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Encodes or decodes a string using Base64 transformation via a pay-per-call utility endpoint

## Facts

- Endpoint: POST https://whatchuneed.vercel.app/api/util/base64
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/whatchuneed-base64-encoder-decoder-4e1ea584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U--UAdQIm5D-NHVWlGGaO

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 whatchuneed-base64-encoder-decoder-4e1ea584 -d '<json body>'
```

Example prompt: Can you base64 encode this string for me: 'Hello, World! My secret token is abc123'?

## When to prefer this

Choose this endpoint when you need a quick, serverless, pay-per-call Base64 encode or decode operation without setting up a local utility or dependency. Useful for AI agents that need to encode credentials, tokens, or payloads on the fly within an automated workflow, especially when already using the whatchuneed API ecosystem for other tasks.

## Known failure modes

- Missing or empty 'input' field returns a validation error
- Passing binary or non-UTF8 data as a string may produce unexpected results
- Ambiguous input (neither valid Base64 nor plain text) may result in incorrect operation direction
- Network or payment failure via x402 protocol returns a 402 Payment Required error
- Malformed JSON body returns a 400 Bad Request

## How this service works

320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.

## Output

Returns a JSON object with a 'result' field containing the transformed Base64 output (encoded or decoded string) and a 'status' field indicating success or failure of the operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Request input"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object",
   "description": "Response data"
  },
  "status": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/whatchuneed-base64-encoder-decoder-4e1ea584/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from whatchuneed.vercel.app](https://www.zero.xyz/host/whatchuneed.vercel.app/llms.txt)
