Micropayments work when payment is a protocol step, not an account.

Publish discovery for free. Let the target resource return fresh x402 terms. Keep authorization inside the caller's wallet policy. Verify settlement. Deliver the requested result. Preserve evidence.

ScriptMasterLabs current x402 authority is Base/USDC with GitLab as source-control authority; retired GitHub and legacy multi-rail examples are not current instructions.

Try before you buy · GitLab source

Why API micropayments work now?

Card payments carry fixed fees that make charging a fraction of a cent impossible. Stablecoins like USDC on low-cost networks such as Base settle small amounts cheaply, and the x402 protocol lets an API ask for payment inside a normal HTTP request. Together they make pay-per-call pricing practical for machines.

The full flow

  1. The client calls the API with no account and no key.
  2. The API replies HTTP 402 with a PAYMENT-REQUIRED challenge: price, asset, network and receiver.
  3. The client's wallet checks the terms against its policy and signs a PAYMENT-SIGNATURE.
  4. The API verifies and settles through a facilitator, then returns the result and a PAYMENT-RESPONSE.

Pricing tips

Next: the pay-per-call API guide and USDC micropayments for APIs.

One topic, one page per job — the API monetization cluster

This page is the canonical explainer for selling API access to agents: micropayments work when payment is a protocol step, not an account. The neighbouring pages are the paid products that operationalise it:

x402 and agent payments

Free tool

More on ScriptMasterLabs

ScriptMasterLabs, first when you search Google
Add us as a preferred source on Google