Operational — Live on Mainnet

Bitcoin Benji API

Mempool intelligence + AI inference.
No API keys. No subscriptions. Pay per call with Lightning.

Base: api.bitcoinbenji.com Protocol: L402 AI: Local RTX 5070 Ti — Zero Data Leakage
sats earned
paid requests
endpoints
status

How It Works

1. Request

Hit any endpoint. No signup, no API key.

2. Invoice

Get a 402 response with a Lightning invoice (5-50 sats).

3. Pay

Pay the invoice. Your wallet provides the preimage.

4. Data

Re-send with Authorization: L402 header. Get your data.

Compatible with L402 clients (Aperture, lnget), or any HTTP client + Lightning wallet.

🧠 AI Inference

All inference runs locally on an RTX 5070 Ti. Your data never leaves the server. Drastically cheaper than OpenAI/Anthropic.

Endpoint Price
/ai/agent30 sats
/ai/code-review50 sats
/ai/extract25 sats
/ai/explain25 sats
/ai/summarize20 sats
/ai/translate20 sats
/ai/scrape15 sats
/ai/grammar15 sats
/ai/rewrite15 sats
/ai/sentiment10 sats
/ai/classify10 sats

Mempool Intelligence

Real-time data from a full Bitcoin Core node. Whale alerts, fee predictions, block data.

Endpoint Price
/whales/stream1 sat/min
/whales/alerts/subscribe100 + 5/event
/mempool/predict50 sats
/mempool/history50 sats
/whales40 sats
/fees10 sats
/blocks10 sats
/mempool5 sats

🎟️ Prepaid Bundles

Skip the per-call invoice round-trip. Buy a bundle of sats once, get an API key, send it as a Bearer header on any paid endpoint. Bundles ≥10,000 sats earn +10% bonus credit.

Endpoint Notes
/api/keysBuy a bundle. Body {sats, label?}. Min 1,000 sats.
/api/keys/claim/{hash}After paying invoice, GET this URL to receive your bbk_… key (shown once).
/api/keys/balanceBearer-authed. Returns balance, calls, per-endpoint usage.
/api/keys/topupBearer-authed. Refill an existing key.

🔒 Why L402?

No accounts

No signup, no email, no API keys to manage or rotate. Just pay and consume.

Privacy-first AI

All AI runs on dedicated local hardware. Your data never hits OpenAI, Google, or any third party.

Machine-to-machine

Built for AI agents and automated systems. L402 enables autonomous micropayments without human intervention.

Quick Start

Using curl:

# 1. Request an endpoint (returns 402 + invoice)
curl https://api.bitcoinbenji.com/fees

# 2. Pay the Lightning invoice from the response
# 3. Re-request with L402 token
curl -H "Authorization: L402 <macaroon>:<preimage>" \
  https://api.bitcoinbenji.com/fees

# AI example (POST)
curl -X POST https://api.bitcoinbenji.com/ai/sentiment \
  -H "Authorization: L402 <macaroon>:<preimage>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Bitcoin is the future of money"}'

# Or — buy a prepaid bundle once, then use a Bearer key
# 1. Mint a bundle invoice
curl -X POST https://api.bitcoinbenji.com/api/keys \
  -H "Content-Type: application/json" \
  -d '{"sats": 10000}'   # +10% bonus → 11,000 credit
# 2. Pay invoice, then claim key (shown once)
curl https://api.bitcoinbenji.com/api/keys/claim/<payment_hash>
# 3. Use Bearer on any paid endpoint — no per-call invoice
curl -H "Authorization: Bearer bbk_<hex>" \
  https://api.bitcoinbenji.com/whales

For automated usage, use an L402-compatible client that handles the payment flow automatically.