# Bounty Engineer Base64 Encode/Decode

> Bounty Engineer Base64 Encode/Decode is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Encodes or decodes strings using Base64 or Base64url alphabet via a paid micropayment API

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/base64?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-base64-encode-decode-847b4658
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_soCtE21083ulZC4ybEeIs

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 bounty-engineer-base64-encode-decode-847b4658 -d '<json body>'
```

Example prompt: Encode the string 'hello world' to base64 using standard base64 alphabet.

## When to prefer this

Choose this endpoint when an AI agent needs a reliable, metered base64 encode/decode operation within a micropayment (x402) workflow, especially when already integrated with the Bounty Engineer agent commerce stack and needing standard or URL-safe base64 transformations with predictable JSON responses.

## Known failure modes

- Input string exceeds 32768 character limit — returns error
- Invalid mode value (not 'encode' or 'decode') — returns validation error
- Invalid alphabet value (not 'base64' or 'base64url') — returns validation error
- Malformed base64 input during decode — may return error or garbled output
- Payment not provided or insufficient — returns HTTP 402

## How this service works

Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.

## Output

Returns a JSON object with ok:true, the mode used (encode or decode), the resulting output string, the alphabet used (base64 or base64url), and the number of input bytes processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string"
  },
  "input": {
   "type": "string",
   "maxLength": 32768
  },
  "alphabet": {
   "enum": [
    "base64",
    "base64url"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "mode": "encode",
   "output": "aGVsbG8=",
   "alphabet": "base64",
   "input_bytes": 5
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-base64-encode-decode-847b4658/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
