# NexusAPI Base64 Encode

> NexusAPI Base64 Encode is a paid API for AI agents from nexus-api-virid.vercel.app, paid per call via x402, $0.071681/call, status unknown (last checked 2026-09-15).

Encodes a given string or data into Base64 format

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/tools/base64/encode
- Price: $0.071681/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-base64-encode-b3981c90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_moY7223vn5GgyctL09Xn8

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 nexusapi-base64-encode-b3981c90 -d '<json body>'
```

Example prompt: Can you Base64 encode this string for me: 'Hello, World! This is my secret message'?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call Base64 encoding operation without managing API keys or setting up a local encoding library — particularly useful inside AI agent workflows on Base that already use USDC micropayments via x402.

## Known failure modes

- Empty or missing input string returns an error
- Malformed input schema returns a 400 bad request
- Payment failure or insufficient USDC balance results in a 402 response
- Very large inputs may be truncated or rejected
- Network timeout from the Vercel-hosted endpoint

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a Base64-encoded representation of the input string, which can be used in HTTP headers, JSON payloads, data URIs, or any context requiring Base64-encoded data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

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