Documentation menu and search

Getting started

Your first API request

Send your first request to siber-v3 with an OpenAI-compatible client.

Prepare your key

Create a SiberAI IDE/API customer key in the dashboard. The full value is shown only when it is created. Its workspace must have available funds and active access.

Send a request

The base URL is /api/siberai/v1 on the SiberAI domain. Read the key from an environment variable. The model identifier is always siber-v3.

Python

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["SIBERAI_API_KEY"],
    base_url="https://siberai.net/api/siberai/v1",
)
answer = client.chat.completions.create(
    model="siber-v3",
    messages=[{"role": "user", "content": "Bu değişiklik için bir test planı öner."}],
    max_tokens=1024,
)
print(answer.choices[0].message.content)

Track usage

After a successful call, check its status and token usage in the dashboard. Never include the key in an error report. Responses 401, 402 and 429 have different causes; follow the error reference.

Telegram support@cyberdef_tr