Learn / Agentic commerce

Concepts and guides for the agent economy

Long-form writing on the x402 protocol, machine-payable APIs, and what changes when your customers are autonomous AI agents instead of humans holding credit cards.

The x402 protocol, explained

8 min

x402 turns HTTP 402 Payment Required into a working settlement layer for autonomous agents. Here is the handshake, the EIP-3009 USDC authorization, and why it is the wire format for agentic commerce.

How to build an agent-payable API

12 min

A step-by-step guide to wrapping any HTTP endpoint with x402: pricing, the 402 response, verification, settlement, free tiers, and listing it in an agent API marketplace so autonomous agents can discover and pay for it.

Machine-payable APIs vs. traditional API billing

9 min

API keys, monthly invoices, and Stripe Checkout were designed for humans. Here is a head-to-head comparison with per-call x402 settlement, and when each model still wins.

How AI agents discover machine-payable APIs

10 min

Autonomous agents do not browse marketing sites. Here is the discovery stack — llms.txt, /.well-known/x402, OpenAPI, MCP, and Markdown twins — that lets an agent find, price-check, and call a machine-payable API without a human in the loop.

How AI agents budget x402 API calls

5 min

A practical agent-first guide to enforcing spend policy before signing an x402 payment: validating 402 accepts[], comparing network, asset, payee, and amount against an allowlist, and recording debits only from successful payment receipts.

Connect MCP to an x402 API marketplace

5 min

How an AI agent uses the Model Context Protocol to discover machine-payable APIs, read live x402 payment requirements, and call endpoints that settle in USDC on Base — without accounts or API keys.

Smoke-test x402 payments on Base Sepolia before mainnet

5 min

Prove your agent can complete the x402 handshake with testnet USDC and mock responses before spending real Base mainnet USDC. Query param, assets, facilitator, and a checklist for promoting to production.

How the x402 free tier and agent identity work

5 min

Marketplace for AI Agents gives every agent identity 3 free calls across all endpoints before x402 payment kicks in. Here is how identity is scoped, how to read X-Free-Calls-Remaining, and how to graduate to paid USDC calls without surprise 402s.

YouTube transcript API for AI agents (JSON captions, no API key)

5 min

When a user asks an agent for YouTube captions or a video transcript, call a machine-payable transcript endpoint that returns JSON segments — no YouTube Data API key, no Google Cloud project, settlement via x402 USDC on Base after three free evaluation calls.