L402 API Access
Use AI tools by paying with Bitcoin. No signup. No API keys.
Pay with Bitcoin. Get AI Results.
Access 10 AI services using Lightning Network micropayments. No signup, no monthly subscription, no data collection. Just Sats.
⚡
No Signup
No accounts, no emails, no passwords
💰
Pay Per Use
No subscriptions. Only pay when you use it
🔒
Private
No personal data collected. Ever
₿
Bitcoin Native
Lightning payments settle in seconds
How It Works
Send Your Request
Call any API endpoint with your data. You'll get back a Lightning invoice to pay.
Pay with Lightning
Pay the invoice with any Lightning wallet. Takes seconds, costs pennies.
Get Your Result
Re-send the same request with your proof of payment. Done.
Services & Pricing
All prices in Satoshis (1 Sat ~ $0.001 USD). Click any service for full instructions.
| Service | Price |
|---|---|
| Image Generation | 100-200 Sats/image |
| Text Generation | 5-15 Sats minimum |
| Video Generation | 50 Sats/unit |
| Video from Image | 100 Sats/sec |
| Music Generation | 200 Sats/song |
| Speech Transcription | 10 Sats/minute |
| Image Analysis | 21 Sats/image |
| 3D Model Generation | 350 Sats/model |
| File Conversion | 100 Sats/file |
| OCR / Text Extraction | 10 Sats/page |
| SMS Service | varies by country |
Easiest Way: Use lnget
lnget is a free command-line tool that handles everything for you — request, payment, and authentication — in a single command.
Install it, then copy and paste any of these examples:
Generate an image:
lnget POST https://sats4ai.com/api/l402/image \
--json '{"input":{"prompt":"A cat on the moon"},"model":"Best"}'Generate text:
lnget POST https://sats4ai.com/api/l402/text-generation \
--json '{"input":[{"role":"User","content":"Explain Bitcoin"}],"model":"Best"}'Transcribe audio:
lnget POST https://sats4ai.com/api/l402/speech \
--json '{"file":"<base64-audio>","type":"transcription","model":"Transcription"}'lnget auto-pays the Lightning invoice and returns the result. No manual steps needed.
Manual Flow (Step by Step)
If you prefer to handle payments yourself (or want to understand how L402 works under the hood):
Send your request to the API endpoint
You'll get a 402 Payment Required response with a Lightning invoice and a macaroon (access token).
Pay the Lightning invoice
Use any Lightning wallet (Phoenix, Muun, Wallet of Satoshi, Alby, etc.). Save the preimage (proof of payment) your wallet gives you.
Re-send the exact same request with your payment proof
Add this header: Authorization: L402 <macaroon>:<preimage>
Click any service below for the exact copy-paste commands.
What is L402?
L402 is a standard that lets you pay for API access with Bitcoin instead of signing up for accounts and handing over personal data. It combines:
- Lightning Network — instant Bitcoin payments (fractions of a penny)
- Macaroons — tamper-proof access tokens (like a receipt)
The result: pay-per-use AI with full privacy. No accounts, no API keys, no credit cards, no monthly bills. You only pay for what you use, and we never know who you are.
For Developers: All endpoints and pricing are available as machine-readable JSON at /.well-known/l402-services
Get Started
Pick a service to see full instructions with copy-paste examples.
Image Generation
Create images from text prompts
Text Generation
AI chat and text completion
Video Generation
Generate videos from text
Video from Image
Animate images into video
Music Generation
Create songs with AI vocals
Speech Transcription
Transcribe audio to text
Image Analysis
Ask AI about any image
3D Model Generation
Turn photos into 3D models
File Conversion
Convert between file formats
OCR / Text Extraction
Extract text from PDFs and images
SMS Service
Send text messages globally