API Micropayments: Per-Call Stablecoin Payments for AI Agent Workflows
API micropayments are sub-dollar payments settled per individual API call, typically ranging from fractions of a cent to under a dollar. They replace subscriptions and monthly tiers with exact, usage-based billing. For developers building AI agents, api micropayments mean an agent can call any paid endpoint and pay only for what it consumes, using a single USDC balance.
What counts as an API micropayment
An API micropayment is any per-call payment small enough that traditional card-processing fees would consume most or all of the transaction value. In practice, this means charges below roughly $0.50 per call. The term covers inference endpoints priced at a few cents, data-enrichment lookups at a tenth of a cent, and web-scraping calls somewhere in between.
What distinguishes micropayments from regular API billing is settlement method. Rather than accumulating usage against a monthly invoice or a prepaid credit pool, each call settles individually on a low-cost chain. The payment is atomic: the call either pays and succeeds, or it does not execute at all.
Why credit card rails break below a dollar
Most card processors charge a fixed fee of around $0.30 per transaction plus a percentage, typically 2.9%. A $0.03 API call would generate $0.30 in processing overhead, making the fee roughly ten times the value of the call itself. This arithmetic is why nearly every API provider today bundles usage into subscription tiers, even when per-call pricing would be more natural for both buyer and seller.
Aggregating small charges into a single monthly invoice partially solves the fee problem, but introduces its own friction: credit checks, billing disputes, dunning cycles, and the need for each developer to maintain an account with each provider. For autonomous AI agents that may call dozens of different APIs in a single task, per-vendor accounts are a non-starter.
Stablecoin settlement on Layer 2 chains sidesteps both problems. On chains like Base, a USDC transfer costs well under $0.001 in gas, making true per-call settlement economically viable even for sub-cent charges.
How stablecoins and x402 make API micropayments practical
The technical foundation for API micropayments in 2026 is the x402 protocol, which repurposes HTTP status code 402 Payment Required as a machine-readable payment handshake. When an AI agent requests a paid endpoint, the server responds with a 402 status and a JSON body containing the price, accepted currency (USDC), and the destination address. The agent's wallet signs a stablecoin transfer and retries the request with an X-Payment header. The server verifies the payment and returns the data. You can read the full protocol flow on our x402 explainer at /learn/what-is-x402.
This happens within a single HTTP round-trip from the agent's perspective. There is no checkout page, no OAuth redirect, and no API key exchange. The payment itself is the authentication. Because x402 is built on standard HTTP, any language or framework that can make an HTTP request can participate.
Settlement finality depends on the chain. Base and Solana both offer sub-second confirmation in most conditions, and Tempo provides similar speed. All three chains are supported by the current AgentCash index.
Use cases driving API micropayment adoption
Inference endpoints are the largest category today. LLM providers, image-generation services, and embedding APIs all have variable per-call costs that map naturally to micropayments. An agent orchestrating a multi-step research task might call three different inference providers in sequence, each at a different price point, without needing accounts with any of them.
Data-enrichment APIs, such as company lookup, geolocation, or contact verification, are a second natural fit. These endpoints are often priced at a few cents per query and are called in high volume by agents doing lead research or content assembly. Per-call settlement means the agent pays exactly for the records it retrieves.
Web scraping and content extraction also benefit. A coding agent that needs to fetch and parse a webpage through a rendering proxy can pay per page load rather than committing to a monthly scraping plan. For agents with unpredictable or bursty workloads, this model eliminates wasted capacity. More detail on the broader shift to usage-based API billing is available in our pay-per-call API guide at /learn/pay-per-call-apis.
Historical attempts and what changed by 2026
HTTP 402 was reserved in the original HTTP/1.1 spec in 1997 for future use in digital payments, but no standard emerged. Early micropayment proposals in the late 1990s and 2000s, including Millicent, PayWord, and W3C Micropayment Markup, failed because they required proprietary wallets, lacked a stable unit of account, and had no low-cost settlement layer.
The cryptocurrency era introduced cheap transfers, but volatility made pricing impractical: a $0.05 call paid in ETH could be worth $0.03 or $0.08 by the time it settled. Stablecoins fixed the unit-of-account problem. Layer 2 rollups and fast-finality chains fixed the cost and speed problems. The x402 protocol combined these pieces into a standard that works inside ordinary HTTP, requiring no new transport protocol or browser plugin.
What finally tipped adoption was autonomous AI agents. Human developers can tolerate signing up for a dashboard and entering a credit card. Agents cannot. They need programmatic, per-call payment that works without human intervention, and that is exactly what stablecoin micropayments over x402 provide.
How AgentCash aggregates micropayment-enabled APIs
AgentCash acts as a wallet and routing layer purpose-built for AI agents making API micropayments. Developers run npx agentcash to create a wallet, fund it with USDC on Base, Solana, or Tempo, and start calling any x402-protected endpoint. One balance covers every provider in the index, with no per-vendor signup or API key management.
AgentCash currently indexes 1 payment-protected origin spanning 1 API category, with 30 priced endpoints available. The median observed price per paid call is $0.028, and the range stretches from $0.002 to $0.440 as of 2026-04-07. These numbers reflect the early but growing ecosystem of x402-enabled providers.
For developers working inside coding agents like Claude or Cursor, AgentCash also provides an MCP server that integrates directly into the agent's tool-use loop. The agent discovers available paid APIs, checks the price, and pays in USDC, all within the normal tool-calling flow. No context switch is required.
Frequently asked questions
What is the smallest API micropayment that can settle on-chain?
There is no protocol-level minimum in x402. The practical floor is set by gas costs on the settlement chain. On Base, gas for a USDC transfer is typically under $0.001, so calls priced at $0.002 and above are already economically viable. The lowest price AgentCash has observed in its index is $0.002 per call.
Do API micropayments require a separate wallet for each provider?
No. AgentCash routes a single USDC balance to any x402-protected API. You fund one wallet and it handles payment to each provider at the moment of the call. There are no per-vendor accounts or API keys to manage.
How does an autonomous AI agent authorize a micropayment without human approval?
The developer sets spending caps when configuring the AgentCash wallet. When the agent encounters an x402 endpoint, the wallet checks the requested amount against those caps, signs the USDC transfer if it is within bounds, and attaches it to the retry request. No per-call human approval is needed.
Which blockchains does AgentCash support for micropayment settlement?
AgentCash settles on Base, Solana, and Tempo. All three use USDC as the settlement currency. The choice of chain is determined by what the API provider specifies in its 402 response.
How does x402 differ from older micropayment protocols like PayWord or Millicent?
x402 operates over standard HTTP using status code 402, requires no proprietary wallet or browser plugin, and settles in USDC stablecoins on Layer 2 chains. Older protocols relied on custom client software, lacked a stable unit of account, and had no widely deployed low-cost settlement network. More details are at /learn/what-is-x402.
Can I use API micropayments with a framework like LangChain or CrewAI?
Yes, as long as the framework can make HTTP requests or use MCP tool servers. AgentCash exposes an MCP server that any compatible coding agent or orchestration framework can call, handling wallet signing and x402 negotiation automatically.
What happens if a micropayment fails or the API returns an error after payment?
In x402, the server verifies the signed payment before returning data. If the server cannot fulfill the request, it does not settle the payment on-chain. The payment and data delivery are coupled within the same HTTP exchange, reducing the risk of paying for a failed call.
Is there a minimum USDC balance required to start using AgentCash?
There is no minimum enforced by AgentCash itself. You need enough USDC to cover the cost of the calls your agent will make plus gas fees on the chosen chain. For most use cases, a few dollars of USDC is sufficient to get started with npx agentcash.
Related
Pay per call API pricing lets AI agents pay only for the requests they make. Learn how per-call billing compares to subscriptions and how to get started.
x402 revives HTTP 402 Payment Required as a real stablecoin payment protocol. Learn the handshake, MCP integration, and how AI agents use it.
Get started with AgentCash
One balance, USDC on Base · Solana · Tempo. Call any payment-protected API from your agent — no API keys.
This page is compiled from live OpenAPI specs published by each API provider. Content last reviewed Apr 7, 2026 by the AgentCash team. How we build these pages.