# ProfitCollector Base64 Encode

> ProfitCollector Base64 Encode is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Encodes a plain text string into its Base64 representation

## Facts

- Endpoint: POST https://api.bakhour.ca/base64/encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollector-base64-encode-f31263d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AH7wP7qXJ6w9hCLo2K6gw

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 profitcollector-base64-encode-f31263d0 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, deterministic Base64 encoding of a plain text string inside an automated workflow or agent pipeline and want a simple paid API call rather than running a local encoding library. It is especially useful in sandboxed or restricted environments where standard library access is limited.

## Known failure modes

- Missing or empty 'text' field returns an error response
- Non-string input types may cause a validation error
- Payment failure (402) if USDC balance is insufficient
- Network timeout on the api.bakhour.ca host

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

A JSON object containing a single field 'encoded' with the Base64-encoded version of the input text string (e.g. {"encoded": "aGVsbG8="}).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "encoded": "aGVsbG8="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollector-base64-encode-f31263d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
