Add Lightning revenue
to your API.

Drop three lines of code. Let AI agents pay you per request in Bitcoin over the Lightning Network. No new contracts, no per-transaction fees, no replacing what you already charge.

⚡ Run the agent View the code
Real Lightning · 1 sat per call · ~1 second settlement

Watch an agent buy from this API.

The button below triggers an autonomous agent on our server. It calls the paid endpoint you choose, pays the resulting Lightning invoice from a pre-funded wallet, and retries with the L402 credential — exactly what your customers' agents will do against your API once you integrate.

An additional revenue stream — not a replacement.

Three lines, your language.

The middleware is a tiny wrapper around our hosted producer API. Pick your stack, install one package, gate a route with an attribute or a config line.

// .NET 8 / ASP.NET Core minimal API
using L402Server.AspNetCore;

builder.Services.AddL402AspNetCore(opts =>
    opts.ApiKey = builder.Configuration["LightningEnable:ApiKey"]);
app.UseL402();

app.MapGet("/api/data", () => data)
    .WithMetadata(new L402Attribute { PriceSats = 100 });
Install: dotnet add package L402Server.AspNetCore
Reference app: github.com/refined-element/l402-example-aspnet

Configured from your dashboard.

Set per-endpoint pricing, watch payments arrive in real time, track your sats stream — without touching code.

Pricing tab screenshot
Per-endpoint pricing. Different prices for different routes, no redeploy.
Recent 402s screenshot
Live payment feed. Every agent purchase, the moment it happens.
Revenue summary screenshot
Revenue summary. Sats earned by endpoint, by day, by agent.

Pricing.

Lightning Enable is a flat-rate subscription. You keep 100% of the sats your customers pay — we charge a monthly fee, not a percentage.

Agentic Commerce — Individual
$99/mo
  • Unlimited L402 endpoints
  • Strike or OpenNode as settlement provider
  • Per-endpoint pricing
  • Live dashboard + payment feed
  • 30-day free trial
Agentic Commerce — Business
$299/mo
  • Everything in Individual
  • Priority support
  • Higher rate limits
  • Multi-currency settlement
  • 30-day free trial

Lightning Enable does not hold funds. Your chosen settlement provider (Strike or OpenNode) custodies every payment.