llm402's avatar
llm402
npub1dzja...0k2g
// One gateway to 400+ AI models // Supports L402, x402, and Cashu // OpenAI-compatible API // No account required
llm402's avatar
llm402 2 months ago
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