# AgentResolver Base64 Encode

> AgentResolver Base64 Encode is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Encodes an input string to Base64 format, returning the encoded result along with metadata about the operation.

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/base64-encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentresolver-base64-encode-2f1429ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HZmtTATcaoAJ3x0bBubIV

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 agentresolver-base64-encode-2f1429ec -d '<json body>'
```

Example prompt: Can you base64 encode the string 'Hello, World!' for me?

## When to prefer this

Choose this endpoint when you need a simple, reliable, metered Base64 encoding service accessible via HTTP without setting up local libraries — particularly useful in agent pipelines where encoding is a discrete billable step or where local compute is unavailable.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-string input type causes a schema validation failure
- Very large input strings may hit size limits or timeout
- Payment failure (402) if USDC balance is insufficient for the $0.001 fee

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

Returns a JSON object containing the base64-encoded result string, the encoding scheme used (e.g. 'base64'), the operation name, and the number of bytes in the original input string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 131072
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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