Enable AI Agents to Pay for Your API

Give AI a wallet. Set a budget. Let it work. Lightning Enable lets AI agents pay for premium APIs, data, and content automatically. No credit cards. No subscriptions. No human in the loop.

🤖
🛠
Constrained by Design

AI executes within boundaries you define—it does not improvise.

🔒
Non-Custodial

Your OpenNode account, your funds. We never touch them.

How AI Payments Work

1

AI Requests Access

Your AI agent tries to access a premium API endpoint.

2

Invoice Generated

The API returns a Lightning invoice for the exact cost.

3

AI Pays Instantly

Using MCP tools, the AI pays the invoice automatically.

4

Access Granted

Payment confirmed in milliseconds. AI gets the data it needs.

Calculate Your Savings

100,000 calls/month
$0.10 per call

Monthly Savings
$32,701
Stripe: $32,900 | Lightning Enable: $199

The Problem with Credit Cards

Transaction Stripe Fee Lightning Fee
$0.10 API call $0.055 (55%) $0.001 (1%)
$0.50 API call $0.315 (63%) $0.005 (1%)
$1.00 API call $0.329 (33%) $0.010 (1%)
100,000 x $0.10 $32,900 $199 (flat)

Note: Stripe charges $0.30 + 2.9% per transaction, killing micropayment economics. Lightning Enable charges a flat $199/month regardless of volume.

Built for AI-Powered API Monetization

🤖

Claude MCP Integration

Native support for Claude's Model Context Protocol. AI agents can pay invoices, manage budgets, and access your paywalled API automatically.

Pay-Per-Request Access

Charge per API call instead of monthly subscriptions. AI agents pay only for what they use. Paywalls that don't stop AI anymore.

💰

Instant Settlements

Payments settle in under 1 second. No chargebacks, no fraud, no waiting 2-3 business days for your money.

🌍

Global Access

Accept payments from anywhere in the world without worrying about currency conversion, international fees, or payment processor availability.

🛠

Developer-Friendly API

Clean REST API with code examples in multiple languages. Get up and running in minutes with comprehensive documentation.

📊

Usage Analytics Dashboard

Real-time analytics on API usage, revenue, and customer behavior. Track which endpoints generate the most value.

Built-In Tools for AI Agents

Lightning Enable provides a complete MCP server with constrained payment tools. AI agents execute payments within boundaries you define.

Available MCP Tools
pay_invoice Pay any Lightning invoice directly
access_l402_resource Access paywalled APIs automatically
configure_budget Set spending limits per session
check_wallet_balance Monitor available funds
get_payment_history Review past transactions
Example: AI Research Assistant

"Find me the latest research on quantum computing and summarize the key findings."

  1. AI searches for relevant papers
  2. Encounters paywall on premium database
  3. Uses access_l402_resource to pay $0.25
  4. Downloads and summarizes the paper
  5. Continues research without human intervention
Total cost: $0.25  |  Time saved: Hours

Real-World Use Cases

🧠 AI Model Inference APIs

Challenge: Running GPT-4 or other large language models costs $0.03-$0.60 per API call. Stripe's $0.30 fixed fee makes small transactions unprofitable.

Solution: Charge exactly what the API call costs plus margin. With Lightning, a $0.10 call costs you $0.001 in fees (1%), leaving $0.099 profit vs. losing money with Stripe.

📸 Image Generation APIs

Challenge: Stable Diffusion API calls cost $0.02-$0.10 each. Credit cards charge more in fees than the service costs.

Solution: Enable pay-per-image pricing. AI agents pay 10 cents, you keep 99% of it. Scale to millions of requests without worrying about payment processor costs.

🔍 Premium Data APIs

Challenge: Providing real-time data (stock prices, research reports, analytics) requires frequent small payments that traditional processors can't handle.

Solution: Charge per API request ($0.01-$0.50). AI agents access your data, pay automatically, and continue their work without human intervention.

🎨 Content Transformation APIs

Challenge: PDF generation, video transcoding, or audio processing costs vary by file size. Usage-based pricing is essential but impossible with credit cards.

Solution: Charge based on actual compute time and resource usage. Lightning's sub-cent transaction capability makes granular billing viable.

Frequently Asked Questions

Yes, but only within strict, human-defined constraints. This is intentional by design. AI agents can pay for API access, premium content, and data services automatically using MCP tools—but every payment operates within hard limits set by humans:
  • Budget caps that cannot be bypassed at runtime
  • Per-request limits preventing runaway spending
  • Session-level controls for total spend per task
  • Non-custodial architecture keeping you in control of funds
AI cannot (and by design, should not) purchase physical goods, sign contracts, or make irreversible financial decisions. Lightning Enable is purpose-built for small, reversible, machine-to-machine transactions. The AI executes within boundaries you define—it does not improvise.

Through layered, enforceable constraints. The configure_budget tool lets you set per-session and per-request spending limits. Default limits are 1000 sats per request and 10000 sats per session. Critically, these limits are enforced by hard caps configured in your environment—the AI cannot modify or bypass these boundaries, even if instructed to do so. This is constraint-based design: humans set the rules, AI operates within them.

Lightning Enable connects to your own Lightning wallet via Nostr Wallet Connect (NWC). You control the wallet, the keys, and the funds. The AI only has permission to request payments up to your configured limits. We never custody funds.

Add Lightning Enable to your Claude Desktop configuration file. The MCP server connects via stdio and provides all the payment tools automatically. See our MCP Setup Guide for step-by-step instructions.

Lightning payments are atomic - they either complete fully or not at all. If a payment fails (insufficient balance, network issue, etc.), the AI receives an error message and can report the issue or try again. No funds are lost in failed payment attempts.

Ready to Accept AI Payments?

Join API providers building the next generation of machine-to-machine commerce—with humans in control.

Start Free Trial Read API Docs