# ScriptMasterLabs Base64 Encode API (x402)

> ScriptMasterLabs Base64 Encode API (x402) is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Encodes input data to Base64 format, accessible via pay-per-call x402 micropayment settled in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/base64-encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-base64-encode-api-x402-a6342305
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WlUYvP2idPO8fgXtxpJId

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 scriptmasterlabs-base64-encode-api-x402-a6342305
```

Example prompt: Can you Base64 encode the string 'Hello, World!' using the ScriptMasterLabs x402 API and give me the result?

## When to prefer this

Prefer this endpoint when you need a pay-per-call, micropayment-gated Base64 encoding utility without standing up your own compute, or when integrating into an x402-native agentic payment workflow on Base. Less ideal for high-volume batch encoding where a free local library would be more cost-effective.

## Known failure modes

- Missing or malformed input property returns empty or error response
- Underpayment via x402 results in 402 Payment Required with payment details
- Invalid USDC/Base payment transaction causes request rejection
- Render.com cold-start latency may cause occasional timeouts on first call

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns a Base64-encoded representation of the input string or data provided in the request, allowing downstream use in HTTP headers, URL parameters, or any system requiring Base64-formatted input.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-base64-encode-api-x402-a6342305/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
