Live on Mainnet

Bitcoin Benji API

Lightning-native machine intelligence.
Zero API keys. Zero subscriptions. Pay per call via L402.

Base URL: https://api.bitcoinbenji.com Protocol: L402 AI Compute: Local RTX 5070 Ti (Zero Data Leakage)

How L402 Works

1. Request: Make a GET or POST request to any endpoint.

2. Challenge: Server returns 402 Payment Required with a Lightning invoice and Macaroon challenge in the WWW-Authenticate header.

3. Pay: Pay the invoice via your Lightning node (typically takes ms). Your node provides the payment preimage.

4. Consume: Re-request the endpoint, sending the Macaroon and Preimage in the Authorization: L402 header. Receive the data.

Compatible with L402 clients like Aperture, lnget, and standard AI agents.

AI Inference Utilities

All inference runs locally on dedicated hardware. Drastically cheaper than OpenAI/Anthropic, completely private, zero third-party API dependencies.

Endpoint Method Price Description
/ai/agent POST 30 sats General AI agent. Body: {task, context?}
/ai/code-review POST 50 sats Review code for bugs, security, best practices. Body: {code, language?}
/ai/extract POST 25 sats Extract JSON from text (entities/contacts/dates). Body: {text, schema?}
/ai/explain POST 25 sats Explain a topic clearly. Body: {topic, level?}
/ai/summarize POST 20 sats Summarize long text. Body: {text, max_length?}
/ai/translate POST 20 sats Translate between 100+ languages. Body: {text, target}
/ai/scrape POST 15 sats Scrape and extract clean markdown from URL. Body: {url}
/ai/grammar POST 15 sats Fix grammar, spelling, punctuation. Body: {text}
/ai/rewrite POST 15 sats Rewrite text in different styles. Body: {text, style}
/ai/sentiment POST 10 sats Sentiment analysis w/ confidence score. Body: {text}
/ai/classify POST 10 sats Classify text into custom categories. Body: {text, categories[]}

Mempool Intelligence

Direct query access to a full Bitcoin node.

Endpoint Method Price Description
/mempool/history GET 50 sats Rolling 24h mempool snapshots
/whales GET 25 sats Whale / consolidation / distribution alerts
/fees GET 10 sats Fee estimates with trend analysis
/blocks GET 10 sats Recent block data
/mempool GET 5 sats Live mempool state