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:

  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 the client sends a signed payment that a facilitator settles.
  3. 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.

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 FoundationCard credentials issued for the agent, plus agent-verification layers for merchants
Money that movesSats over LightningThe asset named in the server's payment schemeCard payments in ordinary currency
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 a credential issued for the agent; 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 appNone with the API provider. The payer needs a funded account that can complete the payment the server asks forA cardholder, an issuer, and a merchant that accepts cards
Good forSmall per-call payments, with a stateless credentialPer-call payments where a facilitator settles the scheme the server namesBuying goods and services from existing merchants, with card-network protections
Trade-offsThe payer needs Lightning liquidity. A dollar-priced listing's sat amount moves with the exchange rateDepends on the payment scheme and the facilitatorBuilt 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 ≈$.

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 serviceWhat it doesPrice
Page to MarkdownClean 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 MetadataTitle, description, canonical URL, share image, favicon, language, Open Graph, Twitter card, and JSON-LD. Page text and links stay off unless asked7 sats ≈ $0.0043
PDF to MarkdownFetches one public PDF (up to 20 MB, first 30 pages) and returns Markdown with headings and tables33 sats ≈ $0.02 for up to 30 pages, scaled by pages read, minimum 5 sats
Feed ReaderParses an RSS, Atom, or JSON feed, or finds the feed linked from a page7 sats ≈ $0.0043
QR CodeReturns a PNG QR image for text or a Lightning invoice17 sats ≈ $0.01
Log SqueezerShrinks one build, test, or server log. Pass the text or a public URL, including a GitHub Actions job URL14 sats ≈ $0.0086
Repo DigestCompact Markdown digest of one public GitHub repository33 sats ≈ $0.02
Package FactsLatest 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 default17 sats ≈ $0.01 summary, 27 sats ≈ $0.017 full
Lockfile AuditVulnerable, deprecated, unmaintained, and far-behind dependencies from one public lockfile, grouped by severity, with a fixed version when one is published40 sats ≈ $0.025
API Spec DigestCompact endpoint index of one public OpenAPI or Swagger URL33 sats ≈ $0.02
Lightning Liquidity Price IndexCurrent Amboss Magma inbound-liquidity price, available capacity at each APR percent, and fee and lock-time percentiles. Read-only33 sats ≈ $0.02
Lightning Node SnapshotCurrent Amboss Space snapshot for one Lightning node pubkey17 sats ≈ $0.01
Docs DigestCompact 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 ExtractorPlans, price, currency, monthly versus annual, per seat, and limits, each with the exact words from the page17 sats ≈ $0.01
Page Change CheckWhether a public page, or one region of it, changed. A failed check is never unchanged. Buy the diff only when it changed3 sats ≈ $0.0018 plain, 7 sats ≈ $0.0043 rendered
Page Change DiffThe lines that changed since the last check, with a short summary7 sats ≈ $0.0043
WeatherCurrent 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=true9 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

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

ToolWhat it doesSpends sats?
read_webpageReads one public page as MarkdownYes
lightning_nodeCurrent snapshot of one Lightning nodeYes
lightning_liquidityCurrent inbound-liquidity pricesYes
read_feedReads an RSS, Atom, or JSON feed as compact JSONYes
make_qrPNG QR code for a Lightning invoice, URL, or textYes
squeeze_logShrinks a failed CI log. Pass a url, including a GitHub Actions job link, or paste the logYes
page_metadataLink-preview data for a URL: title, description, share image, Open Graph, Twitter card, JSON-LDYes
read_pdfReads a public PDF as MarkdownYes
repo_digestOrients you in a public GitHub repoYes
search_catalogFind SKUs by keyword, with the all-in price 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
ordersRecent buys for this agentNo
get_orderOne order, including the stored resultNo
claim_failed_callClaims a re-credit for a failed paid call within 72 hours of the call; paid back as Amazap credits, not cashNo
balanceRemaining sats, today's spend, and per-call and per-day capsNo
spend_summaryToday's spend, this session's spend, remaining budgets, and the last 10 buysNo
top_upCreates a Lightning invoice and QR code for the human to payNo
catalog_statsListing counts by source and protocolNo
report_outcomeReports 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 cashNo
report_skuFlags a bad schema, a junk response, or a dead SKUNo
list_my_endpointProbes one endpoint and returns a listing draft plus a /sell link. Does not spend or publishNo

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