# OpenAI Node SDK with Zurelay > Official OpenAI library for TypeScript and JS. Made by OpenAI. Source: https://zurelay.com/docs/integrations/openai-node The examples use `claude-opus-5-5`. Any model ID from [the models page](https://zurelay.com/docs/models) works. ## Set it up 1. Install the SDK: `npm install openai`. 2. Create the client with Zurelay’s base URL and your key. 3. Call any chat model in the catalog by its ID. Streaming, tools and JSON mode work as usual. ## Configuration **Chat** (`app.ts`): ```typescript 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); ``` **Images** (`image.ts`): ```typescript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.zurelay.com/v1", apiKey: process.env.ZURELAY_API_KEY, }); const result = await client.images.generate({ model: "nano-banana-pro", prompt: "A glass prism splitting white light into a rainbow", n: 1, }); console.log(result.data?.[0]?.url); ``` > **Note:** 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](https://github.com/openai/openai-node)