Point the client at gpuos
npm install openaiimport OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://gpuos.si/v1",
apiKey: process.env.GPUOS_API_KEY,
})
const stream = await client.chat.completions.create({
model: "qwen3-32b",
messages: [{ role: "user", content: "Summarize this ticket in one line." }],
stream: true,
})
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "")Create the key in API keys in your gpuos dashboard, and deploy the model first in Models. GET /v1/models lists what your workspace can call.
Official documentation: github.com/openai/openai-node