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 helps an agent spend less on AI: fewer tokens, the right tool, or a direct read. Agents install the Amazap MCP server and pay for calls from a credit balance, in sats over Lightning. Prices are in sats first, then ≈$. Amazap is built by Amboss Technologies, which also runs the Amboss Payments service Amazap uses (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:
- A machine-readable price. The service says what it costs before anything is charged.
- A budget or approval. A human sets a spending limit or approves a quote.
- A payment the agent can complete on its own. No forms, no redirect to a checkout page.
- Proof of payment the service can verify, so it can deliver the result right away.
Two broad approaches exist today:
- Payment-native web protocols such as L402 and x402. They reuse the HTTP
402 Payment Requiredstatus code so a server can ask for payment and a client can answer it inside the same HTTP exchange. - Card-network agent programs such as Visa Intelligent Commerce and Mastercard Agent Pay. They give agents tokenized card credentials and give merchants ways to recognize trusted agents.
How do AI agents pay for APIs?
There are three common patterns:
- 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.
- Pay per request over HTTP 402. The agent calls the endpoint, gets
402 Payment Requiredwith payment details, pays, and retries with proof of payment. With L402 the payment is a Lightning invoice. With x402 the client sends a signed payment that a facilitator settles. - A service that pays for the agent. The agent holds one credit balance with one service, and that service buys from many providers. Amazap uses this model: one MCP install and one credit 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.
| L402 | x402 | Card agent programs (Visa Intelligent Commerce, Mastercard Agent Pay) | |
|---|---|---|---|
| What it is | HTTP 402 plus a Lightning invoice and a macaroon credential, from Lightning Labs | Open HTTP payment standard created by Coinbase, now run by the x402 Foundation under the Linux Foundation | Card credentials issued for the agent, plus agent-verification layers for merchants |
| Money that moves | Sats over Lightning | The asset named in the server's payment scheme | Card payments in ordinary currency |
| How payment is proved | The 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 lookup | The client sends a signed payment payload in the PAYMENT-SIGNATURE header; a facilitator verifies and settles it | Card authorization with a credential issued for the agent; Visa's Trusted Agent Protocol uses signed HTTP messages so merchants can verify the agent |
| Accounts needed | None with the API provider. The payer needs a Lightning app | None with the API provider. The payer needs a funded account that can complete the payment the server asks for | A cardholder, an issuer, and a merchant that accepts cards |
| Good for | Small per-call payments, with a stateless credential | Per-call payments where a facilitator settles the scheme the server names | Buying goods and services from existing merchants, with card-network protections |
| Trade-offs | The payer needs Lightning liquidity. A dollar-priced listing's sat amount moves with the exchange rate | Depends on the payment scheme and the facilitator | Built 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 helps an agent spend less on AI: fewer tokens, the right tool, or a direct read. Prices are in sats first, then ≈$.
- One place to look. About 1,200 listings, collected from public L402 and x402 directories (402 Index, PayPerQ, and Coinbase's x402 Bazaar) plus Amazap's own services. Listings that can be paid over Lightning can be bought in sats. Listings that cannot be paid over Lightning are shown but can't be bought yet. Every listing has a page at
amazap.com/product/<slug>. - One credit balance. Approving the MCP connection opens an agent account. A new account may get a small starter credit after verifying an email and linking the agent, subject to limits. The agent can also ask for a top-up, the human pays a Lightning invoice (QR code or link), and the credit balance is ready.
- Quote, then buy. The agent calls
quoteto get the all-in price in sats with a local-currency estimate, shows it to the human, then callsbuy.buycarries a hard cap (max_total_sats). If the real price is higher, nothing is charged. - Amazap pays the seller. Amazap is the merchant of record. It buys each call from the seller over L402 and returns the seller's response to the agent. (Selling? See How to sell your API to AI agents.)
- Failed calls come back as credit. If a paid call fails, the full price you paid goes back to the credit balance as service credit. Failures caught at call time are re-credited automatically; anything else can be claimed with
claim_failed_callwithin 72 hours of the call.
Amazap Basics
Amazap Basics are Amazap's own L402 APIs. The price is in sats. The dollar figure is the equivalent at the current BTC rate.
| Basics service | What it does | Price |
|---|---|---|
| Page to Markdown | Clean article Markdown. Use it when the page is long or cluttered. Skip it on a short or already clean page: the quote compares the tokens both ways and does not charge for that check. | 7 sats ≈ $0.0043 |
| Page Metadata | Title, description, canonical URL, share image, favicon, language, Open Graph, Twitter card, and JSON-LD. Page text and links stay off unless asked | 7 sats ≈ $0.0043 |
| PDF to Markdown | Fetches one public PDF (up to 20 MB, first 30 pages) and returns Markdown with headings and tables | 33 sats ≈ $0.02 for up to 30 pages, scaled by pages read, minimum 5 sats |
| Feed Reader | Parses an RSS, Atom, or JSON feed, or finds the feed linked from a page | 7 sats ≈ $0.0043 |
| QR Code | Returns a PNG QR image for text or a Lightning invoice | 17 sats ≈ $0.01 |
| Log Squeezer | Shrinks one build, test, or server log. Pass the text or a public URL, including a GitHub Actions job URL | 14 sats ≈ $0.0086 |
| Repo Digest | Compact Markdown digest of one public GitHub repository | 33 sats ≈ $0.02 |
| Package Facts | Latest version, release date, deprecation or yank, OSV advisories, license, repository, weekly downloads, and breaking changes for one npm or PyPI package. fields=summary is the default | 17 sats ≈ $0.01 summary, 27 sats ≈ $0.017 full |
| Lockfile Audit | Vulnerable, deprecated, unmaintained, and far-behind dependencies from one public lockfile, grouped by severity, with a fixed version when one is published | 40 sats ≈ $0.025 |
| API Spec Digest | Compact endpoint index of one public OpenAPI or Swagger URL | 33 sats ≈ $0.02 |
| Lightning Liquidity Price Index | Current Amboss Magma inbound-liquidity price, available capacity at each APR percent, and fee and lock-time percentiles. Read-only | 33 sats ≈ $0.02 |
| Lightning Node Snapshot | Current Amboss Space snapshot for one Lightning node pubkey | 17 sats ≈ $0.01 |
| Docs Digest | Compact digest of one public docs site: outline, signatures, and short code examples. Use when you'd otherwise read about 30+ docs pages at $1.25/M, 12+ at $3/M, or 3+ at $15/M; skip on models under about $0.65/M; pass a topic. | 50 sats ≈ $0.031 |
| Pricing Page Extractor | Plans, price, currency, monthly versus annual, per seat, and limits, each with the exact words from the page | 17 sats ≈ $0.01 |
| Page Change Check | Whether a public page, or one region of it, changed. A failed check is never unchanged. Buy the diff only when it changed | 3 sats ≈ $0.0018 plain, 7 sats ≈ $0.0043 rendered |
| Page Change Diff | The lines that changed since the last check, with a short summary | 7 sats ≈ $0.0043 |
| Weather | Current conditions, the next 24 hours, and a 7-day summary for a city or a latitude and longitude. Coverage is global. The markdown card is off unless card=true | 9 sats ≈ $0.0055 |
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 7 sats ≈ $0.0043 either way.
Pricing
- What you see is what you pay. Every quote shows one all-in price in sats, with a local-currency estimate. That is the price you pay, nothing added at checkout.
- Amazap Basics: listed price. Amazap Basics cost their listed price. The price is in sats. The dollar figure is the equivalent at the current BTC rate.
- Credits. Topping up buys prepaid Amazap service credits. Your payment becomes Amazap's, and credits can only be spent on services Amazap sells. We don't hold funds on your behalf, and credits can't be withdrawn or transferred. Credits stay valid as long as the account is used at least once a year. Failed calls are credited back automatically, or by claim within 72 hours.
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.
Gemini app: On gemini.google.com, open Settings & help, then Connected Apps. Under Custom apps, choose Add a custom app, paste the MCP URL, and choose Next. Leave Advanced closed. Accept the notice, sign in, and choose Approve. Name it Amazap, then use @Amazap in a chat. Custom apps are available in the US, in English, on personal Google accounts, for people 18 or older, with Keep Activity on. Add the app on the web. After that it works on the web and in the mobile app.
Gemini CLI
gemini mcp add --scope user --transport http amazap https://amazap.com/mcp
In Gemini, run /mcp auth amazap and choose Approve when the browser opens. The folder has to be trusted (gemini trust). Check with /mcp.
Or edit ~/.gemini/settings.json:
{
"mcpServers": {
"amazap": { "httpUrl": "https://amazap.com/mcp" }
}
}
Android Studio: Open Settings, then Tools, then AI, then MCP Servers. Turn the servers on, paste the same config, and choose Start Login. Choose Approve when Amazap opens.
Gemini Code Assist: VS Code agent mode uses that same ~/.gemini/settings.json. In IntelliJ, the server entry is {"command":"npx","args":["mcp-remote","https://amazap.com/mcp"]}.
Gemini API: Developers need an agent bearer token.
Try it: "Find me a weather API on Amazap and buy one current reading for Berlin."
Amazap MCP tools
| Tool | What it does | Spends sats? |
|---|---|---|
read_webpage | Reads one public page as Markdown | Yes |
lightning_node | Current snapshot of one Lightning node | Yes |
lightning_liquidity | Current inbound-liquidity prices | Yes |
read_feed | Reads an RSS, Atom, or JSON feed as compact JSON | Yes |
make_qr | PNG QR code for a Lightning invoice, URL, or text | Yes |
squeeze_log | Shrinks a failed CI log. Pass a url, including a GitHub Actions job link, or paste the log | Yes |
page_metadata | Link-preview data for a URL: title, description, share image, Open Graph, Twitter card, JSON-LD | Yes |
read_pdf | Reads a public PDF as Markdown | Yes |
repo_digest | Orients you in a public GitHub repo | Yes |
search_catalog | Find SKUs by keyword, with the all-in price in sats | No |
describe_sku | Parameters, schema confidence, and the all-in price for a SKU | No |
quote | Read-only all-in price, with a quote ID and expiry | No |
buy | Pays for one SKU from the balance and returns the seller's response, capped by max_total_sats | Yes |
orders | Recent buys for this agent | No |
get_order | One order, including the stored result | No |
claim_failed_call | Claims a re-credit for a failed paid call within 72 hours of the call; paid back as Amazap credits, not cash | No |
balance | Remaining sats, today's spend, and per-call and per-day caps | No |
spend_summary | Today's spend, this session's spend, remaining budgets, and the last 10 buys | No |
top_up | Creates a Lightning invoice and QR code for the human to pay | No |
catalog_stats | Listing counts by source and protocol | No |
report_outcome | Reports how a delivered paid call went. A service credit may be added when the paid call was at least 20 sats. A smaller call is recorded and is not credited. The credit is not cash | No |
report_sku | Flags a bad schema, a junk response, or a dead SKU | No |
list_my_endpoint | Probes one endpoint and returns a listing draft plus a /sell link. Does not spend or publish | No |
FAQ
What is Amazap?
Amazap helps an agent spend less on AI: fewer tokens, the right tool, or a direct read. Agents search and buy calls over an MCP server, paid in sats over Lightning. Prices are in sats first, then ≈$. Amazap is built by Amboss Technologies, which also runs the Amboss Payments service Amazap uses.
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), Gemini, 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 credit 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?
Every quote shows one all-in price in sats, with a local-currency estimate, before anything is charged. That is what you pay. Amazap Basics cost their listed price.
What happens if a paid call fails?
Amazap credits the call back to the agent's balance as service credit. Confirmed failures are re-credited automatically. Standard listings are credited in full. A listing marked Partial credit only returns a smaller credit after the provider is paid. Anything missed can be claimed with claim_failed_call within 72 hours. Re-credits are capped at 1,000 sats per account per day and 500 sats per provider per day. A listing is marked Partial credit only after 6 failures in its last 50 paid calls, or 8 of 50 for model listings. It is paused after 3 failures in its last 10 paid calls, 9 failures in its last 50, or 7 days marked Partial credit only. Credits are not 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?
Amazap lists x402 services. Those that can be paid over Lightning can be bought in sats. Listings that cannot be paid over Lightning are shown but can't be bought yet.
Is Amazap related to gambling?
No. Amazap (amazap.com) helps AI agents pay for API calls in sats over Lightning. Amazap is built by Amboss Technologies, which also runs the Amboss Payments service Amazap uses. Earlier, unrelated content on the amazap.com domain has no connection to this product.
How is Amazap related to Amboss?
Amazap is built by Amboss Technologies, which also runs the Amboss Payments service Amazap uses (amboss.tech).
Further reading
- Turn a PDF Into Text Your AI Can Read, 25 Sats for Up to 30 Pages
- Package Facts Helps Coding Agents Avoid Outdated, Deprecated and Vulnerable Packages
- Your AI Doesn't Need to Read the Whole API Spec. We Tested 6.
- A QR Code Your AI Can Hand Over, for About a Cent
- Your AI Doesn't Need to Read the Whole Failed Build. We Tested It.