# HTTPay Base64 Encode API

> HTTPay Base64 Encode API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Encodes any text or binary data into Base64 and URL-safe Base64 format via a pay-per-call endpoint with no API key required

## Facts

- Endpoint: POST https://httpay.xyz/api/base64-encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-base64-encode-api-e8abc44f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_haSv6WKdRX2B_sq93r-Mz

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 httpay-base64-encode-api-e8abc44f -d '<json body>'
```

Example prompt: Can you base64 encode this text for me: 'Hello, World! This is my API payload' and also give me the URL-safe version?

## When to prefer this

Choose this endpoint when you need a quick, no-setup Base64 encoding utility without managing API keys or subscriptions — ideal for agents that need one-off encoding operations and can pay $0.001 USDC per call via x402 on Base. Prefer this over self-hosted solutions when avoiding infrastructure overhead matters.

## Known failure modes

- Missing or empty text field in POST body returns error
- Malformed JSON body causes parse error
- Oversized payload may be rejected
- Network timeout on slow connections
- Payment failure via x402 prevents access

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

Returns a JSON object containing the standard Base64 encoded string and a URL-safe Base64 variant of the submitted text or binary data, computed using Node.js built-in Buffer with zero external dependencies.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Base64-encode any text or binary data. POST JSON body: {text}. Returns base64 string and URL-safe variant. Uses Node.js built-in Buffer. Zero external dependencies."
 }
}
```

## More

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