SDKs & Developer Integration
1. Payment Flow
Client sends an inference request to an AI endpoint.
Server responds with
HTTP 402 Payment Requiredand a payment challenge.Client executes a Solana micropayment using FluxSDK.
Client retries the request with the
X-PAYMENTheader (proof of payment).FluxNode verifies the payment on-chain via FluxVerifier.
Inference Result is returned once payment is confirmed.
2. MVP Architecture
The first MVP implementation includes:
🧩 x402LabsNode Gateway — an HTTP 402-compatible server with Solana integration.
⚙️ x402LabsVerifier Contract — built using Anchor, verifying micropayments.
💻 x402LabsSDK (JS & Python) — simplifies payments and header signing.
📊 Provider Dashboard — analytics for usage, revenue, and requests.
The MVP supports:
AI inference APIs
USDC SPL payments
Instant settlement
Real-time provider analytics
Last updated
