0x0178b4840178…0178b481
Lightning Labs Launches Bitcoin Payments for AI Agents
Lightning Labs launched pi402, combining HTTP 402 billing, Lightning invoices and the Wavelength wallet so AI agents can purchase token-metered inference with Bitcoin.

Outputs
Lightning Labs launched pi402 for Bitcoin-funded AI inference purchases over Lightning.
Demo pricing is $0.375 per million input tokens and $1.50 per million output tokens.
L402 combines HTTP 402 invoices, macaroon authentication and pay-per-token billing.
Aperture and Lightmeter handle seller access and metering, while Wavelength manages funds between Ark and Lightning.
Agent tooling launched in February 2026, and Wavelength went live on mainnet in October 2026.
Lightning Labs launched pi402, a payment layer that lets autonomous AI agents buy API inference with Bitcoin over Lightning. Demo pricing is approximately $0.375 per million input tokens and $1.50 per million output tokens. The company says the system replaces monthly subscriptions and prepaid balances with request-by-request billing, although it names no production inference provider and provides no independent usage data.
How does pi402 complete a purchase?
L402, the protocol beneath pi402, joins HTTP 402 “Payment Required” responses with Bitcoin invoices issued over Lightning. When an agent requests a paid endpoint, the server returns a 402 response with an invoice attached; the agent pays the specified amount and, according to Lightning Labs, the payment settles instantly. The announcement provides no settlement-latency test or independent confirmation. In plain terms, the agent pays before the server releases the answer.
Authentication uses macaroons, credential tokens that authenticate the purchase loop. Lightning Labs calls the result “pay-per-token billing”: an agent pays only for the tokens consumed on each request. Once merchants and wallets are configured, the software can repeat the loop without human approval, although initial setup remains a human dependency.
Who accepts payment on the seller side?
Payment requires a service operator to accept invoices, so Lightning Labs directs inference providers toward two of its own tools:
- Aperture is an L402 reverse proxy that sits in front of a service and applies “pay first, then get access” before requests reach the backend.
- Lightmeter works alongside Aperture to meter usage and accept payments.
Together, they let a provider charge for access to an OpenAI-compatible inference endpoint without building a Bitcoin payment stack from scratch. The practical effect is lower payment-infrastructure friction for API sellers, not a change to the inference model itself.
How does Wavelength handle funds?
Neither buyers nor sellers need to run a Lightning node or manage payment channels, according to Lightning Labs. Its Wavelength wallet handles the payments, is built on Ark, and automatically moves funds between Ark and Lightning.
That removes node and channel management from the transaction flow. The announcement does not specify the wallet’s custody terms, routing rules, or behavior when a payment fails, so those details still require testing.
What does the demo pricing mean?
At the stated rates, 100 million input tokens would cost $37.50, while 100 million output tokens would cost $150. The figures illustrate why token metering may fit machine workloads better than a monthly subscription, but Lightning Labs labels them demo pricing.
The announcement gives no volume discounts, production fee schedule, or card-payment comparison. An individual API request still depends on its input and output token mix.
How did Lightning Labs build toward the launch?
pi402 completes a sequence of Lightning Labs releases across 2026 that the company presents as a progression toward autonomous payments.
- February 2026: The company launched agent tooling for software to interact with Lightning payments.
- October 2026: Wavelength went live on mainnet.
- Now: pi402 packages the agent tooling, L402 protocol, and wallet into a flow for purchasing inference.
The sequence shows how each release addresses a different operational gap. It does not demonstrate demand from paying AI-agent customers, because the announcement names no customer or transaction volume.
What remains unproven?
The first-party account identifies no inference customer, transaction count, revenue figure, audit, or third-party test. It also does not show how the “instant” settlement claim performs during retries, service outages, or payment failures. Those omissions do not negate the integration, but they limit any conclusion that pi402 has solved unattended commerce at scale.
For Bitcoin-based agent commerce to move beyond a controlled demo, the next proof point is a live inference request completing the 402 invoice, Lightning payment, access, and metering sequence without manual intervention. Until Lightning Labs or a customer documents that evidence, pi402 remains a technically specific integration with significant operational questions unanswered.
via cryptonews.net (Source)
More from Elena Vasquez
Show full bio
Staff writer covering regulation, policy and their impact on crypto and web3 industry at Mempool Brief.
1,024 articles