5 Lines to First Request
Point the OpenAI SDK at the gateway, set your API key, and call any model. That's it.
See quickstart
OpenAI-compatible API. Pay with USDC. No accounts, no KYC.
# 1. Install the OpenAI SDK
npm install openai
# 2. Call the gatewayimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://agent-router.gaib.cloud/v1',
apiKey: 'sk-your-api-key',
})
const res = await client.chat.completions.create({
model: 'gemini/gemini-2.5-flash',
messages: [{ role: 'user', content: 'Hello!' }],
})
console.log(res.choices[0].message.content)Need an API key? Follow the quickstart guide.