Examples
Because the API is OpenAI-compatible, the official OpenAI SDKs work out of the box — just change the base URL and key.
ts
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.TIGERGATEWAY_API_KEY,
baseURL: "https://gateway.hacktigerlabs.com/v1",
});
const res = await client.chat.completions.create({
model: "gpt-5",
messages: [{ role: "user", content: "Write a haiku about APIs." }],
});
console.log(res.choices[0].message.content);Swap the model to route to a different provider — no other code changes.