Code Examples
Use the official OpenAI SDKs and override only the base URL.
curl https://api.glideflowai.com/v1/chat/completions \
-H "Authorization: Bearer sk-xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-chat",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(
api_key="sk-xxx",
base_url="https://api.glideflowai.com/v1",
)
r = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-xxx",
baseURL: "https://api.glideflowai.com/v1",
});
const r = await client.chat.completions.create({
model: "deepseek-chat",
messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);The examples use the placeholder key sk-xxx. Replace it with your Glideflow API key before making requests.