
Connect the OpenAI Node SDK
We speak the OpenAI-compatible protocol, so the official Node SDK works with a single configuration change. No wrapper library, no rewriting your calls.

Install and configure 📦
Install the SDK and create a client that points at our endpoint. Set your token as the API key and use any model available on your account.
A minimal call 💬
With the client configured, a chat completion is identical to what you would write for any OpenAI-compatible service — messages in, answer out.
| Setting | Value |
|---|---|
| baseURL | https://api.daqi.example/v1 |
| apiKey | your token from the panel |
| model | nova-flash or another available model |
Streaming works too ⚡
The SDK’s built-in streaming support works as-is. Pass stream: true and iterate the chunks exactly like the official docs describe.
Frequently asked questions ❓
Do I need a different SDK?
No, the standard openai npm package works without changes.
Which models can I use?
Any model active on your account — check the Models page for the current list.
Can I use the SDK with TypeScript?
Yes, the official SDK ships its own types and everything is typed out of the box.
Comments (0)