Pay-per-prompt LLM access over Lightning
I built an LLM API that only accepts Lightning payments (L402)
Been working on this for a while and figured I'd share since it's live and working.
32 LLM models (DeepSeek-R1, Llama, Qwen, Mistral, etc.) accessible via L402. No API keys, no accounts, no email signup. Just pay a Lightning invoice and get inference.
How it works:
- Send a request (OpenAI-compatible or Ollama format)
- Get back a 402 with a Lightning invoice + macaroon Pay the invoice Resend with the preimage - get your response
- Pricing is dynamic - calculated per-request based on model cost, input size, and max output tokens.
- Converted to sats using live BTC price. Cheapest requests are ~10 sats.
Built for agents - see curl examples on the site. Works with lnget from Lightning Labs for full L402 flow automation.
Also listed in 402index.
If there are other models you'd want to see, features that would make this more useful, let me know. Happy to hear what people think.
/v
llm402.ai — Pay-per-request AI inference via Lightning, USDC, Cashu, or prepaid balance
Access 400+ AI models with no accounts. Pay per request via Bitcoin Lightning (L402), USDC on Base (x402), Cashu ecash, or prepaid balance tokens. ...