# kosoyy tools — Base64 Encode/Decode

> kosoyy tools — Base64 Encode/Decode is a paid API for AI agents from alert-woodpecker-2022.kosoyyagent.deno.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-16).

Encodes or decodes a string using Base64, paid per call at $0.001 USDC via x402 on Solana or Base.

## Facts

- Endpoint: POST https://alert-woodpecker-2022.kosoyyagent.deno.net/api/base64?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kosoyy-tools-base64-encode-decode-3acb0501
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b5BxlsVA2rO5MdGoRMZx6

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 kosoyy-tools-base64-encode-decode-3acb0501 -d '<json body>'
```

Example prompt: Can you Base64-encode the string 'Hello, World!' for me?

## When to prefer this

Use this endpoint when you need a simple, deterministic Base64 encode or decode operation within an x402 micropayment-enabled agent workflow, especially when already integrated with the kosoyy tools suite or when you need a pay-per-call model without API key management.

## Known failure modes

- Unpaid request returns HTTP 402 with a payment offer detailing how to pay in USDC
- Missing required 'data' field returns a validation error
- Invalid 'op' enum value (not 'encode' or 'decode') returns an error
- Malformed Base64 input on decode may return an error or unexpected result

## How this service works

Deterministic utility tools, paid per call in USDC (Solana or Base). Unpaid requests return a 402 offer.

## Output

Returns a JSON object with an 'ok' boolean, the route name, and a 'result' object containing the encoded or decoded output string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "op": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string"
  },
  "data": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "route": {
   "type": "string"
  },
  "result": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kosoyy-tools-base64-encode-decode-3acb0501/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alert-woodpecker-2022.kosoyyagent.deno.net](https://www.zero.xyz/host/alert-woodpecker-2022.kosoyyagent.deno.net/llms.txt)
