SDKs & Developer Integration

1. Payment Flow

  1. Client sends an inference request to an AI endpoint.

  2. Server responds with HTTP 402 Payment Required and a payment challenge.

  3. Client executes a Solana micropayment using FluxSDK.

  4. Client retries the request with the X-PAYMENT header (proof of payment).

  5. FluxNode verifies the payment on-chain via FluxVerifier.

  6. 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