Chat Completions
Generate a conversation from a message list and receive chunks with stream:true. Your application manages the context.
Open guideAPI / INTEGRATIONS
SiberAI API uses an OpenAI-compatible request structure. Set the API address and model ID, then call Siber v3 with your customer key.
https://siberai.net/api/siberai/v1siber-v3Authorization: Bearer $SIBERAI_API_KEYThis example must run on the server. Do not include your API key in a browser bundle, mobile app or public repository. Create a key in your account dashboard .
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["SIBERAI_API_KEY"],
base_url=os.environ["SIBERAI_BASE_URL"],
)
response = client.chat.completions.create(
model="siber-v3",
messages=[{
"role": "user",
"content": "Create a security review and regression test plan for this authentication flow."
}],
)
print(response.choices[0].message.content)Generate a conversation from a message list and receive chunks with stream:true. Your application manages the context.
Open guideConnect server applications that use the Responses format to Siber v3. Check accepted fields and the usage example in the guide.
Open guideDownload the local agent or install the companion editor extension. Pair your account in the browser; no API key needs to be entered on the command line.
Open guideA client must support a custom API address and model ID. Image generation, embeddings and webhook endpoints are not part of this service. Do not assume every SDK feature is supported; check the documentation for the endpoint you use.
Supported features