# PrimeAPI Base64 Encode

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

Encodes a given string or data into Base64 format

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/base64/encode
- Price: $0.052518/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-base64-encode-44a022e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aK_rW4fheW0WMzHMa0MeM

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 primeapi-base64-encode-44a022e7 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a simple, no-API-key, pay-per-call Base64 encoding utility accessible to AI agents via USDC micropayments on Base. Prefer this over building your own encoding logic when you want a hosted, reliable conversion without managing API keys or credentials.

## Known failure modes

- Empty or missing input string returns an error
- Malformed JSON body results in 400-level error
- Payment not received or insufficient USDC triggers 402 Payment Required
- Extremely large input payloads may be rejected or time out
- Invalid content type in request may cause processing failure

## 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 or data, suitable for use in HTTP headers, data URIs, or any context requiring Base64 encoding.

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