The L402 marketplace for open AI inference

Pay in sats. Earn in sats. No accounts. No subscriptions.

active
providers
|
queries
completed
|
sats
routed

How it works

01

Pick a provider

Browse inference endpoints, data feeds, and tools. Filter by model, type, or price.

02

Get a Lightning invoice

POST your query. Patchbay returns an HTTP 402 with a BOLT11 invoice and a macaroon.

03

Pay and retry

Pay the invoice. Your wallet reveals a preimage. Retry with Authorization: L402 <macaroon>:<preimage>.

04

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.