> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openference.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js (OpenAI SDK)

> Use the OpenAI Node library with Openference.

# Node.js SDK

```bash theme={null}
npm install openai
```

```ts theme={null}
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.openference.com/v1",
  apiKey: "YOUR_API_KEY",
});

const resp = await client.chat.completions.create({
  model: "GLM-5.2",
  messages: [{ role: "user", content: "Hi" }],
});
```
