AI agents are paying each other now…

AI agents are paying each other now…

November 26, 2025 4 min
📺 Watch Now

🤖 AI Summary

Overview

This episode explores the revolutionary potential of Coinbase's X42 protocol, which leverages the long-dormant HTTP 402 status code to enable frictionless, fee-free micropayments. The discussion delves into its implications for online payments, API monetization, and the emerging AI-driven economy.

Notable Quotes

- Imagine an entire AI economy where AI agents are paying other AI agents to do whatever AI agents do. What could possibly go wrong?

- With X42, you can turn every API request into a tiny cash register with zero fees.

- I'm not sure I'm ready to let AI make live payments for me, but at least when it drains my bank account, it'll do it efficiently.

💳 The Rise of HTTP 402 and X42

- HTTP 402, Payment Required, was reserved in 1997 but remained unused until now. X42 activates this status code to enable seamless micropayments.

- Unlike platforms like Stripe, which charge a 30-cent fee per transaction, X42 eliminates fees, making it viable for low-cost API requests.

- The protocol simplifies payment workflows, removing the need for subscriptions or credit-based systems.

🤖 AI-Driven Machine-to-Machine Payments

- X42 opens the door for machine-to-machine payments, where AI agents can autonomously pay for resources or services.

- This could lead to an AI economy where agents transact programmatically, raising questions about control and potential risks.

- Developers can use the X42 fetch library to automate payments, enabling AI to access paid APIs on behalf of users.

🛠️ Simplified API Monetization with X42

- Implementing X42 in a Node.js app requires just one line of middleware code.

- Developers can configure payment routes, set prices, and define transaction parameters with minimal effort.

- End users can complete transactions using wallet extensions like MetaMask or Coinbase Wallet, or programmatically via code.

🚀 Deployment and Practical Use Cases

- The episode demonstrates deploying a monetized API using X42, Docker, and a Hostinger VPS.

- X42 supports payments in stablecoins like USDC and can handle amounts as small as fractions of a cent.

- Practical applications include monetizing APIs, enabling pay-per-use models, and facilitating AI-driven transactions.

AI-generated content may not be accurate or complete and should not be relied upon as a sole source of truth.

📋 Video Description

Get up to 67% off Docker VPS to self-host your own app. Use code FIRESHIP for an extra discount - https://hostinger.com/fireshipdocker

Earlier this year, Coinbase changed online payments forever with a new protocol called x402. But could this technology really usher in a new age of 'machine to machine' payments? Let's run it...

#ai #programming #coding

💬 Chat with Me on Discord
- https://discord.gg/fireship

🔗 Resources
- https://www.x402.org/
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/402

🔥 Get More Content - Upgrade to PRO

Upgrade at https://fireship.io/pro
Use code YT25 for 25% off PRO access

🎨 My Editor Settings

- Atom One Dark
- vscode-icons
- Fira Code Font

🔖 Topics Covered
- HTTP 402 Status Code
- x402
- x402 vs Stripe
- Machine to machine payments
- x402 demo