METER

pay per call · not per month

402 Payment Required

Your API earns per call, not per month.

No signup, no keys, no plans. A client asks, gets a price, signs, and asks again — settled onchain before the response arrives.

wire transcript1.09s
POST /v1/chat HTTP/1.1
402 Payment Required
price: 0.001000 USDC
Signing authorization · eip-3009
POST /v1/chat retry + x-payment
200 OK · settled onchain
charged: 0.000037 USDC
METER playground
Why metered

The subscription was never the point.

Card networks take about thirty cents before they take a percentage. That floor is why every API became a monthly plan — not because anyone wanted one.

METER playground
Card rails
$0.30

Minimum viable charge. Anything smaller loses money, so it gets bundled into a plan.

  • Account required
  • Monthly commitment
  • Refunds and churn
Metered rails
$0.000037

What one real request actually cost. Charged exactly, settled in about a second.

  • No account
  • Pay per call
  • Nothing to cancel
How it works

Four steps, one request.

The payment lives inside the HTTP exchange. Nothing is stored, nothing is provisioned.

Ask

The client hits your endpoint with no credentials at all — no key, no session, no prior relationship.

Get a price

Your server answers 402 with the amount, the chain, the token, and the address to pay.

Sign

The wallet signs a stablecoin authorization locally. No transaction yet, no gas spent guessing.

Settle

The retry carries the signature. Verified and settled onchain, then the response comes back.

Charge what it cost

Price is computed from real token usage, so a short call bills like a short call.

Built for agents

An autonomous client can't fill in a signup form. It can sign a payment inside a request.

METER playground
For developers

Three lines on the server.

Wrap the route, set a price, point at a facilitator. Your handler stays exactly as it was.

// proxy.ts
import { paymentProxy } from "@x402/next";

export const proxy = paymentProxy({
  "/api/v1/chat": {
    price:   "$0.001",
    network: "base-sepolia",
    payTo:   "0x30e7…8440",
  },
});
Open source

Charge a tenth of a cent. Finally.

Running on Base Sepolia today. Bring your own endpoint and start metering it.