Lampo

How to pay for AI models with Bitcoin Lightning

Paying for AI in sats means no subscription and no account: you pay a small Lightning invoice and get tokens. Here are the three easiest ways, from the most automatic to the most hands-on.

1. With the Pi coding agent (pi402)

pi402, by Lightning Labs, gives the Pi coding agent its own Lightning wallet. Point it at Lampo:

pi install npm:@lightninglabs/pi-402
export L402_PROXY_URL=https://lampo.run/v1
export PI402_NETWORK=mainnet
pi
/fund 20000
/model pi402/deepseek-v4-flash

Keep at least 2,000 sats in the pi402 wallet. Full setup: lampo.run.

2. From Claude, Cursor or any MCP client

Add Alby's MCP server with your wallet, then ask your assistant to use its fetch_l402 tool on Lampo. Instructions: lampo.run/#mcp.

3. From your own code

Any client that speaks L402 works. The quickest is Alby's command-line tool with an NWC wallet (see this guide), or do it by hand with curl as explained in L402 explained.

How much does it cost?

You buy bundles of tokens: from 1,000 sats (about $0.60) for about 2.5 million tokens of DeepSeek V4 Flash, up to 3,000 sats for Kimi K3. Each request is debited by what it actually uses. Prices follow the bitcoin price and are public.

Live prices: lampo.run shows every model and bundle, updated every 10 minutes. The cheapest bundle is 1,000 sats (about $0.60) for about 2.5 million tokens of DeepSeek V4 Flash.
See models and prices