// OPENAI-COMPATIBLE · PAY-AS-YOU-GO
Route to Gemini, Kimi, MiniMax and Claude through one OpenAI-compatible API. Top up in seconds — 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 your balance in seconds — no card, no invoice, no monthly minimum.
Connect to mint API keys. No email, no password, no identity check. Keys are stored hashed, billed to your account.
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.
Add funds, mint a key, point your SDK at the gateway. That's the whole signup.
Read the quickstart →