Safehubby

Blog · Published November 18, 2026

x402 explained: paying a few cents for one web request

What the x402 payment standard is, how an AI agent pays for a page or a data lookup, what can go wrong, and how Safehubby uses it.

Most of the web asks you to make an account, enter a card and subscribe before you can read or use anything. That works for a person with a wallet. It does not work for a piece of software that wants one answer and nothing else. x402 is a way for a website to say "this costs five cents" and for the software to pay it on the spot, with no account.

The idea in one minute

Web servers have always had a status code for "payment required": 402. It was set aside in the early days of the web and almost never used. x402 puts it to work. When you ask for something that costs money, the server answers 402 and says how much, in which currency, and where to send it. You pay, ask again with proof of payment, and the server hands over the answer.

The steps

  • 1. Ask. The software requests an address, for example a lookup or an article.
  • 2. Get the price. The server answers 402 with the price, the network, and the receiving address, in a header called PAYMENT-REQUIRED.
  • 3. Sign a payment. The software signs a payment for exactly that amount. It does not send the wallet's secret key to anyone.
  • 4. Ask again. The signed payment goes back in a header called PAYMENT-SIGNATURE.
  • 5. Check and settle. The server asks a payment service, called a facilitator, to check the payment and finish it.
  • 6. Get the answer. Only after the payment is settled does the server send the answer, with a receipt in a header called PAYMENT-RESPONSE.

Why a few cents works

Card payments have fixed fees that make a five-cent sale pointless. A stablecoin payment, a token meant to stay worth one dollar, can be tiny. $39 is the cheapest plan Safehubby sells to people. A web request for one answer is a different kind of sale, and it only makes sense when the price is a few cents and nobody has to sign up.

Practice money and real money

A seller can run x402 on a practice network, where the money has no value, to check that everything works. Safehubby's store does this before it takes real money, and its public catalog says which one it is using in a field called testMoneyOnly. If you are building a buyer, pay on the practice network first. Check the receiving address character by character: a payment to a wrong address cannot be taken back.

What it costs the seller

The facilitator charges for settling. PayAI, one facilitator, says it settles the first 1,000 payments to a receiving wallet for free, and after that each payment costs the network's gas plus 30 percent, never a share of what the buyer pays. It also says testnets are always free. Other facilitators price it differently, so read the current terms before you choose one.

How Safehubby uses it

Safehubby sells a few things that software can use directly: research on event vendors, hotel programs and airport VIP services, the facts that answer questions about our plans, and a clean-text copy of each blog article. The articles stay free for people and for search engines. Only the clean-text copy made for software costs a few cents. A free catalog at safehubby.com/api/agent/catalog lists what is for sale, the price, and the network. Anything that needs a person, such as an errand or a visit, is not sold this way: payment is not taken for work nobody has agreed to do.

If you want to see how we think about trust and prices, read what concierge memberships leave out, or go back to the Safehubby home page.

Questions people ask

What does the 402 status code mean?

It means payment is required. With x402 the server uses it to say how much to pay, in which currency and to which address.

Does an AI agent need an account to pay with x402?

No account with the seller. It needs a wallet with enough of the right currency, and it signs each payment itself.

Can the seller keep my secret key?

It should never see it. The buyer signs the payment locally and sends only the signed result.

Is it safe to try?

Start on a practice network, where the money has no value. Move to real money only after a full test purchase works.

Where the facts come from

Reviews and complaints are the customers' own accounts. We have not verified them, and the companies may see things differently. What we say about other companies comes from their own websites on the dates shown. Prices and services change, so check with them. The opinions are ours.