x402Labs

x402Labs

Wallet Status

Embed Rich Metadata Into Every x402 Transaction

Launch App View Docs

Who
We are

who
we are

x402Labs is an AI payment infrastructure protocol that fuses the x402 HTTP Payment Standard with Solana’s high-throughput blockchain to enable autonomous, per-inference AI payments.

Main
Functions

Main
Functions

Micro-payments

API Gateway

Smart contracts

How to Use
x402Labs

How to Use
x402Labs

1

1️⃣ Install the SDK
Install x402LabsSDK for your preferred language to handle Solana payments and x402 integration.
npm install @x402labs/x402Labs-sdk
or
pip install x402Labssdk

2

2️⃣ Make an API Request
Send a request to any x402-enabled AI endpoint.
If payment is required, you'll receive an HTTP 402 Payment Required response with a payment challenge.

3

3️⃣ Execute the Payment
Complete the Solana USDC micropayment using x402LabsSDK:
await x402Labs.pay({ to: "provider_wallet", amount: "0.02", currency: "USDC" })

4

4️⃣ Retry the Request with Proof
Resend your API request including the X-PAYMENT header with the Solana transaction signature.
The payment is verified on-chain by x402LabsVerifier.

5

5️⃣ Access Results Instantly
Once verified, the inference result or data response is returned instantly.
You’ve just made a decentralized pay-per-use API call — no subscriptions, no intermediaries.

— Pay-Per-Inference — x402 Payment Standard — Solana Micropayments — Autonomous Agents — Decentralized AI —

— Pay-Per-Inference — x402 Payment Standard — Solana Micropayments — Autonomous Agents — Decentralized AI —

x402Labs — FLUX Token — Solana USDC — Real-Time Settlement — AI-Powered Payments —

x402Labs — FLUX Token — Solana USDC — Real-Time Settlement — AI-Powered Payments —

dribble
x402Labs
Launch App