# Base64 Encode/Decode Tool (x402 Gateway)

> Base64 Encode/Decode Tool (x402 Gateway) is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status down (last checked 2026-09-15).

Encodes or decodes Base64 (standard or URL-safe) for a given text string, paid per-call via x402 USDC on Base.

## Facts

- Endpoint: POST https://gpt55.558686.xyz/v1/tools/base64-codec
- Price: $0.0001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-encode-decode-tool-x402-gateway-7a40870b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QhlVPX37GLdN2hIom5BBv

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 base64-encode-decode-tool-x402-gateway-7a40870b -d '<json body>'
```

Example prompt: Can you base64-encode the text 'Hello, World!' for me — use URL-safe mode?

## When to prefer this

Use this endpoint when you need a simple, pay-per-call Base64 encode or decode operation via x402 micropayment on Base, without subscribing to a larger service. Suitable for agents that need occasional Base64 transformations and want to avoid API key management.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Text exceeds 20,000 character limit returns validation error
- Invalid 'mode' value (not 'encode' or 'decode') returns 400
- Insufficient USDC balance or x402 payment failure returns 402
- Network/gateway timeout returns 5xx

## How this service works

Low-price OpenAI-compatible GPT-5.5 chat completions and text tools over x402 USDC on Base: $0.0001 compact requests, $0.066667 true max-output requests, no subscription.

## Output

A JSON object with ok (boolean), tool name ('base64Codec'), the encoded or decoded result string, and a fetchedAt timestamp.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "mode": "encode",
   "text": "Hello, World!",
   "urlsafe": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "base64Codec",
  "summary": "Encode or decode Base64 using x402 USDC payment"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base64-encode-decode-tool-x402-gateway-7a40870b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
