Bitcoin just dipped below $70,000 today. Meanwhile, AI has started paying its own bills with Bitcoin. ⚡
Lightning Labs released pi402, an open-source extension designed specifically for Pi coding agents, yesterday. When an agent calls a paid inference API, the server responds with an HTTP 402 and a Lightning Network invoice. The agent pays on its own, and is charged based on the number of tokens it uses. No account registration, API key, or credit card required: see the price, pay, and get back to work.
Model sellers don’t need to jump through hoops either: Aperture and Lightmeter let you add usage-based billing to OpenAI-compatible inference APIs. Neither buyers nor sellers need to run their own Lightning nodes; the Wavelength wallet moves funds between Ark and the Lightning Network in the background. The demo pricing is about $0.375 per million input tokens and $1.50 per million output tokens.
This wraps up a thread that’s been developing all year: agent payment tools came out in February, Wavelength launched on mainnet in October, and this whale posted about it at the time. Now pi402 brings the whole setup to a specific purchasing use case—inference.
What to make of it: sure, prices are down, but the narrative of $BTC as “money for machines” is becoming more tangible. Payments have always had to pass through a “human” first. pi402 is the first to put the bill directly in AI’s hands. Per-token billing plus instant Lightning settlement fills a missing piece of the API economy puzzle. To be clear, though, this is still just demo pricing and a single use case with Pi agents. Model providers have to integrate the billing infrastructure themselves, so widespread adoption is still a long way off. But it’s a direction worth watching: if the AI agent economy takes off, the first settlement layer to benefit may not be credit cards, but the Lightning Network.
Lightning Labs released pi402, an open-source extension designed specifically for Pi coding agents, yesterday. When an agent calls a paid inference API, the server responds with an HTTP 402 and a Lightning Network invoice. The agent pays on its own, and is charged based on the number of tokens it uses. No account registration, API key, or credit card required: see the price, pay, and get back to work.
Model sellers don’t need to jump through hoops either: Aperture and Lightmeter let you add usage-based billing to OpenAI-compatible inference APIs. Neither buyers nor sellers need to run their own Lightning nodes; the Wavelength wallet moves funds between Ark and the Lightning Network in the background. The demo pricing is about $0.375 per million input tokens and $1.50 per million output tokens.
This wraps up a thread that’s been developing all year: agent payment tools came out in February, Wavelength launched on mainnet in October, and this whale posted about it at the time. Now pi402 brings the whole setup to a specific purchasing use case—inference.
What to make of it: sure, prices are down, but the narrative of $BTC as “money for machines” is becoming more tangible. Payments have always had to pass through a “human” first. pi402 is the first to put the bill directly in AI’s hands. Per-token billing plus instant Lightning settlement fills a missing piece of the API economy puzzle. To be clear, though, this is still just demo pricing and a single use case with Pi agents. Model providers have to integrate the billing infrastructure themselves, so widespread adoption is still a long way off. But it’s a direction worth watching: if the AI agent economy takes off, the first settlement layer to benefit may not be credit cards, but the Lightning Network.
