// OPENAI-COMPATIBLE · x402-NATIVE
Route to Gemini, Kimi, MiniMax and Claude through one OpenAI-compatible API. Top up with USDC or USDT — no accounts, no KYC, no monthly bill.
import OpenAI from "openai" const client = new OpenAI({ baseURL: "https://agent-router.gaib.ai/v1", apiKey: process.env.GATEWAY_KEY,}) const r = await client.chat.completions.create({ model: "gemini/gemini-2.5-flash", messages: [{ role: "user", content: "Hi" }],})// MODELS
Live pricing from the gateway. Switch providers by changing the model string — same request, same response shape.
Top up with USDC or USDT on Base or Arbitrum over the x402 protocol. Credited on-chain in seconds — no card, no invoice, no monthly minimum.
Sign in with Ethereum (SIWE) to mint API keys. No email, no password, no identity check. Keys are stored hashed, billed to your wallet.
Change one base URL and keep your existing OpenAI code — SDKs, streaming, and tool calling all work unchanged across every provider.
Balance is reserved before each call and reconciled to actual token usage. Concurrent requests can never overspend your credit.
Fund a wallet, mint a key, point your SDK at the gateway. That's the whole signup.
Read the quickstart →