Skip to content
Back to Blog
AITechnologyEducation

x402 Protocol Explained: How AI Agents Pay With Stablecoins, and What the 2026 Data Really Shows

The x402 protocol lets AI agents pay for APIs in stablecoins over HTTP. How it works, fees, real 2026 usage data, and how it compares to AP2 and Stripe MPP.

n

narrative_chain

x402 Protocol Explained: How AI Agents Pay With Stablecoins, and What the 2026 Data Really Shows

The x402 protocol is an open standard that lets software, including AI agents, pay for a web resource inside the same HTTP request that fetches it. A server answers an unpaid request with the status code 402 Payment Required and a machine-readable price. The client signs a stablecoin payment (usually USDC), retries the request with that signature attached, and a "facilitator" verifies and settles the payment onchain before the server returns the data. No account, no API key, no checkout page.

That is the whole idea in two sentences. The rest of this guide explains how the flow works step by step, what it costs, who governs it now that Coinbase has handed it to the Linux Foundation, how it compares with Google's AP2 and Stripe's Machine Payments Protocol, and, most importantly, how much real usage sits behind the headline numbers. As of October 2026 that last question has a more nuanced answer than most explainers admit.

x402 at a Glance

QuestionShort answer (as of 20 October 2026)
What is it?An open payment standard built on the HTTP 402 status code
Who created it?Coinbase Developer Platform, launched May 2025
Who governs it now?The x402 Foundation, hosted by the Linux Foundation since April 2026
What do agents pay with?Mostly USDC; any ERC-20 on EVM chains or SPL token on Solana is possible
Main networksBase and Solana, plus Polygon, Arbitrum, Monad and World on Coinbase's facilitator
Typical payment sizeOver 87% of Base payments are below $0.10 (Chainalysis, Q3 2026)
Is there an x402 token?No. x402 is a protocol, not a coin
Main alternativesStripe and Tempo's MPP, Google's AP2 (which uses x402 for crypto), Stripe and OpenAI's ACP

What Is the x402 Protocol?

Here's what happened. When the web's founders wrote the HTTP status codes, they left a placeholder for paying. HTTP 402 "Payment Required" has existed for decades, yet the current HTTP specification, RFC 9110, still describes it only as "reserved for future use." Browsers never got a native way to pay, so the web filled the gap with card forms, subscriptions, logins and API keys.

That workaround is fine for a human buying shoes. It breaks for an AI agent that needs to buy one weather lookup, one page of search results and one image render in the middle of a task, from three providers it has never used before. Signing up for three accounts, storing three API keys and paying a card fee larger than the purchase itself makes no economic sense.

Coinbase's developer platform introduced x402 in May 2025 to put that dormant status code to work, as ForkLog's coverage of the protocol's early growth recounts. The design goals listed in the protocol's GitHub repository are telling: it should be an open standard nobody controls, fit into existing HTTP flows, stay agnostic about network, token and currency, and be "trust minimizing," meaning facilitators and servers cannot move a client's funds except as the client intends. Gas, RPC endpoints and other crypto plumbing are meant to be handled by the facilitator rather than the buyer or seller.

The result is a payment method that looks, to a developer, like a slightly unusual HTTP exchange, and that looks, to a blockchain, like an ordinary stablecoin transfer.

How x402 Works: The Payment Flow Step by Step

Coinbase's documentation on how x402 works lays out nine steps. Grouped into the parts that matter:

  1. Request. The client asks a server for a resource, exactly as it would for a free API.
  2. Price quote. The server replies with HTTP 402 and a payment requirement: the amount, the address to pay (payTo), the accepted networks and assets, a payment scheme and a timeout. In the current spec this travels in a PAYMENT-REQUIRED header.
  3. Sign and retry. The client signs a payment authorization with its wallet and resends the original request with a PAYMENT-SIGNATURE header.
  4. Verify. The server forwards the payload to a facilitator, which checks the signature, the amount and the available funds. Verification is free on Coinbase's facilitator.
  5. Do the work. The server performs whatever the client paid for.
  6. Settle. The server asks the facilitator to settle onchain. The facilitator submits the transaction and reports back.
  7. Deliver. The server returns the resource along with a PAYMENT-RESPONSE header that carries the settlement confirmation.

On EVM chains the client typically signs an authorization rather than broadcasting its own transaction. Coinbase's network support page says its facilitator accepts any ERC-20 token through EIP-3009 or Permit2, the two standards that let a third party submit a transfer the token holder has pre-signed. That is why the buyer does not need to hold ETH for gas on Base.

A simplified exchange

The snippet below is an illustration with abbreviated fields, not a copy of the spec. It shows the shape of the conversation:

GET /v1/forecast?city=copenhagen HTTP/1.1
Host: api.example-weather.com

HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64: scheme=exact, network=eip155:8453,
                   asset=USDC, amount=0.005, payTo=0xSeller..., timeout=60s>

GET /v1/forecast?city=copenhagen HTTP/1.1
Host: api.example-weather.com
PAYMENT-SIGNATURE: <base64: signed transfer authorization>

HTTP/1.1 200 OK
PAYMENT-RESPONSE: <base64: settlement result, transaction hash>
{"city":"Copenhagen","temp_c":11}

Notice the network identifier eip155:8453. Since version 2 of the protocol, released on 11 December 2025, networks and assets are named with standard chain identifiers (CAIP-2 style), which is what allows one payment format to cover Base, Solana and, in principle, card and bank rails. Crypto.news reported that V2 also added wallet-based sessions for repeat access, a discovery extension that lets services publish their prices for facilitators to index, and modular SDKs.

The three payment schemes

A "scheme" is the rule for how money moves. Coinbase's facilitator currently supports three, per its network support page and the protocol repository:

SchemeHow it worksGood fitOnchain transactions
exactPay a fixed amount per requestA $0.01 article, a $0.005 API callOne per payment
uptoAuthorize a maximum; the seller settles actual usage up to that capLLM inference or compute priced by tokens or secondsOne per payment on EVM; escrow deposit plus one settlement on Solana
batch-settlementBuyer funds an escrow; each call is an offchain voucher; the seller claims many vouchers at onceHigh-frequency micropaymentsDeposits, refunds, withdrawals and claims only (EVM)

The scheme choice matters more than it looks, because it decides how many onchain transactions a seller pays for. We will put numbers on that in the worked examples.

What a facilitator does, and what it costs

The facilitator is the piece most explainers gloss over. It is a service that verifies payment payloads and submits settlement transactions so that neither the API seller nor the agent has to run blockchain infrastructure. Anyone can operate one, and several companies do. Coinbase's CDP facilitator is the reference implementation.

Its published pricing, per the CDP network support page as accessed on 20 October 2026:

  • The first 1,000 onchain transactions per month are free.
  • Each onchain transaction above that costs $0.001.
  • Payment verification is always free; fees track onchain activity, not request count.

Supported networks on that facilitator are Base, Polygon, Arbitrum, Monad, World and Solana (plus testnets). The batch-settlement scheme is listed for the EVM networks, not Solana.

A Short History: From Memecoin Spike to Linux Foundation Standard

The story goes like this. x402 spent its first months as a developer curiosity. Then, in October 2025, it went viral for reasons that had little to do with agents.

DateEventSource
May 2025Coinbase introduces x402ForkLog
16 Sep 2025Google announces AP2 with 60+ partners and an A2A x402 extension built with Coinbase, the Ethereum Foundation and MetaMaskGoogle Cloud
23 Sep 2025Cloudflare announces plans to create the x402 Foundation with CoinbaseCloudflare
29 Sep 2025Stripe and OpenAI release the Agentic Commerce Protocol for ChatGPT checkoutStripe
20 to 26 Oct 2025Record week: 932,440 transactions worth $913,888 from 61,290 buyers and 372 sellers (Dune data)ForkLog
11 Dec 2025x402 V2 ships with sessions, discovery and standard network IDsCrypto.news
18 Mar 2026Stripe and Tempo publish the Machine Payments ProtocolStripe
2 Apr 2026x402 Foundation launches under the Linux FoundationCoinbase docs
14 Jul 2026Foundation declared fully operational with 40 membersLinux Foundation
14 Oct 2026Chainalysis counts more than 138 million x402 payments on BaseFortune

The October 2025 spike was driven largely by memecoins that charged small USDC payments over x402 to mint. ForkLog, citing KuCoin Ventures, noted developers were using the protocol to launch meme coins, while CoinGecko's x402 ecosystem category jumped 345% in a day to a $770 million market capitalization. Chainalysis later noted that memecoin activity drove some of that early volume before declining, according to Blockhead's summary of the report.

The governance milestone is the part with staying power. The Linux Foundation's July 2026 release names 17 premier members: Adyen, AWS, American Express, Circle, Cloudflare, Coinbase, Fiserv, Google, Mastercard, Monad Foundation, MoonPay, Ripple, Shopify, Solana Foundation, Stellar Development Foundation, Stripe and Visa. When card networks, cloud providers and rival blockchain foundations sit on the same standards body, x402 stops being "a Coinbase thing." For the wider context on dollar tokens as a payment rail, see our piece on the stablecoin payments revolution.

How Much Is x402 Actually Used?

This is where a careful reader should slow down. Every x402 figure you read depends on what is being counted, which chain, and whether anyone filtered out fake activity.

The headline numbers

  • Coinbase's x402 documentation states that more than 100 million x402 payments have been processed.
  • Chainalysis, in the North America chapter of its 2026 Geography of Cryptocurrency report, counts more than 138 million cumulative x402 payments on Base by Q3 2026, up from about 1,500 in mid-2025, as Fortune reported on 14 October 2026. Chainalysis did not disclose the total dollar value.
  • Across all chains, trackers disagree: estimates of cumulative transactions run from 120 million to 187 million, according to Crypto Briefing on 15 September 2026.

The filtered numbers

Transaction counts are cheap to inflate when a payment costs a fraction of a cent. Two independent attempts to strip out the noise:

  • Artemis's "Real vs Gamed" filter. Artemis analyst Lucas (@OnchainLu) built a classifier for wash trading. From 9 November 2025 to 7 February 2026, gamed transactions averaged 63.94% of all x402 transactions and peaked at 90.21% on a single day, per Four Pillars research published 10 February 2026. The same piece found 30 wallets, created on one day, producing about 1.93 million transactions on Polygon in two weeks, 99.99% of them sending exactly 0.01 USDC to one address. Activity stopped in sync on 1 February. Whether that was an agent farm or a fixed data-scraping workload, the author concluded, onchain data alone cannot say.
  • The Bloomberg dispute. Bloomberg reported $24 million in agent payments between 5 February and 7 March 2026, based on x402.org statistics. Noah Levine of a16z countered with Allium Labs' estimate of about $3 million for the same window, and Artemis's self-transfer filter brought it to $1.6 million, as ForkLog reported on 12 March 2026. That is a fifteenfold gap between the headline and the filtered figure.

What the better-quality data says

The interesting signal is not size but shape. Chainalysis found, per Fortune and Blockhead:

  • Over 87% of x402 payments on Base fell between $0.0001 and $0.10, with one to ten cents the most common size.
  • The median time from a wallet's first deposit to its first payment fell from 73 days in late 2025 to 18 minutes in Q3 2026.
  • The share of wallets spending within an hour of being funded rose from 4% to 67%.
  • About 90% of qualifying active wallets received another deposit within 30 days, up from roughly 71% a year earlier.

That pattern (tiny payments, funded and spent within minutes, then topped up) is what you would expect from automated software buying services, not from humans speculating. It does not prove every payment is a genuine purchase, and Chainalysis's count covers Base only. But it is a different picture from the October 2025 memecoin frenzy.

The chain mix is shifting too. Crypto Briefing reported that Solana handled about 70% of monthly x402 volume in the 30 days to mid-August 2026, roughly $24.24 million, and that on 25 August 2026 Solana passed Base in daily x402 transaction count for the first time in six months. Treat that dollar figure as a raw tracker number: set against the filtered estimates above, it shows how far apart raw and adjusted measurements can be.

What agents actually buy

According to the Chainalysis findings summarized by Blockhead, the largest categories are:

  • AI model inference, where US-linked wallets made 88.1% of geolocated payments.
  • Information services: code review, financial intelligence, data and search APIs.
  • Agent frameworks and tooling.
  • Security and code analysis, concentrated in one smart contract auditing service, where Chinese-linked wallets made about 90% of payments.

Levine's examples in the Bloomberg debate point the same way: scraping at about $0.01 per operation (Firecrawl), pay-per-session headless browsers (Browserbase) and image generation (Freepik). Developer tools, not consumer shopping, are where agent money goes today. Our explainer on crypto AI agents covers the trading and DeFi side of the same trend.

x402 vs AP2 vs ACP vs MPP

Four acronyms dominate "agentic payments," and they are not all competitors. Some sit at different layers.

x402Google AP2Stripe and OpenAI ACPStripe and Tempo MPP
LaunchedMay 202516 Sep 202529 Sep 202518 Mar 2026
Core jobSettle a payment inside an HTTP requestProve a user authorized an agent's purchase (signed "mandates")Let an agent check out from a merchant's catalogueLet agents pay services over HTTP or MCP, one-off or recurring
Payment railsStablecoins onchain (spec allows others)Cards, stablecoins, bank transfers; crypto via the A2A x402 extensionStripe Shared Payment Tokens (cards, wallets)Stablecoins on Tempo, plus cards and BNPL via Shared Payment Tokens
Accounts neededNone, a wallet is enoughDepends on the railMerchant and buyer payment methodStripe for fiat; wallet for stablecoins
Governancex402 Foundation (Linux Foundation)Google-led open protocolOpen standard, Stripe and OpenAICo-authored by Stripe and Tempo
Best forSub-cent to few-dollar machine purchasesHuman-delegated shopping with an audit trailBuying physical goods inside a chatbotBusinesses already on Stripe

AP2 is a trust layer, x402 is a settlement layer. Google's AP2 announcement describes Intent Mandates (a user's instructions and limits) and Cart Mandates (the exact items and price approved), signed as verifiable credentials. For stablecoin payments, Google released the A2A x402 extension alongside it. In that design, AP2 answers "did the human approve this?" and x402 moves the money.

ACP is checkout, not micropayments. Stripe's ACP announcement launched with US Etsy sellers inside ChatGPT, with each Shared Payment Token tied to one merchant and one basket total. It solves "buy this lamp," not "pay a tenth of a cent for this API call."

MPP is the closest rival. Stripe's MPP post describes an agent requesting a resource, receiving a payment request, authorizing it and getting the resource, which is the same loop as x402. The differences are multi-rail support (stablecoins on Tempo plus cards and buy-now-pay-later), and settlement straight into a Stripe balance. Early users include Browserbase, Parallel Web Systems, PostalForm and a New York sandwich shop. Notably, Stripe lists support for both MPP and x402 in the same post, and Stripe is a premier x402 Foundation member. The likely outcome is coexistence, with sellers accepting both.

Worked Examples

Picture this scenario. Three different parties meet x402 in the same week: an agent, a small API seller and a news publisher.

Example 1: an agent buying a forecast mid-task

A travel-planning agent needs a seven-day weather forecast. It calls a forecast API it has never used.

  1. The API replies 402: price $0.005 in USDC, network Base (eip155:8453), scheme exact, 60-second timeout.
  2. The agent's policy says: pay up to $0.02 per call, $2 per day in total, only on Base or Solana. $0.005 passes.
  3. It signs a transfer authorization from its wallet and retries with PAYMENT-SIGNATURE.
  4. The facilitator verifies, the API computes the forecast, the facilitator settles, and the response arrives with PAYMENT-RESPONSE and a transaction hash.

The agent never created an account. The seller never issued a key. The whole exchange is two HTTP round trips plus settlement. If the agent were instead calling an LLM priced per token, the upto scheme would fit better: authorize up to, say, $0.05 and let the seller settle the actual usage.

The one thing the agent does need is a wallet whose keys it can use safely, which is why smart accounts with spending limits matter here. Our guide to account abstraction and smart wallets explains how session keys and limits work.

Example 2: the facilitator bill for a small API seller

A solo developer sells a data API through Coinbase's facilitator. Using the published CDP pricing (1,000 free onchain transactions per month, then $0.001 each):

Monthly scenarioRevenueOnchain txsFacilitator feeFee as % of revenue
10,000 calls at $0.01, exact$100.0010,0009,000 x $0.001 = $9.009.0%
10,000 calls at $0.10, exact$1,000.0010,000$9.000.9%
10,000 calls at $0.01, batch-settlement, settled in a few dozen claims$100.00Dozens$0.00 (inside free tier)0%

Two lessons fall out. First, at one cent per call, a $0.001 per-transaction fee is a 10% headwind once you pass the free tier, so price points and scheme choice matter. Second, batch settlement exists precisely for this: vouchers are verified offchain for free, and only deposits, refunds, withdrawals and claims touch the chain.

Compare that with cards. Stripe's published standard rate for European cards on its Danish pricing page is 1.5% plus a fixed 1.80 kr per charge (accessed October 2026). The fixed part alone is more than ten times a one-cent sale. That is the economic gap x402 targets.

Example 3: a publisher charging AI crawlers

A news site sits behind Amazon CloudFront and wants AI crawlers to pay per article instead of scraping for free. AWS WAF now has a built-in "Monetize" action that uses x402. According to AWS's documentation:

  • When a Monetize rule matches an unpaid request, WAF returns a 402 with a per-request price in USDC, accepted networks (Base and Solana), the publisher's wallet address, a timeout and a scheme.
  • The crawler retries with a payment-signature header. WAF verifies it in the request path.
  • Settlement runs through Coinbase Developer Platform's x402 facilitator, and only after the origin returns a successful (2xx) response. If the origin fails with a 4xx or 5xx, the client is not charged.
  • An idempotency extension lets clients retry for up to 15 minutes without paying twice, and payment authorizations are single-use.

For the publisher, that is a pricing knob on content that previously earned nothing from bots. For the crawler, it is a predictable, per-page cost with no contracts.

Is There an x402 Token?

No. x402 is a protocol, like HTTP itself. Payments are made in existing stablecoins, mostly USDC. The "x402 tokens" that pumped in October 2025 were memecoins and ecosystem projects that used x402 for minting or marketing, and CoinGecko grouped them into a category. Owning one gives you no claim on x402 usage, fees or governance. If you trade them anyway, read our memecoin risk guide first, and be aware that much of the early activity was later flagged as gamed.

If you want exposure to the agent payments theme, the honest list of beneficiaries is diffuse: stablecoin issuers, the chains that carry the transactions, and the companies running facilitators and agent tooling. None of them is a pure play, and none of this is a recommendation to buy anything.

Risks and Open Questions

Measurement risk. As shown above, raw and filtered volume can differ by an order of magnitude. Any pitch deck quoting a single x402 number without saying which tracker and which filter should be read with suspicion.

Facilitator dependence. The protocol is open and anyone can run a facilitator, but every payment depends on one, and major platform integrations such as AWS WAF settle through Coinbase's. Facilitators cannot steal funds under the protocol's trust-minimizing design, but they can refuse service, go offline or apply compliance screening.

Agent key security. An agent that can pay is an agent whose keys can be stolen or whose instructions can be hijacked by a prompt injection. Spending caps, allowlisted networks and smart-account limits are the practical defenses. The protocol itself does not stop an agent from paying a malicious server it was tricked into calling.

Privacy. Every settled payment is an onchain stablecoin transfer. Anyone who links a wallet to an agent or a company can read its purchase history, including which APIs it calls and how often.

Stablecoin and regulatory dependence. x402 inherits the risks of the stablecoin it settles in: issuer reserves, freezes and the rules that govern them. Our stablecoin guide covers how issuers back and redeem their tokens.

Standards competition. MPP, AP2 and ACP each solve adjacent problems. The best case for x402 is that it becomes the default stablecoin rail beneath several of them. The worst case is fragmentation, with sellers forced to support several protocols at once.

What to Watch Next

  • Filtered volume, not headline counts. Watch whether adjusted dollar volume from Artemis, Allium or Chainalysis keeps rising after incentives fade.
  • Base vs Solana share. The August 2026 crossover in daily transaction count is worth tracking as more facilitators add Solana's upto support.
  • Batch settlement adoption. If sub-cent payments are going to be profitable for sellers, more of them will need to move off one-transaction-per-payment schemes.
  • Card-network participation. Visa, Mastercard and American Express are premier x402 Foundation members. Whether the spec gains real card-rail support will decide if x402 stays a crypto niche or becomes a general web payment standard.

Frequently Asked Questions

What is the x402 protocol in simple terms?

x402 is an open standard that lets a website or API charge for a request using the HTTP 402 "Payment Required" status code. The server quotes a price, the client pays in a stablecoin such as USDC by attaching a signed authorization to its retry, and the server returns the content once a facilitator confirms settlement. It was built for AI agents but works for any software client.

Who controls x402?

Coinbase created it in 2025 and contributed it to the x402 Foundation, which launched under the Linux Foundation on 2 April 2026 and became fully operational on 14 July 2026 with 40 members. Premier members include Coinbase, Cloudflare, Google, AWS, Stripe, Visa, Mastercard, Circle and the Solana Foundation.

Does x402 charge fees?

The protocol itself has no fee. Facilitators may charge for settlement. Coinbase's facilitator gives 1,000 free onchain transactions per month and then charges $0.001 per onchain transaction, with verification always free (as of 20 October 2026). Network gas is handled by the facilitator under the protocol's design.

Which blockchains does x402 support?

The spec is chain-agnostic. Coinbase's facilitator currently supports Base, Polygon, Arbitrum, Monad, World and Solana. Base has the most cumulative payments, while Solana led monthly volume in mid-2026, according to tracker data reported by Crypto Briefing.

Is x402 the same as Stripe's MPP or Google's AP2?

No. AP2 is an authorization framework that proves a user approved an agent's purchase, and it uses x402 for stablecoin settlement through its A2A x402 extension. MPP, from Stripe and Tempo, is a close alternative to x402 that adds card and buy-now-pay-later rails. Stripe supports both MPP and x402.

How much real money flows through x402?

Less than headline figures suggest. Chainalysis counted more than 138 million payments on Base by Q3 2026, mostly under ten cents, but did not publish dollar value. Filtered estimates for one month in early 2026 ranged from $1.6 million (Artemis) to about $3 million (Allium), against a $24 million headline. Usage patterns, though, increasingly look like real automated purchasing.

Tags

#x402 #ai-agents #agent-payments #stablecoins #usdc #base #solana #agentic-commerce

Share this article

Ready to start trading?

Compare top cryptocurrency exchanges and find the best platform for you.

Compare Exchanges