# ApexAPI Base64 Encode

> ApexAPI Base64 Encode is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.052518/call, status unknown (last checked 2026-10-12).

Encodes a string or data input into its Base64 representation

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/tools/base64/encode?utm_source=zero.xyz
- Price: $0.052518/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-base64-encode-ce4bd06a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xlv3YwHUwJCBKATT5iLHF

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 apexapi-base64-encode-ce4bd06a -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, pay-per-call Base64 encoding utility without managing API keys or running your own encoder — particularly useful in automated agent workflows where Base64 encoding is needed on-the-fly as part of a larger pipeline.

## Known failure modes

- Empty or missing query field returns an error or empty result
- Extremely large input strings may be rejected or time out
- Non-UTF-8 binary data passed as a string may produce incorrect encoding
- Payment failure (HTTP 402) if USDC balance is insufficient on Base

## 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 version of the provided input string, suitable for use in URLs, HTTP headers, authentication tokens, or data serialization contexts.

## 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/apexapi-base64-encode-ce4bd06a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
