Author: Erik Reppel, Nemil Dalal, Dan Kim, Coinbase; Translator: AIMan@Golden Finance
Full text highlights:Coinbase is about to launch x402, a payment protocol that supports instant stablecoin payments directly over HTTP. It allows APIs, applications, and AI agents to trade seamlessly, unlocking a faster and more automated Internet economy.
The Internet economy has always struggled with payments.
Traditional payment methods—credit cards, bank transfers, subscriptions—are built for a world before the Internet era. They are slow, costly, geographically restricted, and full of manual steps. As the scale of digital interactions has expanded, payment methods have fallen behind: fragmented, sluggish, and difficult to program.
We need a more modern approach—one that can support autonomous AI agents, the rise of stablecoins, and universally achieve instant, frictionless payments native to the Internet. Citibank recently called this era the “ChatGPT moment” for payments, and a16z called it the “WhatsApp moment” for stablecoins, reflecting a growing consensus that the world is ready for payment rails that are as seamless and global as the Internet.
At Coinbase, we’ve taken on this challenge by introducing x402: an open standard that leverages the original HTTP “402 Payment Required” status code to embed stablecoin payments directly into web interactions. The protocol was inspired by the crypto micropayments work that Balaji and his team did years ago at http://21.co. At the time, you could only do micropayments over Bitcoin payment channels, which required expensive setup/teardown costs. But with the development of modern L2 layer technologies like Base, on-chain fees have dropped to 1 cent, making many of the applications they prototyped possible.
x402 allows developers and AI agents to pay for APIs, services, and software with stablecoins directly over HTTP. With just a few lines of code, x402 provides built-in authentication, automated settlement, and seamless integration with existing web infrastructure. It makes monetization instant and automated, enabling businesses and agents to exchange value as easily as they exchange data.
Erik Reppel, Head of Engineering, Developer Platform at Coinbase and co-author of the x402 whitepaper, outlined the vision behind the initiative:
We created x402 because the internet has long needed a native way to pay — and stablecoins finally deliver that. Just as HTTPS secured the web, x402 can define the next era of the internet; an era where value flows as freely and instantly as information. We are laying the foundation for an economy run not just by people, but by software — autonomous, intelligent, and always online. ”
x402 is being launched with leading partners including AWS, Anthropic, Circle, and NEAR who share our belief in an open, programmable internet economy.
Gagan Mac, VP of Product Management at Circle, the issuer of USDC, sees x402 as a powerful new standard that can make stablecoin payments a first-class citizen of the web:
USDC is built for fast, borderless, and programmable payments, while the x402 protocol elegantly simplifies the real-time monetization process by eliminating registration, identity verification, and complex signatures. Together, they will unlock exciting new use cases such as micropayments for AI agents and applications.
Illia Polosukhin, co-founder of NEAR and co-author of Attention Is All You Need (the paper that describes the architecture behind GPT), sees x402 as a great fit for building seamless agent-driven experiences:
“Our vision is to combine x402’s frictionless payments with NEAR’s The combination of intents allows users to confidently purchase anything through their AI agents, while agent developers collect revenue through cross-chain settlement, making the complexity of the blockchain invisible. ”
Together with these partners, we are not only launching a new payment standard, we are building the infrastructure for the digital economy that is fast, programmable, truly internet-native, and designed to deliver experiences designed for humans and autonomous machines alike.
Why x402 Matters
Traditional payment methods are not only outdated, they are also a serious impediment to the growth of the internet economy.
Traditional payment systems like credit cards and bank transfers were not built for today’s fast, global, and automated internet. They are slow, costly, and riddled with geographic and authentication barriers. Even crypto solutions often require complex wallets or blockchain-specific tools, which add friction rather than removing it.
x402 solves this problem by reviving the HTTP 402 “Payment Required” status code, an unused feature of the web designed to enable seamless payment requests within standard HTTP interactions. Now, clients (whether human, script, or AI) can
Specifically, x402 enables:
Servers to instantly issue a standardized 402 “Payment Required” response for premium digital resources.
Automatic payment instructions embedded directly in standard HTTP responses.
Seamless integration into existing HTTP infrastructure, with no special wallet interfaces, layers, or separate authentication mechanisms required.
The practical impact is clear: payments become instant, seamless, and embedded directly into the internet—enabling new business models, frictionless global transactions, and fully autonomous software interactions.
How x402 Works
x402 follows a simple process:
A client (AI agent or application) requests access to an x402-enabled HTTP server (e.g. GET /api).
The server responds with 402 Payment Required Status, including payment details (e.g. price, acceptable tokens).
The client sends the signed payment payload with a supported token (e.g. USDC) via standard HTTP headers.
The client retries the request, now including an X-PAYMENT header with the encoded payment payload.
The payment facilitator (e.g. Coinbase x402 facilitator service) verifies and settles the payment on-chain, and fulfills the request.
The server returns the requested data to the client, including an X-PAYMENT-RESPONSE header confirming that the transaction was successful.

Because it extends native HTTP behavior, x402 works with nearly any client (browser, SDK, AI agent, mobile app) without requiring additional requests, changes to the website's client/server flow, or extensive UI integration.
What Developers Can Build
With managed solutions like the Coinbase x402 Facilitator service, developers can easily integrate stablecoin payments directly into their services with just a few lines of code. This eliminates the complexity, overhead, and friction that comes with traditional payment integrations, enabling creators and businesses to unlock entirely new revenue streams and user experiences.
For example:
Paid APIs:Instantly monetize every API call with frictionless micropayments, removing the barriers and complexity of subscription-based models.
Software Unlocked:Provide seamless, on-demand access to premium features and content without subscriptions or complex paywalls.
Metered Services:Dynamically charge users based on actual resource usage, enabling a scalable pay-as-you-go experience without the hassle of upfront payments or billing cycles.
Imagine creators automatically getting paid per minute of pageviews, news sites instantly monetizing individual articles, or AI agents autonomously purchasing cloud resources in real time. By embedding payments directly into HTTP, x402 makes previously difficult microtransactions a breeze—revolutionizing how humans, automated scripts, and autonomous agents interact digitally every day, seamlessly bridging today’s web with tomorrow’s decentralized digital economy.
What AI Agents Can Unlock
Today’s AI agents can think, reason, and act, but their ability to trade still relies on manual, human-driven methods such as credit cards, prepaid API keys, or subscription models. x402 fundamentally changes this, giving AI systems the ability to trade autonomously in real time, unlocking a new wave of intelligent, independent software agents.
With x402, agents gain instant economic autonomy, enabling scenarios such as:
Autonomous Cloud Computing:AI agents can provision compute resources in real time and pay per inference, eliminating human-managed credits or manual provisioning processes.
Market Intelligence:AI systems autonomously access specialized data sources and seamlessly pay per request to gain critical market or product insights without human intervention.
Prediction Markets:Automated Betting Agents can independently purchase real-time sports statistics and market data to make informed bets without human intervention.
Consumer and Supply Chain Automation:AI inventory managers dynamically request and pay for real-time quotes, supply chain data, and logistics, autonomously adapting to market changes on the fly.
AI-Powered Creative Tools:Intelligent content creation systems autonomously access premium media libraries, design tools, and specialized software, instantly paying for resources to independently produce high-quality content.
Rather than static tools that require constant human setup, x402 transforms AI into a truly dynamic agent—one that autonomously discovers, acquires, and exploits new capabilities on demand. When the agent encounters a paywall or premium resource, it simply attaches a signed stablecoin payment to seamlessly resume the interaction and continue on its way to its goal.
This is more than automation—it’s economic autonomy for software. It represents the foundation for a new generation of intelligent agents, able to transact, adapt, and evolve independently.
Who’s Building with x402
Our early partners demonstrate the transformative possibilities that emerge when payments are seamlessly embedded into HTTP, unlocking entirely new business models and enabling truly autonomous software interactions:
Autonomous Infrastructure
Hyperbolic: AI agents autonomously pay for GPU inference, enabling scalable workloads without human management.
OpenMind: Robots autonomously acquire compute and data, turning physical agents into on-chain economic actors.
PLVR: AI agents autonomously purchase event tickets, creating frictionless, instant fan engagement.
Agent Interaction
Anthropic (MCP Protocol): AI models dynamically discover, retrieve, and autonomously pay for context and tools, demonstrating truly independent agent interactions powered by x402.
Apexti Toolbelt: Enables developers and agents to leverage (or dynamically launch) over 1,500 Web3 APIs through an x402-powered MCP server, seamlessly monetizing each API call within a single prompt.
NEAR AI: Simplifies blockchain integration for AI applications, enabling autonomous economic interactions without the complexity.
“Our vision is to combine x402’s frictionless payments with NEAR Intents, allowing users to confidently purchase anything through their AI agents, while agent developers collect revenue through cross-chain settlement, making blockchain complexity invisible.” - Illia Polosukhin, co-founder of NEAR.ai and primary inventor of the Transformer architecture underlying GPT.
Social & Communications
XMTP: Messaging platforms become economic hubs - agents and users seamlessly pay to join private groups, unlock exclusive content, or monetize their expertise directly in chat.
Neynar: AI agents seamlessly query Farcaster’s social graph and profiles, powering innovative social applications and creative content generation.
x402 turns Neynar’s Farcaster API into a pure on-demand utility - agents can extract exactly the data they need, settle in USDC in the same HTTP 402 round trip, and completely skip API keys or prepaid plans. This is a huge breakthrough for real-time, context-rich social applications. - Rish Mukherji, Founder, Neynar
Real-Time Data
Chainlink: Built a demo using the x402 protocol that requires USDC payments to enable users to interact with a contract on Base Sepolia, minting random NFTs using Chainlink VRF.
Boosty Labs: Demonstrated how AI agents can instantly and autonomously purchase real-time insights (via the X API and Grok 3 inference) — no API keys or human intervention required.
Zyte.com: Agents dynamically purchase structured web data such as market insights and product listings via micropayments.
Easy Integration
BuffetPay: Smart x402 payments with built-in guardrails and multi-wallet control, simplifying secure, programmable payments.
Cal.com: Embeds automated scheduling and payment interactions directly into workflows, accessible to both agents and users.
Cred Protocol: Provides a decentralized credit scoring infrastructure that allows AI agents to autonomously assess creditworthiness on-chain in real time.
Fewsats: Built a lightweight agent to quickly adopt and test x402 without modifying existing application infrastructure.
These groundbreaking examples illustrate how x402 is transforming the web into a programmable economic platform, enabling a new generation of intelligent agents and dynamic services to independently transact, adapt, and grow.
x402 is now open for developers, teams, and innovators to explore and integrate into their applications. Visit x402.org for full documentation, working demos, official whitepapers, and GitHub sources.