Integrations

OpenAI Node SDK with zurelay

Official OpenAI library for TypeScript and JS. Made by OpenAI.

Model in the examples:

Set it up

  1. 1

    Install the SDK: npm install openai.

  2. 2

    Create the client with zurelay’s base URL and your key.

  3. 3

    Call any chat model in the catalog by its ID. Streaming, tools and JSON mode work as usual.

Configuration

import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.zurelay.com/v1",
apiKey: process.env.ZURELAY_API_KEY,
});
const completion = await client.chat.completions.create({
model: "claude-opus-5-5",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0]?.message.content);
The SDK also reads OPENAI_BASE_URL and OPENAI_API_KEY, so existing code can switch with two environment variables.

OpenAI Node SDK’s own docs

Questions, or something missing? Ask support in your dashboard or email support@zurelay.com.