Skip to content

OpenAI SDK

The format matches OpenAI, so the official SDK works. Just point baseURL at the gateway address.

Creating a client

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.SATULINK_API_KEY,
  baseURL: "https://api-dev.satulink.ai/v1",
});

Usage example

Node.js
js
const completion = await client.chat.completions.create({
  model: "deepseek-v-4.1-flash",
  messages: [{ role: "user", content: "Halo!" }],
});

console.log(completion.choices[0].message.content);
Python
python
completion = client.chat.completions.create(
    model="deepseek-v-4.1-flash",
    messages=[{"role": "user", "content": "Halo!"}],
)

print(completion.choices[0].message.content)
Call the gateway from your server. Do not put an API key in the browser.

Still haven't found the answer? Try it directly in Playground or view the list of active models.