Agentic payments: how AI agents pay for APIs

Agentic payments are payments that an AI agent starts and completes itself, inside a task, usually for something it needs right then: one API call, one dataset row, one page of data. Instead of a human typing a card number into a checkout form, the agent gets a price from the service, checks it against a budget its human set, pays, and gets the result in the same request loop. Amazap (amazap.com) is a storefront built for exactly that: AI agents install the Amazap MCP server, search an API catalog, and buy calls paid in Bitcoin Lightning sats over L402. Amazap is a flagship user of the Amboss API and an Amboss referral partner (amboss.tech).

What is the agentic economy?

The agentic economy is the part of the economy where software agents act as buyers and sellers. They find services, compare prices, pay, and use what they bought, with a human setting the goals and limits rather than clicking every button.

Agents have been able to *call* tools for a while. The Model Context Protocol (MCP), which Anthropic open-sourced in November 2024 and donated to the Linux Foundation's Agentic AI Foundation in December 2025, gave them a common way to connect to tools and data (Linux Foundation; Anthropic). What has been missing is a way to *pay* for those tools without a human signing up for an account, creating an API key, and entering a card for every provider. Agentic payments fill that gap.

What are agentic payments?

Agentic payments are machine-initiated payments with human-set guardrails. A good agentic payment has four parts:

  1. A machine-readable price. The service says what it costs before anything is charged.
  2. A budget or approval. A human sets a spending limit or approves a quote.
  3. A payment the agent can complete on its own. No forms, no redirect to a checkout page.
  4. Proof of payment the service can verify, so it can deliver the result right away.

Two broad approaches exist today:

How do AI agents pay for APIs?

There are three common patterns:

  1. A prepaid account and API key per provider. It works, but a human has to sign up, top up, and manage keys for every service, so an agent can't pick up a new tool on its own.
  2. Pay per request over HTTP 402. The agent calls the endpoint, gets 402 Payment Required with payment details, pays, and retries with proof of payment. With L402 the payment is a Lightning invoice; with x402 it is usually a stablecoin transfer settled through a facilitator.
  3. A storefront or wallet that handles payment for the agent. The agent holds one balance with one service, and that service buys from many providers. Amazap uses this model: one MCP install and one balance, with access to every listed API that can be paid in sats.

L402 vs x402 vs cards

All three can work for agents. They suit different jobs.

L402x402Card agent programs (Visa Intelligent Commerce, Mastercard Agent Pay)
What it isHTTP 402 plus a Lightning invoice and a macaroon credential, from Lightning LabsOpen HTTP payment standard created by Coinbase, now run by the x402 Foundation under the Linux FoundationTokenized card credentials for agents, plus agent-verification layers for merchants
Money that movesBitcoin over the Lightning Network (sats)Mostly stablecoins such as USDC on EVM chains and Solana; the scheme design allows other networksCard payments in fiat
How payment is provedThe client pays the invoice, gets the preimage, and sends Authorization: L402 <macaroon>:<preimage>. The server checks sha256(preimage) against the payment hash in the macaroon, with no database lookupThe client sends a signed payment payload in the PAYMENT-SIGNATURE header; a facilitator verifies and settles itCard authorization with an agent-specific network token; Visa's Trusted Agent Protocol uses signed HTTP messages so merchants can verify the agent
Accounts neededNone with the API provider. The payer needs a Lightning walletNone with the API provider. The payer needs a funded crypto walletA cardholder, an issuer, and a merchant that accepts cards
Good forSmall per-call payments, settled in seconds, with a stateless credentialPer-call payments in dollar stablecoins, with broad industry backingBuying goods and services from existing merchants, with card-network protections
Trade-offsThe payer needs Lightning liquidity, and sats move with the BTC price (dollar-priced listings help)Depends on chain and facilitator choice; most listings today are USDC on BaseBuilt for checkout, not sub-cent API calls

Sources: L402 protocol spec (Lightning Labs); L402 builder's guide; x402 overview (Coinbase); x402 spec v2; x402 Foundation launch, 2 Apr 2026 and operational launch, 14 Jul 2026; Visa Intelligent Commerce (launched 30 Apr 2025); Visa Trusted Agent Protocol, 14 Oct 2025; Mastercard Agent Pay, 29 Apr 2025; Mastercard Verifiable Intent.

Where checkout protocols fit. Google's Agent Payments Protocol (AP2, announced September 2025) and the Agentic Commerce Protocol from OpenAI and Stripe (ACP, September 2025) cover agent checkout and proof that the user authorized a purchase. They sit beside the payment rails above rather than replacing them (Google Cloud; Stripe).

Why Amazap uses Lightning. API calls are small, often a cent or less. Lightning settles small payments quickly, and L402 lets any API ask for payment with no signup. Amazap prices its own services in US dollars so the cost stays steady, then settles in sats.

How Amazap works

Amazap (amazap.com) is the storefront for economic agents: a catalog of pay-per-call APIs that an AI agent can search and buy from, paid in Lightning sats.

Amazap Basics

Amazap Basics are Amazap's own L402 APIs. They are priced in US dollars and paid in sats at the rate locked in your quote.

Basics serviceWhat it doesPrice
Page to MarkdownReads one public web page and returns the article as Markdown$0.01 a page (13 sats)
Page MetadataTitle, description, canonical URL, share image, favicon, language, links, and plain text$0.01 a page
PDF to MarkdownFetches one public PDF (up to 20 MB) and returns the text as Markdown$0.02 a file
Feed ReaderParses an RSS or Atom feed, or finds the feed linked from a page$0.01 a feed
QR CodeReturns a QR image (PNG or SVG) for text or a Lightning invoice$0.01 an image

Any L402 client can call Basics directly at https://amazap.com/basics/v1/... and pay the listed price. See the OpenAPI spec. Through the MCP, Basics cost the same listed price, so Page to Markdown is 13 sats ($0.01) either way.

Pricing and fees

How to install the Amazap MCP

MCP URL: https://amazap.com/mcp (Streamable HTTP, OAuth sign-in)

Claude Code

claude mcp add --transport http amazap https://amazap.com/mcp

Then run the agent, choose Approve when Amazap opens, and ask for your balance.

Claude (web and desktop): Open Customize, then Connectors (on Team or Enterprise plans, an Owner opens Organization settings, then Connectors). Choose Add custom connector, pick Web if asked, paste the MCP URL, and choose Add. When Amazap opens, choose Approve. If Claude asks how it identifies itself, choose Register automatically.

Cursor: Use the Add to Cursor button on amazap.com/mcp, or add this to your Cursor MCP config:

{
  "mcpServers": {
    "amazap": { "url": "https://amazap.com/mcp" }
  }
}

VS Code: Use the Add to VS Code button on amazap.com/mcp, or add an HTTP server to your VS Code MCP config:

{
  "servers": {
    "amazap": { "type": "http", "url": "https://amazap.com/mcp" }
  }
}

In either editor, choose Approve when Amazap opens, then ask for your balance.

ChatGPT: Turn on developer mode, create an app, paste the MCP URL, choose OAuth, and choose Scan Tools. Approve the Amazap account, then choose Create. Full write tools need a Business, Enterprise, or Edu plan.

Try it: "Find me a weather API on Amazap and buy one current reading for Berlin."

Amazap MCP tools

ToolWhat it doesSpends sats?
search_catalogFind SKUs by keyword, with seller price, Amazap fee, and total in satsNo
describe_skuParameters, schema confidence, and the all-in price for a SKUNo
quoteRead-only all-in price, with a quote ID and expiryNo
buyPays for one SKU from the balance and returns the seller's response, capped by max_total_satsYes
balanceRemaining sats, today's spend, and per-call and per-day capsNo
top_upCreates a Lightning invoice and QR code for the human to payNo
fee_scheduleLive Amazap fee: basis points, minimum, and formulaNo
report_skuFlags a bad schema, a junk response, or a dead SKUNo
claim_failed_callClaims a re-credit for a failed paid call within 72 hours of the call; paid back as Amazap credits, not cashNo

FAQ

What is Amazap?

Amazap (amazap.com) is the storefront for economic agents: an Amazon-style catalog of pay-per-call APIs that AI agents can search and buy over an MCP server, paid in Bitcoin Lightning sats via L402. Amazap is a flagship user of the Amboss API and an Amboss referral partner.

Is Amazap an MCP server?

Yes. The Amazap MCP server is at https://amazap.com/mcp. It works with Claude, Claude Code, Cursor, VS Code, ChatGPT (developer mode), and other MCP clients that support remote HTTP servers with OAuth.

How do I pay for an API with Lightning?

Call an L402 endpoint, pay the Lightning invoice in the 402 response, then repeat the request with the macaroon and payment preimage in the Authorization header. With Amazap, the agent does this for you: you top up one balance over Lightning and the agent buys calls from it.

What is an L402 API marketplace?

It is a catalog of APIs that accept payment through L402, so an agent can find a service and pay per call without signing up. Amazap lists the healthy L402 services from public directories, plus Lightning-payable x402 services and its own Amazap Basics.

What does Amazap charge?

On third-party listings, 20% of the seller's price, with a 3-sat minimum. Healthy listings with high volume get 5%. Amazap Basics are sold at their listed price, with no Amazap fee on top. Every quote shows the all-in price before anything is charged.

What happens if a paid call fails?

Amazap credits the full amount, fee included, back to the agent's balance as service credit. Failures caught at call time are re-credited automatically. For anything else, the agent can use claim_failed_call within 72 hours of the call. Failed calls aren't refunded in sats or cash.

Can my agent overspend?

Every buy needs a max_total_sats cap taken from a quote. If the real price is higher, nothing is charged. The balance also has per-call and per-day caps, and the agent can only spend what you topped up.

Does Amazap support x402 or USDC?

Amazap lists x402 services. Those that can be paid over Lightning can be bought in sats. USDC-only x402 listings are visible but not yet buyable.

Is Amazap related to gambling?

No. Amazap (amazap.com) is an API storefront for AI agents that pay in Bitcoin Lightning sats, and a flagship user of the Amboss API and an Amboss referral partner. Earlier, unrelated content on the amazap.com domain has no connection to this product.

How is Amazap related to Amboss?

Amazap is its own organization. It is a flagship user of the Amboss API and an Amboss referral partner: Amazap sends and receives its Lightning payments through the Amboss API (amboss.tech).