⚡ How It Works
Hit any endpoint. No signup, no API key.
Get a 402 response with a Lightning invoice (5-50 sats).
Pay the invoice. Your wallet provides the preimage.
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/agent | 30 sats |
| /ai/code-review | 50 sats |
| /ai/extract | 25 sats |
| /ai/explain | 25 sats |
| /ai/summarize | 20 sats |
| /ai/translate | 20 sats |
| /ai/scrape | 15 sats |
| /ai/grammar | 15 sats |
| /ai/rewrite | 15 sats |
| /ai/sentiment | 10 sats |
| /ai/classify | 10 sats |
₿ Mempool Intelligence
Real-time data from a full Bitcoin Core node. Whale alerts, fee predictions, block data.
| Endpoint | Price |
|---|---|
| /whales/stream | 1 sat/min |
| /whales/alerts/subscribe | 100 + 5/event |
| /mempool/predict | 50 sats |
| /mempool/history | 50 sats |
| /whales | 40 sats |
| /fees | 10 sats |
| /blocks | 10 sats |
| /mempool | 5 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/keys | Buy 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/balance | Bearer-authed. Returns balance, calls, per-endpoint usage. |
| /api/keys/topup | Bearer-authed. Refill an existing key. |
🔒 Why L402?
No signup, no email, no API keys to manage or rotate. Just pay and consume.
All AI runs on dedicated local hardware. Your data never hits OpenAI, Google, or any third party.
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.