x402 from zero

Lesson 1 is saved.

The status code that waited

Charged$0.00

Make a free account to keep going. Next is Why an agent pays when free exists, about 7 minutes.

Tick any you’d like. All start off.

No password and no card. We use your email to sign you in and for the choices you tick. Your lesson 1 progress moves to your account.

Not now

Why an agent pays when free exists

7 minutes. Checked 14 October.

In this lesson

  • An agent pays when paying beats free: fresher data, cleaner data, the right to use it, or time saved.
  • If nothing beats the free version, a well-built agent uses the free one.
  • A site can stay free for people and charge only the bots that say who they are.
Go through it step by step

Why an agent pays when free exists

One of the best comments under the video asked why an AI would ever pay when millions of free sources exist. It’s the right question, and the answer decides whether anything you sell through x402 gets bought.

A commenter who said they were a software engineer and a farmer gave the most-liked idea under the video: log clean rainfall data, geocoded and timestamped, and let weather agents pay to read it.

Why an agent pays when free exists

The obvious reply came from elsewhere in the thread: “Why would an AI use a site that needs payment over the millions of free sources it could use?” Weather services publish rainfall for free.

An agent is trying to get a good answer at the lowest total cost, and the price of the data is only part of that cost. Sometimes the paid source is the cheaper one overall.

What an answer really costs

What each answer really costs
Free, old: A free weather page$0.001, fresh: The farmer’s gauge
Price$0.000$0.001
Clean-upmodel timenone
Allowednot alwaysyes
How freshan hour old10 minutes
Real costmore than $0$0.001

Free, old

A free weather page

Price$0.000
Clean-upmodel time
Allowed to usenot always
How freshan hour old
Real costmore than $0

$0.001, fresh

The farmer’s gauge

Price$0.001
Clean-upnone
Allowed to useyes
How fresh10 minutes
Real cost$0.001
The same question asked two ways. The price is only part of what an answer costs.

Four things worth paying for

Freshness. A free source might publish rainfall once an hour for a station 20 miles away. The farmer’s gauge sits in the field and reports every ten minutes. For an agent deciding whether to switch off irrigation this afternoon, the closer, newer reading is the one that matters.

Four things worth paying for

Structure. A free page shows rainfall in a chart meant for people. To use it, the agent has to load the page, find the numbers and check the units, and every one of those steps spends its owner’s money on model time. The farmer’s endpoint returns one clean line of data with the place, the time and the millimetres. Another commenter put it well: find messy data you can structure, so that it’s cheaper for an agent to pay you than to clean it up itself.

Four things worth paying for

Rights. Free isn’t always open to agents. When Cloudflare began asking every new domain whether to allow AI crawlers in July 2025, it said more than a million customers had already chosen to block them. By September 2026 it reported that 17% of sites on its network block crawlers that collect AI training data. Paying is how an agent gets in where scraping is blocked, and how it knows it’s allowed to use what it gets.

A free source and a paid x402 source offer the same data, equally fresh and clean, and the free one allows agents. What should a well-built agent do?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

Paying only makes sense when it buys something: fresher data, better structure, permission or time saved. With none of those, the free source wins.

Four things worth paying for

Time saved. One paid call can replace a dozen free ones. Ceramic.ai, one of the Monetization Gateway’s first sellers, charges agents per web search with no API key. In the beta post, Stocktwits, which sells stock signals, described the change this way: “Instead of a customer signing up for a subscription or negotiating an enterprise license, an agent can ask for exactly what it needs, when it needs it.”

Four things worth paying for

Example. There’s a real case of paying for structure in the Bazaar. One weather service charges $0.002 a call for forecasts that it says come from the US National Weather Service, whose API is free to use for any purpose. What the agent buys is the packaging: a US street address in, a clean seven-day forecast and any active alerts out, in one call.

Four things worth paying for

If none of the four applies, a well-built agent should use the free source, and most of the web will stay free. A seller gets paid when what it offers beats the free version on at least one of them.

Can people read free while agents pay?

A commenter asked whether a hobby guide could stay free for human readers while AI pays a tiny fee. Yes, and Cloudflare has built exactly that switch.

When a seller sets up a payment rule in Cloudflare’s Monetization Gateway, it picks an audience. Everyone charges all matching traffic. Verified Bots charges only the bots Cloudflare can identify, so people reading in a browser pass through free.

Can people read free while agents pay?

That only works for bots that say who they are. Cloudflare’s pay per crawl asks crawlers to sign every request with a key, so nobody can pretend to be a paying crawler. A scraper that disguises itself as a person is a separate problem, which sites handle with bot blocking.

What Cloudflare runs today

Product What it does Uses x402? Status
Pay per crawl Answers AI crawlers with 402 and a price. The publisher can allow, charge or block each crawler, and Cloudflare bills them No, its own headers In closed beta (14 Oct) source since July 2025
On Cloudflare’s Monetization Gateway, which audiences can a seller choose to charge?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

The setup asks for an audience: Everyone, or Verified Bots. Choosing verified bots leaves ordinary visitors free.

What Cloudflare runs today

Product What it does Uses x402? Status
Monetization Gateway Lets a seller charge agents per request for APIs, MCP tools, sites and datasets Yes, version 2, in USDC on Base through Coinbase’s facilitator (14 Oct) source In closed beta (14 Oct) source since 30 September 2026, US only

What Cloudflare runs today

Product What it does Uses x402? Status
Pay Per Use AI companies offer a price for each use of a publisher’s content, report their uses, and Cloudflare bills them and pays publishers monthly No In beta (14 Oct) source since 30 September 2026

What Cloudflare runs today

For the Monetization Gateway, the details a seller needs:

  • Who can join: buyers and sellers must both be based in the United States (14 Oct) source. Sellers also need a card on file, a verified email, and an account older than 60 days and a site that has been on Cloudflare for more than 30 days (14 Oct) source, with the site proxied through Cloudflare.

What Cloudflare runs today

  • Pricing: a fixed price per request, the exact scheme, or a variable one up to a cap, the upto scheme, where the seller reports the actual amount. Prices run from $0.001 (14 Oct) source to $100 (14 Oct) source a request.
  • Fees: Cloudflare has published no fee of its own (14 Oct) source.

What Cloudflare runs today

Careful. If you’re in the UK or anywhere outside the US, you can’t join the Gateway beta yet, and Cloudflare has given no date for other regions. x402 itself is an open protocol, so the Gateway isn’t the only way to accept it. The build track covers the other routes and what each one requires.

What Cloudflare runs today

Cloudflare says some heavily crawled categories, such as retail, software and financial services, have seen human traffic fall by as much as 40% in less than a year, while the crawling goes on. A request from an agent that never sends a visitor still costs the site bandwidth and servers. Charging that agent a tenth of a cent is one way to make the visit pay for itself.

The next lesson takes the comments’ biggest misunderstandings one at a time.

Who can use the Monetization Gateway beta as of October 2026?

Your choice is checked as soon as you pick it. With a keyboard, move with the arrow keys and press Space to choose.

Right.

Not quite.

Cloudflare’s eligibility page says buyers and sellers must be based in the United States. Other regions have no date yet.

Lesson done.

Price: about 7 minutes of your attention.

You can now say

  • An agent pays when paying beats free: fresher data, cleaner data, the right to use it, or time saved.
  • If nothing beats the free version, a well-built agent uses the free one.
  • A site can stay free for people and charge only the bots that say who they are.

Sources

Checked 14 October

  1. Coinbase Bazaar search: a weather service reselling US National Weather Service forecasts at $0.002 a call (read 14 October 2026) api.cdp.coinbase.com
  2. Cloudflare blog: Monetization Gateway closed beta, with Ceramic.ai, Stocktwits and API2PDF (30 September 2026) blog.cloudflare.com
  3. Cloudflare docs: Monetization Gateway overview (charge every caller or only verified bots; x402) developers.cloudflare.com
  4. Cloudflare docs: Monetization Gateway get started (audience Everyone or Verified Bots; minimum $0.001) developers.cloudflare.com
  5. Cloudflare docs: Monetization Gateway and x402 version 2 (exact for fixed, upto for variable pricing) developers.cloudflare.com
  6. Cloudflare docs: Monetization Gateway eligibility (US buyers and sellers, account and zone age) developers.cloudflare.com
  7. Cloudflare changelog: Monetization Gateway closed beta (30 September 2026) developers.cloudflare.com
  8. Cloudflare docs: Monetization Gateway full documentation (minimum $0.001, maximum $100 per request; no fee listed) developers.cloudflare.com
  9. Cloudflare blog: Pay Per Use now in beta (30 September 2026) blog.cloudflare.com
  10. US National Weather Service API: open data, free to use for any purpose weather.gov
  11. Cloudflare blog: Introducing pay per crawl (1 July 2025) blog.cloudflare.com
  12. Cloudflare press release: new domains asked whether to allow AI crawlers; over one million customers chose to block them (1 July 2025) cloudflare.com
  13. Cloudflare blog: The Internet has a second audience (under 1% of sites block search crawlers, 17% block training; 30 September 2026) blog.cloudflare.com
  14. Cloudflare blog: Content Independence Day, one year on (human traffic down as much as 40% in heavily crawled categories; 1 July 2026) blog.cloudflare.com