Directory / api.lightningenable.com
The complete economics guide for AI agents that earn more than they spend. Cost modeling, pricing strategies, budget policy implementations, real P&L examples, path to self-sustaining agents.
# 1. Ask the endpoint what it costs (no payment, no wallet needed): curl -i -X GET 'https://api.lightningenable.com/api/l402/content/building-revenue-positive-agents' # -> HTTP/1.1 402 Payment Required # the response carries the price, asset and pay-to address. # 2. Pay and retry with any x402 client: npx x402-fetch 'https://api.lightningenable.com/api/l402/content/building-revenue-positive-agents'
Endpoint: https://api.lightningenable.com/api/l402/content/building-revenue-positive-agents. Operated by api.lightningenable.com, not by Animica. Price and availability were correct at the last probe on 2026-08-30 and are set by the operator, who may change them.
Implement the L402 protocol yourself, no platform required. Protocol deep dive (macaroons, payment hashes, preimages), full implementations in Node.js / Python …
Production-grade NWC patterns for agents that pay at scale. Custom relay (strfry), throughput orchestration, NIP-04 vs NIP-44 v2 encryption compatibility (incl.…
Parse a BOLT11 Lightning invoice into network, amount (sats and msat), payment hash, payment secret, description, timestamp, expiry, min final CLTV, and payee p…
Public L402 test endpoint. Pay 1 sat to verify your L402 integration works. Returns pong on successful payment. No API key required.