The L402 marketplace for open AI inference
Pay in sats. Earn in sats. No accounts. No subscriptions.
How it works
Pick a provider
Browse inference endpoints, data feeds, and tools. Filter by model, type, or price.
Get a Lightning invoice
POST your query. Patchbay returns an HTTP 402 with a BOLT11 invoice and a macaroon.
Pay and retry
Pay the invoice. Your wallet reveals a preimage. Retry with Authorization: L402 <macaroon>:<preimage>.
Get your result
Patchbay verifies the preimage locally (one hash check), forwards your request, and returns the response.
Why Patchbay
⚡ Millisecond settlement
Lightning settles instantly at fractions of a cent. Pay per query — never subscribe, never overpay.
🔐 Cryptographic auth
The payment preimage is the access credential. No API keys. No sessions. No database lookup on verify.
🤖 Agent-native
Built for autonomous agents. Compatible with Lightning Agent Tools' lnget. Macaroons support delegation for multi-agent workflows.
🚫 Zero fee
100% of the query price goes to the provider. No toll on transactions — ever.
🏗️ Built on BTCPay
Lightning operations through self-hosted BTCPay Server and LND. No third-party payment processor.