# Base64 Encode/Decode

> Base64 Encode/Decode is a paid API for AI agents from conclavex402.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Encodes a plaintext string to Base64 or decodes a Base64 string back to plaintext via a simple POST request.

## Facts

- Endpoint: POST https://conclavex402.pythonanywhere.com/u/base64?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base64-encode-decode-cfcfed7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-OEJREn46S3Y4CfQ0cvnG

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-cfcfed7a -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 quick, pay-per-call Base64 encode or decode operation without spinning up local code or a dedicated library — especially useful for AI agents operating in environments where running arbitrary code is unavailable.

## Known failure modes

- Missing or invalid 'mode' field returns an error
- Invalid Base64 input during decode (non-Base64 characters) may return an error or garbage
- Empty input string may return an empty result or error
- Malformed request body (wrong content type or missing required fields) returns 4xx error

## How this service works

Base64 encode or decode a string — base64 encoder/decoder (body {mode:encode|decode,input}).

## Output

A JSON object containing a single field 'base64' with the encoded or decoded result string, e.g. {"base64": "aGVsbG8="}.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base64": "aGVsbG8="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base64-encode-decode-cfcfed7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402.pythonanywhere.com](https://www.zero.xyz/host/conclavex402.pythonanywhere.com/llms.txt)
