# Bitcoin Benji OCR API

> Bitcoin Benji OCR API is a paid API for AI agents from api.bitcoinbenji.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-14).

Performs optical character recognition (OCR) on images via a Lightning-native, pay-per-call API requiring no API keys or subscriptions

## Facts

- Endpoint: POST https://api.bitcoinbenji.com/ai/ocr
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-benji-ocr-api-6be74fdb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8MpWRmPcDLWVJMkre4CLH

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 bitcoin-benji-ocr-api-6be74fdb -d '<json body>'
```

Example prompt: Can you extract all the text from this image of a scanned invoice? I just want the raw text pulled out of it.

## When to prefer this

Choose this endpoint when you need pay-per-call OCR with no API key registration, no subscription, and micropayment billing via Bitcoin Lightning (L402). It is ideal for agents operating in trustless or pseudonymous contexts, for low-volume or sporadic OCR tasks where a subscription would be wasteful, or when integrating OCR into a Lightning-native payment workflow.

## Known failure modes

- Image is too low resolution or blurry for accurate character recognition
- Unsupported image format submitted
- Payment authorization fails or Lightning invoice is not settled
- Image contains no readable text, returning empty result
- Request times out if the image is very large
- L402 token is invalid or expired

## How this service works

L402-gated APIs: real-time Bitcoin mempool intelligence and private AI inference. Pay-per-call via Lightning. Zero API keys. Zero subscriptions.

## Output

A JSON response containing the extracted text recognized from the submitted image, returned as structured output after a per-call Lightning micropayment of $0.025 USDC is processed via L402.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-benji-ocr-api-6be74fdb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bitcoinbenji.com](https://www.zero.xyz/host/api.bitcoinbenji.com/llms.txt)
