Vybe x402 API — Pay-Per-Call Access Now Live
The Vybe x402 API is now live on Solana mainnet — pay per HTTP request in USDC, no API key required. AI agents, scripts, and developers can autonomously discover and pay for Solana analytics endpoints without signing up or maintaining a subscription.
What is x402?
x402 is an open payment protocol from Coinbase that embeds USDC payments directly into HTTP requests using the long-dormant 402 Payment Required status code. A client makes a request, signs a USDC transfer matching the returned payment requirements, and retries — all within a single HTTP exchange. No accounts, no checkout flow.
What's Included
- Pay-per-call HTTP — every endpoint in the Vybe API Reference is callable through the x402 API at the same path. Same params, same response shapes, billed per request in USDC.
- Prepaid WebSocket streaming — one $0.01 payment buys 1000 credits for a session. The SDK opens the WebSocket and auto-tops up before credits run out.
- No SOL required — the Vybe x402 API covers Solana gas on every transfer; your wallet only needs USDC.
- Open-source TypeScript SDK —
@vybenetwork/x402-clienton npm. Per-call USD caps, cumulative budget tracking, typed errors, AI-agent-friendly.
Endpoint + Pricing
- Base URL:
https://x402-api.vybenetwork.xyz(distinct fromapi.vybenetwork.xyz, the API-key subscription endpoint) - Default price: $0.001 per call, tiered up to $0.010 for the heaviest endpoints (Top Holders, Transfers, batch POSTs)
- Live price table:
GET https://x402-api.vybenetwork.xyz/returns the authoritative pricing — the SDK reads this on startup, no hardcoding needed.
Quickstart
npm install @vybenetwork/x402-clientimport { VybeClient, loadKeypair } from "@vybenetwork/x402-client";
const client = new VybeClient({
wallet: await loadKeypair(process.env.CLIENT_PRIVATE_KEY!),
rpcUrl: process.env.SOLANA_RPC_URL,
});
const token = await client.get("/v4/tokens/<mintAddress>");The SDK handles the 402 challenge, USDC signing, and retry transparently — a single await returns the parsed body.
Why It Matters
Endpoints and WebSocket streams previously exclusive to higher-tier plans — Top Traders, Wallet PnL, Top Holders, WebSocket trade streams — are now accessible to anyone with a funded Solana wallet, at granular per-request prices. AI agents can autonomously discover, pay for, and consume Solana data without pre-configured API keys.
Beta Status
This is a beta release on Solana mainnet. The endpoint surface, error semantics, pricing tiers, and WS protocol may evolve before general availability — pin your SDK version (@vybenetwork/[email protected]) and watch the npm version history before upgrading.
Get Started
- x402 Payment Protocol — full developer guide
- SDK on npm —
@vybenetwork/x402-client - SDK on GitHub — README, runnable examples, AGENTS.md for AI agents
- x402 protocol — Coinbase's reference spec and SDKs