# Agent Format – Base64 Encode/Decode

> Agent Format – Base64 Encode/Decode is a paid API for AI agents from agent-format.annushka1190.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Encodes or decodes data using Base64 via a pay-per-request HTTP endpoint with no API keys required.

## Facts

- Endpoint: POST https://agent-format.annushka1190.workers.dev/v1/base64
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-format-base64-encode-decode-ad04b34c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D_XBoV4AbzOsGPFS5Bgv1

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 agent-format-base64-encode-decode-ad04b34c -d '<json body>'
```

Example prompt: Can you base64-encode the string 'Hello, World!' for me so I can embed it in a config file?

## When to prefer this

Choose this endpoint when you need a quick, serverless Base64 encode or decode without setting up API keys or accounts, especially in agentic workflows where pay-per-use USDC micropayments are preferred over subscription APIs.

## Known failure modes

- Missing 'input' field returns a 400-level error
- Invalid or malformed Base64 string when decoding may return an error or garbled output
- Payment failure or insufficient USDC balance prevents the call from completing
- Unsupported method value may cause rejection

## How this service works

Encoding utilities for AI agents: base64 encode/decode, hex encode/decode, URL slugify, JWT header/payload decode (no signature verify), and case conversion. Pay-per-request USDC via x402. No API keys, no accounts.

## Output

A JSON response with an 'ok' boolean and the transformed value — either a Base64-encoded string or the decoded plaintext result of the input, depending on the method chosen.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-format-base64-encode-decode-ad04b34c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-format.annushka1190.workers.dev](https://www.zero.xyz/host/agent-format.annushka1190.workers.dev/llms.txt)
