# klymax402 Base64 Codec API

> klymax402 Base64 Codec API is a paid API for AI agents from klymax402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Encodes or decodes strings using Base64 (including URL-safe variant) and returns the result with length metadata.

## Facts

- Endpoint: GET https://klymax402.com/api/base64-codec/api/encode
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-base64-codec-api-94c0a082
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EuZGHY8vs1kT-x53qLxeu

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 klymax402-base64-codec-api-94c0a082
```

Example prompt: Can you base64-encode the string 'Hello, World!' for me and let me know the output length?

## When to prefer this

Use this endpoint when your agent needs a quick, no-setup Base64 encode or decode operation without managing local libraries, or when running in an environment where you want a simple API call instead of executing code. Particularly useful within agent workflows that already use USDC x402 micropayments and need encoding as a utility step.

## Known failure modes

- Missing 'data' parameter returns an error or empty result
- Invalid action value (not 'encode' or 'decode') may default to encode or return an error
- Non-UTF8 or binary data passed as string may cause garbled results
- Payment failure (insufficient USDC balance) returns HTTP 402

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

A JSON object containing the action performed ('encode' or 'decode'), the resulting string, a URL-safe variant of the output, and the input and output character lengths.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "description": "The data to encode or decode"
  },
  "action": {
   "type": "string",
   "description": "Action: 'encode' or 'decode' (default: encode)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "action": "example",
  "result": "example",
  "urlSafe": "example",
  "inputLength": 1,
  "outputLength": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klymax402-base64-codec-api-94c0a082/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klymax402.com](https://www.zero.xyz/host/klymax402.com/llms.txt)
