SETUP GUIDE
OpenAI SDK
Use the official SDK server-side with Profundo's Chat Completions base URL.
Status: Supported server-side only
1. Recommended setup
After signup, verification, and membership activation, issue a key in the dashboard. It is displayed once; keep it in a local secret store.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.profundoai.com/v1",
api_key=os.environ["PROFUNDO_API_KEY"],
)
response = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)- Install the Python `openai` package.
- Set `PROFUNDO_API_KEY` in the server environment.
- Run the Python example.
Compatibility note: Do not use the SDK in a browser: doing so exposes your API key. Browser SDK usage is not recommended.
Optional alternatives
JavaScript server example
Install the `openai` package and run this only in a server environment.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.profundoai.com/v1",
apiKey: process.env.PROFUNDO_API_KEY,
});
const response = await client.chat.completions.create({
model: "glm-5.2",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);Environment override
Advanced deployments may set the SDK base URL and key through their server-side environment or client construction. Never expose `PROFUNDO_API_KEY` to browser code.
2. Verify your key
Set PROFUNDO_API_KEY in your shell, then run:
curl https://api.profundoai.com/v1/chat/completions \
-H "Authorization: Bearer $PROFUNDO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"minimax-m3","messages":[{"role":"user","content":"Say hello"}]}'Use glm-5.2, minimax-m3, or nemotron-ultra with https://api.profundoai.com/v1.