# x402-toolbox Base64 Encode

> x402-toolbox Base64 Encode is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Encodes a given string or schema input into Base64 format, paid per-call via x402 USDC micropayment on Base.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/util/base64-encode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-base64-encode-0447d8e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PdutThC34iBT06YN3TVkd

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 x402-toolbox-base64-encode-0447d8e2
```

Example prompt: Base64-encode the string 'Hello, World!' for me using the x402-toolbox pay-per-call utility.

## When to prefer this

Choose this endpoint when you need a simple, stateless, pay-per-call Base64 encoding utility with no signup or API key — ideal for AI agents operating autonomously with USDC micropayments on Base via x402. Best when you want a deterministic, serverless encoding function without managing credentials.

## Known failure modes

- Missing or empty input string returns an error or empty encoded result
- Invalid schema type may result in unexpected encoding behavior
- Payment failure via x402 (insufficient USDC balance) returns a 402 Payment Required response
- Network or Cloudflare Worker downtime causes 503 or timeout responses

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with 'ok: true' and 'paid: true' confirming the micropayment succeeded, along with the Base64-encoded representation of the input string or schema provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-base64-encode-0447d8e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
