Lumière PayCheck Free API key

Payments on Base + Solana + Keeta + Tempo, cards via Stripe

What Is 402 Payment Required?

· 2 min read

402 Payment Required is an HTTP status code used by APIs to request payment before delivering data. It allows a server to send a price quote and wallet address in the response, enabling machine-to-machine commerce without accounts or invoices.

How it works

When an AI agent requests access to a paid API, the server responds with a 402 status code. This response contains a quote with the price, network, token and payout wallet address. The client signs a payment for that amount and repeats the original request with the signed payment in a header. The server settles the payment, usually through a facilitator, and returns the requested data.

For example, an AI agent requests a translation service. The server replies with a 402 code and a quote for 0.01 USDC on the Base network. The agent signs a payment for that amount to the quoted wallet and resends the request with it. The server settles the payment and returns the translated text. No account or API key is needed.

Why it matters

HTTP has reserved the 402 code since the 1990s; x402 gives it a standard format. That enables automated payments for AI agents without human intervention. Sellers can monetize access directly while buyers avoid complex billing infrastructure. However, a payment receipt only proves money changed hands; it does not guarantee that the endpoint delivered the promised data or remains secure.

  • x402: The protocol that defines the 402 Payment Required response format and payment proof mechanism.
  • Payout Wallet: The public cryptocurrency address listed in the quote where buyers must send funds.
  • Payment payload: The signed payment the client sends with its retry, which the server settles before answering.
  • MPP: The Machine Payments Protocol, which also uses 402 responses to ask for payment.
  • Trust Score: A metric evaluating an endpoint’s reliability, price stability, and wallet safety before payment.

Lumière PayCheck monitors these endpoints to verify quotes and detect risks like wallet changes or hijacks. It provides a score and verdict to help agents decide whether to proceed with a payment.

Check any x402 endpoint free at https://lumierepaycheck.org/check.

Check an endpoint before your agent pays it. Free grades and allow-or-deny checks: lumierepaycheck.org · Every x402 endpoint, graded · Docs

More from the blog